summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-27 06:08:02 +0200
committerTreeki <treeki@gmail.com>2012-09-27 06:08:02 +0200
commit87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064 (patch)
treeee84faa773436063126b18cc31da3caa04ccdb3c /include
parente30d836af369f251f83375dd9a9dbab435ee61f1 (diff)
downloadkamek-87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064.tar.gz
kamek-87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064.zip
a tiny bit of savefile RE, and default world stuff in the savefile
Diffstat (limited to 'include')
-rwxr-xr-xinclude/game.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/game.h b/include/game.h
index 32b3a1d..071d93e 100755
--- a/include/game.h
+++ b/include/game.h
@@ -153,6 +153,31 @@ bool IsWideScreen();
#define COND_SGNORMAL 0x80
#define COND_SGSECRET 0x100
+
+// All of these are set by "SetWorldCompleteionBitfield" (I didn't name it)
+// at 801028D0. It's called by ScStage so it doesn't depend on Nintendo maps.
+
+#define SAVE_BIT_EXISTS_MAYBE 1
+
+// Controls whether you can QUICK SAVE or not.
+// Set if 8-Castle is complete.
+#define SAVE_BIT_GAME_COMPLETE 2
+
+// Set when all exits are complete.
+// This is defined by "ReturnWhetherConditionMaskIsValid" / "SetSomeConditionShit"
+// TODO: Need to RE and fix this for Newer...
+#define SAVE_BIT_ALL_EXITS 4
+
+// Set when all star coins in worlds 1-8 are obtained.
+// Valid levels are chosen by the condition crap as above.
+#define SAVE_BIT_ALL_STAR_COINS 8
+
+#define SAVE_BIT_ALL_STAR_COINS_W9 0x10
+
+// Set when, well... EVERYTHING is done.
+#define SAVE_BIT_EVERYTHING_TRULY_DONE 0x20
+
+
class SaveFirstBlock {
public:
char titleID[4]; // 0x00