summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--constants.asm2
-rw-r--r--constants/misc_constants.asm3
-rw-r--r--engine/scripting.asm6
-rw-r--r--version.asm2
5 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index e8c219ad4..12a2278fe 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,8 @@ tools:
$(MAKE) -C tools/
-$(crystal11_obj): RGBASMFLAGS = -D CRYSTAL11
+$(crystal_obj): RGBASMFLAGS = -D _CRYSTAL
+$(crystal11_obj): RGBASMFLAGS = -D _CRYSTAL -D CRYSTAL11
# The dep rules have to be explicit or else missing files won't be reported.
# As a side effect, they're evaluated immediately instead of when the rule is invoked.
diff --git a/constants.asm b/constants.asm
index 2f0a436ea..4e52c9e42 100644
--- a/constants.asm
+++ b/constants.asm
@@ -1,5 +1,3 @@
-INCLUDE "version.asm"
-
INCLUDE "charmap.asm"
INCLUDE "macros.asm"
diff --git a/constants/misc_constants.asm b/constants/misc_constants.asm
index 6289b610c..3917ff8f5 100644
--- a/constants/misc_constants.asm
+++ b/constants/misc_constants.asm
@@ -16,6 +16,9 @@ HP_GREEN EQU 0
HP_YELLOW EQU 1
HP_RED EQU 2
+; G/S version ID: 0 = Gold, 1 = Silver (used by checkver)
+GS_VERSION EQU 0
+
; save file corruption check values
SAVE_CHECK_VALUE_1 EQU 99
SAVE_CHECK_VALUE_2 EQU 127
diff --git a/engine/scripting.asm b/engine/scripting.asm
index 9a89c375a..a64ab2bd8 100644
--- a/engine/scripting.asm
+++ b/engine/scripting.asm
@@ -1975,12 +1975,12 @@ GetVarAction:
Script_checkver:
; script command 0x18
- ld a, [Version]
+ ld a, [.gs_version]
ld [ScriptVar], a
ret
-Version:
- db VERSION
+.gs_version:
+ db GS_VERSION
Script_pokenamemem:
; script command 0x40
diff --git a/version.asm b/version.asm
deleted file mode 100644
index b42aceaee..000000000
--- a/version.asm
+++ /dev/null
@@ -1,2 +0,0 @@
-_CRYSTAL EQU 1
-VERSION EQU 0