private static SaveFile?GetVariantSAVInternal(byte[] data) { switch (GetSAVType(data)) { // Main Games case RBY: return(new SAV1(data)); case GS: case C: return(new SAV2(data)); case RS: case E: case FRLG: return(new SAV3(data)); case DP: return(new SAV4DP(data)); case Pt: return(new SAV4Pt(data)); case HGSS: return(new SAV4HGSS(data)); case BW: return(new SAV5BW(data)); case B2W2: return(new SAV5B2W2(data)); case XY: return(new SAV6XY(data)); case ORAS: return(new SAV6AO(data)); case ORASDEMO: return(new SAV6AODemo(data)); case SM: return(new SAV7SM(data)); case USUM: return(new SAV7USUM(data)); case GG: return(new SAV7b(data)); case SWSH: return(new SAV8SWSH(data)); // Side Games case COLO: return(new SAV3Colosseum(data)); case XD: return(new SAV3XD(data)); case RSBOX: return(new SAV3RSBox(data)); case BATREV: return(new SAV4BR(data)); // Bulk Storage case Gen3: return(new Bank3(data)); case DPPt: return(new SAV4Ranch(data)); case Gen4: return(new Bank4(data)); case Gen7: return(Bank7.GetBank7(data)); // No pattern matched default: return(null); } }
private static SaveFile GetVariantSAVInternal(byte[] data) { switch (GetSAVType(data)) { // Main Games case GameVersion.RBY: return(new SAV1(data)); case GameVersion.GS: case GameVersion.C: return(new SAV2(data)); case GameVersion.RS: case GameVersion.E: case GameVersion.FRLG: return(new SAV3(data)); case GameVersion.DP: case GameVersion.Pt: case GameVersion.HGSS: return(new SAV4(data)); case GameVersion.BW: return(new SAV5BW(data)); case GameVersion.B2W2: return(new SAV5B2W2(data)); case GameVersion.XY: return(new SAV6XY(data)); case GameVersion.ORAS: return(new SAV6AO(data)); case GameVersion.ORASDEMO: return(new SAV6AODemo(data)); case GameVersion.SM: return(new SAV7SM(data)); case GameVersion.USUM: return(new SAV7USUM(data)); // Side Games case GameVersion.COLO: return(new SAV3Colosseum(data)); case GameVersion.XD: return(new SAV3XD(data)); case GameVersion.RSBOX: return(new SAV3RSBox(data)); case GameVersion.BATREV: return(new SAV4BR(data)); case GameVersion.GG: return(new SAV7b(data)); // Bulk Storage case GameVersion.Gen3: return(new Bank3(data)); case GameVersion.DPPt: return(new SAV4Ranch(data)); case GameVersion.Gen4: return(new Bank4(data)); case GameVersion.Gen7: return(Bank7.GetBank7(data)); // No pattern matched default: return(null); } }
private static SaveFile GetVariantSAVInternal(byte[] data) { switch (GetSAVGeneration(data)) { // Main Games case GameVersion.Gen1: return(new SAV1(data)); case GameVersion.Gen2: return(new SAV2(data)); case GameVersion.Gen3: return(new SAV3(data)); case GameVersion.Gen4: return(new SAV4(data)); case GameVersion.Gen5: return(new SAV5(data)); case GameVersion.Gen6: return(new SAV6(data)); case GameVersion.Gen7: return(new SAV7(data)); // Side Games case GameVersion.COLO: return(new SAV3Colosseum(data)); case GameVersion.XD: return(new SAV3XD(data)); case GameVersion.RSBOX: return(new SAV3RSBox(data)); case GameVersion.BATREV: return(new SAV4BR(data)); case GameVersion.GG: return(new SAV7b(data)); // Bulk Storage case GameVersion.RS: return(new Bank3(data)); case GameVersion.DP: return(new SAV4Ranch(data)); case GameVersion.HGSS: return(new Bank4(data)); case GameVersion.USUM: return(Bank7.GetBank7(data)); // No pattern matched default: return(null); } }