summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorAdam Bird <Archez@users.noreply.github.com>2023-02-28 20:46:55 -0500
committerGitHub <noreply@github.com>2023-02-28 20:46:55 -0500
commit1fc6a2f08f534b92aed3884fbad6e8a4758009c6 (patch)
tree9134dd525bb0a99df61056cc1f551f57d6aba139 /soh/src/code
parent27d7cb0bc16fa1339914ad69e053b1329d1f4ed5 (diff)
Rando version warning on different builds (#2420)
* save build version to savefile * adjust rando hash icons to use fade in/out * add dialog message support on the file select screen and display rando version warning * remove duplicated message functions and use stubbed play state instead for rando warning * add major/minor/patch version saving to file and compare against * use strncpy and memset for build version * don't show rando warning one copy/erase screens * review feedback * Add german and french translations for rando warning Co-authored-by: PurpleHato <linkvssangoku.jr@gmail.com> --------- Co-authored-by: PurpleHato <linkvssangoku.jr@gmail.com>
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_construct.c6
-rw-r--r--soh/src/code/z_play.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/soh/src/code/z_construct.c b/soh/src/code/z_construct.c
index 1b77d38b3..44b0ee5e7 100644
--- a/soh/src/code/z_construct.c
+++ b/soh/src/code/z_construct.c
@@ -163,7 +163,7 @@ void Message_Init(PlayState* play) {
YREG(31) = 0;
}
-void func_80111070(void) {
+void Regs_InitDataImpl(void) {
YREG(8) = 10;
YREG(14) = 0;
YREG(15) = 0;
@@ -572,6 +572,6 @@ void func_80111070(void) {
VREG(92) = -63;
}
-void func_80112098(PlayState* play) {
- func_80111070();
+void Regs_InitData(PlayState* play) {
+ Regs_InitDataImpl();
}
diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c
index 71e5984e0..981f5b975 100644
--- a/soh/src/code/z_play.c
+++ b/soh/src/code/z_play.c
@@ -463,7 +463,7 @@ void Play_Init(GameState* thisx) {
play->cameraPtrs[MAIN_CAM]->uid = 0;
play->activeCamera = MAIN_CAM;
func_8005AC48(&play->mainCamera, 0xFF);
- func_80112098(play);
+ Regs_InitData(play);
Message_Init(play);
GameOver_Init(play);
SoundSource_InitAll(play);