mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2024-11-30 11:34:15 +01:00
Support the AromaBaseModule
This commit is contained in:
parent
47fc482931
commit
7282ee878d
@ -81,11 +81,11 @@ void doStart(int argc, char **argv) {
|
|||||||
gLoadedModules.push_back(module);
|
gLoadedModules.push_back(module);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool applicationEndHookLoaded = false;
|
bool aromaBaseModuleLoaded = false;
|
||||||
for (auto &curModule : gLoadedModules) {
|
for (auto &curModule : gLoadedModules) {
|
||||||
if (std::string_view(curModule->getExportName()) == "homebrew_applicationendshook") {
|
if (std::string_view(curModule->getExportName()) == "homebrew_basemodule") {
|
||||||
DEBUG_FUNCTION_LINE_VERBOSE("We have ApplicationEndsHook Module!");
|
DEBUG_FUNCTION_LINE_VERBOSE("We have AromaBaseModule!");
|
||||||
applicationEndHookLoaded = true;
|
aromaBaseModuleLoaded = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -94,9 +94,9 @@ void doStart(int argc, char **argv) {
|
|||||||
for (auto &curModule : gLoadedModules) {
|
for (auto &curModule : gLoadedModules) {
|
||||||
for (auto &curHook : curModule->getHookDataList()) {
|
for (auto &curHook : curModule->getHookDataList()) {
|
||||||
if (curHook->getType() == WUMS_HOOK_APPLICATION_ENDS || curHook->getType() == WUMS_HOOK_FINI_WUT_DEVOPTAB) {
|
if (curHook->getType() == WUMS_HOOK_APPLICATION_ENDS || curHook->getType() == WUMS_HOOK_FINI_WUT_DEVOPTAB) {
|
||||||
if (!applicationEndHookLoaded) {
|
if (!aromaBaseModuleLoaded) {
|
||||||
DEBUG_FUNCTION_LINE_ERR("%s requires module homebrew_applicationendshook", curModule->getExportName().c_str());
|
DEBUG_FUNCTION_LINE_ERR("%s requires module homebrew_basemodule", curModule->getExportName().c_str());
|
||||||
OSFatal("module requires module homebrew_applicationendshook");
|
OSFatal("module requires module homebrew_basemodule");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user