mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Eliminate version.asm (resolves #464)
This commit is contained in:
parent
459d5d3164
commit
05e5eaf12f
3
Makefile
3
Makefile
@ -52,7 +52,8 @@ tools:
|
|||||||
$(MAKE) -C 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.
|
# 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.
|
# As a side effect, they're evaluated immediately instead of when the rule is invoked.
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
INCLUDE "version.asm"
|
|
||||||
|
|
||||||
INCLUDE "charmap.asm"
|
INCLUDE "charmap.asm"
|
||||||
|
|
||||||
INCLUDE "macros.asm"
|
INCLUDE "macros.asm"
|
||||||
|
@ -16,6 +16,9 @@ HP_GREEN EQU 0
|
|||||||
HP_YELLOW EQU 1
|
HP_YELLOW EQU 1
|
||||||
HP_RED EQU 2
|
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 file corruption check values
|
||||||
SAVE_CHECK_VALUE_1 EQU 99
|
SAVE_CHECK_VALUE_1 EQU 99
|
||||||
SAVE_CHECK_VALUE_2 EQU 127
|
SAVE_CHECK_VALUE_2 EQU 127
|
||||||
|
@ -1975,12 +1975,12 @@ GetVarAction:
|
|||||||
Script_checkver:
|
Script_checkver:
|
||||||
; script command 0x18
|
; script command 0x18
|
||||||
|
|
||||||
ld a, [Version]
|
ld a, [.gs_version]
|
||||||
ld [ScriptVar], a
|
ld [ScriptVar], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Version:
|
.gs_version:
|
||||||
db VERSION
|
db GS_VERSION
|
||||||
|
|
||||||
Script_pokenamemem:
|
Script_pokenamemem:
|
||||||
; script command 0x40
|
; script command 0x40
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
_CRYSTAL EQU 1
|
|
||||||
VERSION EQU 0
|
|
Loading…
Reference in New Issue
Block a user