Skip to content

Commit

Permalink
replace VERSION_NONE with NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
iriv24 committed Jan 5, 2025
1 parent 4b59eea commit 888f527
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
23 changes: 11 additions & 12 deletions include/global/pm_version.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#ifndef POKEPLATINUM_PM_VERSION_H
#define POKEPLATINUM_PM_VERSION_H

#define VERSION_NONE 0
#define SAPPHIRE 1
#define RUBY 2
#define EMERALD 3
#define FIRERED 4
#define LEAFGREEN 5
#define HEARTGOLD 7
#define SOULSILVER 8
#define DIAMOND 10
#define PEARL 11
#define PLATINUM 12
#define COLOSSEUM 15
#define SAPPHIRE 1
#define RUBY 2
#define EMERALD 3
#define FIRERED 4
#define LEAFGREEN 5
#define HEARTGOLD 7
#define SOULSILVER 8
#define DIAMOND 10
#define PEARL 11
#define PLATINUM 12
#define COLOSSEUM 15

#define JAPANESE 1
#define ENGLISH 2
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void NitroMain(void)
InitGraphics();
InitKeypadAndTouchpad();

SetGBACartridgeVersion(VERSION_NONE);
SetGBACartridgeVersion(NULL);
PM_GetBackLight(&sSavedBacklightState, NULL);
sub_0202419C();
InitRTC();
Expand Down
2 changes: 1 addition & 1 deletion src/overlay097/ov97_0222D30C.c
Original file line number Diff line number Diff line change
Expand Up @@ -2445,7 +2445,7 @@ static int ov97_022301BC(OverlayManager *param0, int *param1)
Heap_Destroy(86);

if (v0->unk_1638 == 2) {
SetGBACartridgeVersion(VERSION_NONE);
SetGBACartridgeVersion(NULL);
}

ov97_02238400(0);
Expand Down

0 comments on commit 888f527

Please sign in to comment.