Block on VPADRead() while the plugin menu is open in Hyrule Warriors. (#109)
Some checks are pending
CI-Release / clang-format (push) Waiting to run
CI-Release / build-binary (push) Blocked by required conditions
CI-Release / deploy-binary (push) Blocked by required conditions

* Block on `VPADRead()` while the plugin menu is open.

* Trying to please clang-format.

* Block `VPADRead()` only for Hyrule Warriors.

---------

Co-authored-by: Daniel K. O. (dkosmari) <none@none>
This commit is contained in:
Daniel K. O.
2025-02-14 13:59:06 -03:00
committed by GitHub
parent 9aa660a302
commit c4ba7030d9
2 changed files with 15 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#include <wups/config.h>
#include <wups/hooks.h>
#include <coreinit/cache.h>
#include <coreinit/title.h>
#include <sysapp/launch.h>
@@ -166,6 +167,7 @@ void ConfigUtils::displayMenu() {
gOnlyAcceptFromThread = OSGetCurrentThread();
ConfigSubState subStateReturnValue = SUB_STATE_ERROR;
OSMemoryBarrier();
while (true) {
startTime = OSGetTime();
if (gConfigMenuShouldClose) {