mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2025-01-08 10:40:40 +01:00
Only check for config menu if the plugin is linked and loaded
This commit is contained in:
parent
9c8177405e
commit
39256e45f0
@ -83,6 +83,7 @@ void ConfigUtils::displayMenu() {
|
||||
info.pluginData = plugin.getPluginDataCopy();
|
||||
|
||||
std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> config;
|
||||
if (plugin.isLinkedAndLoaded()) {
|
||||
const auto configData = plugin.getConfigData();
|
||||
if (configData) {
|
||||
const auto configHandleOpt = configData->createConfig();
|
||||
@ -120,6 +121,7 @@ void ConfigUtils::displayMenu() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!config) {
|
||||
config = make_unique_nothrow<WUPSConfigAPIBackend::WUPSConfig>(info.name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user