-
Notifications
You must be signed in to change notification settings - Fork 20
Decompile Game_16 #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Decompile Game_16 #167
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
29be6ff
Game_16 OK
0Aurel a7c25e1
Remove unnecessary FadeControl constructor definition
0Aurel d5f871b
Define HW_RESET_PARAMETER_BUF macro to replace hardcoded address
0Aurel e9dfab1
Refactor Game constructor to use proper C++ initialization
0Aurel 98b4935
Fix Game constructor and FadeControl initialization
0Aurel 4e1f4a3
Remove explicit call to mangled constructor symbol
0Aurel 5b73154
Update symbols.txt for func_0202cf44 signature change
0Aurel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #ifndef _NDS_SYSTEM_H | ||
| #define _NDS_SYSTEM_H | ||
|
|
||
| #include "types.h" | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
||
| // Reset Parameter Buffer (BIOS reset information) | ||
| // Not documented on gbatek, located at 0x027ffc20 | ||
| // Contains reset state information - value 2 indicates specific reset condition | ||
| #define HW_RESET_PARAMETER_BUF (*(s32 *) 0x027ffc20) | ||
|
0Aurel marked this conversation as resolved.
|
||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
|
|
||
| #endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,41 @@ | ||
| #include "Game/Game.hpp" | ||
|
|
||
| Game::Game() {} | ||
| void Game::func_ov016_0211fd68() {} | ||
| #include <nds/system.h> | ||
|
|
||
| #include "GameStart/GameStart.hpp" | ||
| #include "Render/FadeController.hpp" | ||
| #include "System/OverlayManager.hpp" | ||
|
|
||
| extern "C" void func_0200d938(void *); | ||
|
|
||
| ARM Game::Game() : | ||
| mModeId(1), | ||
| mPrevModeId(1), | ||
| mMode(NULL), | ||
| mUnk_00c(Game::func_0202cf44, this, 0), | ||
| mFadeControl() { | ||
| mUnk_0f0 = 0; | ||
| mUnk_0f2 = 1; | ||
| mUnk_0f4 = 0; | ||
| mUnk_0f8 = 0; | ||
| mUnk_0fc = 0; | ||
| mUnk_0fe = 0; | ||
| mUnk_100 = false; | ||
| mUnk_101 = 0; | ||
| mUnk_102 = false; | ||
| mUnk_103 = 0; | ||
| } | ||
|
|
||
| ARM void Game::func_ov016_0211fd68() { | ||
| mFadeControl.Register(); | ||
| mFadeControl.mUnk_20 = false; | ||
| gFadeController.func_0202d77c(&mFadeControl); | ||
| if (HW_RESET_PARAMETER_BUF == 2) { | ||
| gOverlayManager.LoadGameMode(1); | ||
| GameStart::func_ov008_02112e88(); | ||
| gOverlayManager.UnloadGameMode(); | ||
| mPrevModeId = 4; | ||
| mModeId = 3; | ||
| } | ||
| func_0200d938(mUnk_00c.pad_0x00); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.