Beispiel #1
0
 private static void RegionParse_cmd42(ROM rom, List <Region> regions)
 {
     rom.AddOffset(2);
 }
Beispiel #2
0
 private static void RelocationParse_cmd2E(ROM rom, RelocationTable table, RegionParseState state)
 {
     table.RelocateOffset((int)state.area, rom, 4);
 }
Beispiel #3
0
 public void RelocateOffset(ROM rom, int offset)
 {
     RelocateOffset(null, rom, offset);
 }
Beispiel #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;
 }
Beispiel #5
0
        private static void RelocationParse_cmd22(ROM rom, RelocationTable table, RegionParseState state)
        {
            int model = rom.Read8(3);

            table.RelocateOffset(model, rom, 4);
        }
Beispiel #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);
 }
Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #9
0
 private static void HeaderParse_common(ROM rom)
 {
 }
Beispiel #10
0
 private static void RelocationParse_common(ROM rom, RelocationTable table, RegionParseState state)
 {
 }