-
Notifications
You must be signed in to change notification settings - Fork 23
RPSysPauseMenu and RPSysPauseMgr headers, RPSysAppMiiManager hotfix #158
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
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e12f42b
RPSysSystem::softResetCallback 100%, beginning RPSysHomeMenuMgr and R…
82f311d
Fixed build.yml
30cbf73
fixed for real
2cfc671
softResetCallBack 100%, HomeMenuMgr WIP
0dfecfd
More work on RPSysSystem, reverting build.yml
f94f347
Implementing requested changes
57290a6
updating
248352d
updating again
8aeeff4
Merge branch 'master' of https://github.com/doldecomp/ogws
6a892f8
fix symbols
733d2fc
Merge branch 'master' of https://github.com/doldecomp/ogws
5ff9ac8
Merge branch 'master' of https://github.com/doldecomp/ogws
44d2c43
Creating separate branch for pull rq
aa29a64
Hot fix (isOpen was deleted)
14f0f37
Fixed bug that was introduced like a week ago that was causing checks…
775d8e8
Hotfix: LoadResource() and beginDrawScreen() are 100% matched
0d67c24
implementing feedback
4f6c907
Merge https://github.com/doldecomp/ogws into home-menu
6597d63
headers defined: hotfix to RPSysAppMiiManager (not push-ready)
87f1dba
Merge branch 'doldecomp:master' into home-menu
Tanline666 cfc5c74
Rewrite RPMii constructor, shell for VI (too many esoteric register o…
356967f
Merge branch 'home-menu' of https://github.com/Tanline666/ogws into h…
d1bfd42
Fixing header
868db77
Delete documentation
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
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,60 @@ | ||
| #ifndef RP_KERNEL_PAUSE_MENU_H | ||
| #define RP_KERNEL_PAUSE_MENU_H | ||
|
|
||
| #include <nw4r/lyt.h> | ||
| #include <Pack/types_pack.h> | ||
|
|
||
| //! @addtogroup rp_kernel | ||
| //! @{ | ||
|
|
||
| // Forward declarations | ||
| class RPSysLayout; | ||
| class RPSysLytBounding; | ||
| class RPSysLytAnmObj; | ||
| class RPSysLytTextBox; | ||
|
|
||
| /** | ||
| * @brief Library that handles pause menu layout. | ||
| */ | ||
|
|
||
| class RPSysPauseMenu { | ||
| virtual ~RPSysPauseMenu(); | ||
|
|
||
| public: | ||
| void draw(); | ||
|
|
||
| private: | ||
| RPSysLayout* mLayout; // at 0x4 | ||
| RPSysLytAnmObj* mAnmObj_0x04; | ||
| RPSysLytAnmObj* mAnmObj_0x08; | ||
| void* mUNK_0x10; | ||
| nw4r::lyt::Pane* mPane_0x14; | ||
| nw4r::lyt::Pane* mPane_0x18; | ||
| bool mUNK_0x1C; | ||
| bool mUNK_0x1D; | ||
| u8 mPAD_0x1E[2]; | ||
| nw4r::lyt::Pane* mPane_0x20; | ||
| RPSysLytBounding* mBounding; // at 0x24 | ||
| RPSysLytTextBox* mTextBox; // at 0x28 | ||
| bool mUNK_0x2C; | ||
| bool mUNK_0x2D; | ||
| u8 mPAD_0x2E[10]; | ||
| bool mUNK_0x38; | ||
| bool mUNK_0x39; | ||
| u8 mPAD_0x3A[26]; | ||
| bool mUNK_0x54; | ||
| bool mUNK_0x55; | ||
| u8 mPAD_0x56[26]; | ||
| void* mUtlCursor; //! At 0x70. RPUtlLytFrameCursor is not defined yet. | ||
| u8 mPAD_0x74[4]; | ||
| bool mUNK_0x78; | ||
| u8 mPAD_0x79[4]; | ||
| bool mUNK_0x7D; | ||
| bool mUNK_0x7E; | ||
| bool mUNK_0x7F; | ||
| u8 mPAD_0x80[8]; | ||
| }; | ||
|
|
||
| //! @} | ||
|
|
||
| #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
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,11 @@ | ||
| #include <Pack/RPKernel.h> | ||
|
|
||
| void RPSysPauseMenu::draw() { | ||
| if (!mUNK_0x78) { | ||
| mLayout->draw(); | ||
| //! todo(texline): define RPUtlLytFrameCursor | ||
| // mUtlCursor->draw(); | ||
| } | ||
| } | ||
|
|
||
| RPSysPauseMenu::~RPSysPauseMenu() {} |
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,18 @@ | ||
| #include <Pack/RPKernel.h> | ||
| #include <Pack/RPSingleton.h> | ||
| #include <Pack/RPSystem.h> | ||
|
|
||
| RP_SINGLETON_IMPL_EX(RPSysPauseMgr); | ||
|
|
||
| void RPSysPauseMgr::draw() { | ||
| if (isPause()) { | ||
| mPauseMenu->draw(); | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * @brief Destructor | ||
| */ | ||
| RPSysPauseMgr::~RPSysPauseMgr() { | ||
| //TODO(texline): delete mPauseMenu (it does not have a singleton) | ||
| } |
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,16 @@ | ||
| #include <revolution/VI.h> | ||
|
|
||
| static VIRetraceCallback PreCB; | ||
| static void* CurrBufAddr; | ||
|
|
||
| VIRetraceCallback VISetPreRetraceCallback(VIRetraceCallback callback) { | ||
| VIRetraceCallback currCB = PreCB; | ||
| BOOL enabled = OSDisableInterrupts(); | ||
| PreCB = callback; | ||
| OSRestoreInterrupts(enabled); | ||
| return currCB; | ||
| } | ||
|
|
||
| void* VIGetCurrentFrameBuffer(void) { | ||
| return CurrBufAddr; | ||
| } |
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.