public Gsc(string rom, SpeedupFlags flags = SpeedupFlags.None) : base("roms/gbc_bios.bin", rom, flags) { // If a ROM with the same checksum has already been parsed, the data will be shared. if (ParsedROMs.ContainsKey(ROM.GlobalChecksum)) { Data = ParsedROMs[ROM.GlobalChecksum]; } else { // Otherwise the new ROM will be parsed. Data = new GscData(); LoadSpecies(); LoadMoves(); LoadItems(); LoadTilesets(); LoadMaps(); ParsedROMs[ROM.GlobalChecksum] = Data; } OverworldLoopAddress = SYM["OWPlayerInput"]; }
public Gsc(string rom, string savFile = null, SpeedupFlags flags = SpeedupFlags.None) : base(rom, savFile, flags) { IsCrystal = ROM.Title == "PM_CRYSTAL"; // If a ROM with the same checksum has already been parsed, the data will be shared. if (ParsedROMs.ContainsKey(ROM.GlobalChecksum)) { Data = ParsedROMs[ROM.GlobalChecksum]; } else { // Otherwise the new ROM will be parsed. Data = new GscData(); LoadSpecies(); LoadMoves(); LoadItems(); LoadTilesets(); LoadMaps(); ParsedROMs[ROM.GlobalChecksum] = Data; } OverworldLoopAddress = SYM["OWPlayerInput"]; }