Example #1
0
 private static void RegionParse_cmd42(ROM rom, List <Region> regions)
 {
     rom.AddOffset(2);
 }
Example #2
0
 private static void RelocationParse_cmd2E(ROM rom, RelocationTable table, RegionParseState state)
 {
     table.RelocateOffset((int)state.area, rom, 4);
 }
Example #3
0
 public void RelocateOffset(ROM rom, int offset)
 {
     RelocateOffset(null, rom, offset);
 }
Example #4
0
 private static void RegionParse_cmd20(ROM rom, List <Region> regions, RegionParseState state)
 {
     CutRegion(rom, regions, state, rom.offset + rom.Read8(1), RegionState.AreaHeader);
     state.area = -1;
 }
Example #5
0
        private static void RelocationParse_cmd22(ROM rom, RelocationTable table, RegionParseState state)
        {
            int model = rom.Read8(3);

            table.RelocateOffset(model, rom, 4);
        }
Example #6
0
 private static void RelocationParse_cmd1F(ROM rom, RelocationTable table, RegionParseState state)
 {
     rom.Write8((byte)state.area, 2);
     table.RelocateOffset((int)state.area, rom, 4);
 }
Example #7
0
 private static void RegionParse_cmd1E(ROM rom, List <Region> regions, RegionParseState state)
 {
     // it is end of level, area footer is saved
     state.regionState = RegionState.LevelFooter;
 }
Example #8
0
 private static void RegionParse_cmd02(ROM rom, List <Region> regions, RegionParseState state)
 {
     CutRegion(rom, regions, state, rom.offset + rom.Read8(1), RegionState.LevelHeader);
 }
Example #9
0
 private static void HeaderParse_common(ROM rom)
 {
 }
Example #10
0
 private static void RelocationParse_common(ROM rom, RelocationTable table, RegionParseState state)
 {
 }