diff options
author | Deokishisu <edsaletto@gmail.com> | 2018-10-06 01:45:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-06 01:45:36 -0400 |
commit | 024700769a5deec98c0eb0231b6e3f61f5043a89 (patch) | |
tree | 88134be59455b591818c9023a45fbaa30762166a | |
parent | 3d50d01a93314569a3b647bf52c87b52c1dcf41c (diff) |
Document all possible VERSION_ numbers and add them to the enum
-rw-r--r-- | include/global.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index b35008550..842cec257 100644 --- a/include/global.h +++ b/include/global.h @@ -86,13 +86,28 @@ extern u8 gStringVar4[]; #define T2_READ_32(ptr) ((ptr)[0] + ((ptr)[1] << 8) + ((ptr)[2] << 16) + ((ptr)[3] << 24)) #define T2_READ_PTR(ptr) (void*) T2_READ_32(ptr) +/*Invalid Versions show as "----------" in Gen 4 and Gen 5's summary screen. + *In Gen 4 only, migrated Pokemon with Diamond, Pearl, or Platinum's ID show as "----------". + *Gen 5 and up read Diamond, Pearl, or Platinum's ID as "Sinnoh". + *In Gen 4, migrated Pokemon with Heartgold or Soulsilver's ID show the unused "Johto" string.*/ enum { + VERSION_INVALID_0 = 0, VERSION_SAPPHIRE = 1, VERSION_RUBY = 2, VERSION_EMERALD = 3, VERSION_FIRE_RED = 4, VERSION_LEAF_GREEN = 5, + VERSION_INVALID_6 = 6, + VERSION_HEARTGOLD = 7, + VERSION_SOULSILVER = 8, + VERSION_INVALID_9 = 9, + VERSION_DIAMOND = 10, + VERSION_PEARL = 11, + VERSION_PLATINUM = 12, + VERSION_INVALID_13 = 13, + VERSION_INVALID_14 = 14, + VERSION_GAMECUBE = 15, }; enum LanguageId |