kwsch / pkNX

Pokémon (Nintendo Switch) ROM Editor & Randomizer
https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/
GNU General Public License v3.0
352 stars 108 forks source link

Differentiate between SW/SH #127

Closed CodingKoopa closed 3 years ago

CodingKoopa commented 3 years ago

This PR adds the ability for pkNX to differentiate between Pokémon Sword and Shield. It looks to me like the file structure between the two are identical, so the check I implemented here looks at the size of exefs/main. This is only implemented for update 3 because those are the only files I have, but other versions of the games could be easily added here.

image