ConfigMenu: Block reading input from other threads while the config menu is opened

This commit is contained in:
Maschell
2024-05-03 13:00:18 +02:00
parent 340fdddf0b
commit a8fd0b64ac
4 changed files with 15 additions and 1 deletions

View File

@@ -136,6 +136,8 @@ void ConfigUtils::displayMenu() {
auto startTime = OSGetTime();
bool skipFirstInput = true;
gOnlyAcceptFromThread = OSGetCurrentThread();
while (true) {
baseInput.reset();
if (vpadInput.update(1280, 720)) {
@@ -184,6 +186,7 @@ void ConfigUtils::displayMenu() {
OSSleepTicks(OSMicrosecondsToTicks(16000 - diffTime));
}
}
gOnlyAcceptFromThread = nullptr;
for (const auto &plugin : gLoadedPlugins) {
const auto configData = plugin.getConfigData();