From ed317da2d37c1f6b91068c02190d4eb75dfb1453 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 25 Jan 2013 23:55:58 +0100 Subject: add a couple of things to the linker script and game.h --- include/game.h | 2 ++ kamek_pal.x | 3 +++ 2 files changed, 5 insertions(+) diff --git a/include/game.h b/include/game.h index 2a30ee7..5c7ac05 100755 --- a/include/game.h +++ b/include/game.h @@ -272,6 +272,8 @@ public: u32 GetLevelCondition(int world, int level); bool CheckLevelCondition(int world, int level, int cond); + void SetLevelCondition(int world, int level, int cond); + void UnsetLevelCondition(int world, int level, int cond); bool CheckIfCoinCollected(int world, int level, int num); }; diff --git a/kamek_pal.x b/kamek_pal.x index 00904eb..9a0fee1 100644 --- a/kamek_pal.x +++ b/kamek_pal.x @@ -1143,10 +1143,13 @@ SECTIONS { GetLevelCondition__9SaveBlockFii = 0x800CE490; CheckLevelCondition__9SaveBlockFiii = 0x800CE4B0; + SetLevelCondition__9SaveBlockFiii = 0x800CE4E0; + UnsetLevelCondition__9SaveBlockFiii = 0x800CE500; _Z20CheckIfWeCantDoStuffv = 0x8076DB90; _Z15QueryGlobal5758j = 0x800B3B50; + UpdateSavefileChecksums = 0x800E05A0; -- cgit v1.2.3