Like all programs, games are split into resources and compiled machine code.
Resource files on disk replace no code, and are handled by Riivolution. You are right, they can be created from scratch or they can replace an existing resource. There are several relocatable binaries that NSMBWii uses...