mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2026-09-08 20:08:45 -05:00
ConfigMenu: Block reading input from other threads while the config menu is opened
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user