From 28f41f995d6e24ae5bd0d03d7220784d30c61b35 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Thu, 18 Aug 2016 22:03:18 -0700 Subject: make game version equal 1 for sapphire --- include/global.h | 6 ++++++ src/main.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/global.h b/include/global.h index 2f47e7ed0..8aba50d74 100644 --- a/include/global.h +++ b/include/global.h @@ -16,6 +16,12 @@ extern u8 gStringVar1[]; extern u8 gStringVar2[]; extern u8 gStringVar3[]; +enum +{ + VERSION_SAPPHIRE = 1, + VERSION_RUBY = 2, +}; + enum { MALE, diff --git a/src/main.c b/src/main.c index 751a2c7f8..937978c38 100644 --- a/src/main.c +++ b/src/main.c @@ -18,7 +18,13 @@ void SerialIntr(void); void IntrDummy(void); void Timer3Intr(void); -const u8 gGameVersion = 2; // Ruby +#ifdef SAPPHIRE +#define GAME_VERSION VERSION_SAPPHIRE +#else +#define GAME_VERSION VERSION_RUBY +#endif + +const u8 gGameVersion = GAME_VERSION; const u8 gGameLanguage = 2; // English -- cgit v1.2.3