mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2025-01-09 03:00: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();
|
info.pluginData = plugin.getPluginDataCopy();
|
||||||
|
|
||||||
std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> config;
|
std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> config;
|
||||||
|
if (plugin.isLinkedAndLoaded()) {
|
||||||
const auto configData = plugin.getConfigData();
|
const auto configData = plugin.getConfigData();
|
||||||
if (configData) {
|
if (configData) {
|
||||||
const auto configHandleOpt = configData->createConfig();
|
const auto configHandleOpt = configData->createConfig();
|
||||||
@ -120,6 +121,7 @@ void ConfigUtils::displayMenu() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!config) {
|
if (!config) {
|
||||||
config = make_unique_nothrow<WUPSConfigAPIBackend::WUPSConfig>(info.name);
|
config = make_unique_nothrow<WUPSConfigAPIBackend::WUPSConfig>(info.name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user