Port pause menu framebuffer handling from 2Ship (#4346)

* bring over framebuffer effects methods

* Implement framebuffer capture and drawing for pause menu

* revert hookshot and title cards to draw using original buffers

* remove old game over crash fix

* Adjust mirror mode handling for kaleido

* Avoid flashing the hud when pausing
This commit is contained in:
Archez
2024-10-10 19:45:11 -04:00
committed by GitHub
parent 7192783451
commit bd7155179e
14 changed files with 284 additions and 59 deletions

View File

@@ -1,5 +1,6 @@
#include "global.h"
#include <stdlib.h>
#include "soh/framebuffer_effects.h"
uintptr_t sSysCfbFbPtr[2];
uintptr_t sSysCfbEnd;
@@ -40,6 +41,9 @@ void SysCfb_Init(s32 n64dd) {
// "Frame buffer addresses are %08x and %08x"
//osSyncPrintf("フレームバッファのアドレスは %08x と %08x です\n", sSysCfbFbPtr[0], sSysCfbFbPtr[1]);
// SOH [Port] Inform LUS on resolution changes
FB_CreateFramebuffers();
}
void SysCfb_Reset() {