mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2026-04-26 10:00:07 -05:00
Improve logging
This commit is contained in:
parent
b5f345e22a
commit
306b2c1e70
|
|
@ -191,11 +191,11 @@ std::vector<ModuleData> OrderModulesByDependencies(const std::vector<ModuleData>
|
||||||
bool weDidSomething = false;
|
bool weDidSomething = false;
|
||||||
for (auto const &curModule : loadedModules) {
|
for (auto const &curModule : loadedModules) {
|
||||||
if (std::find(loadedModulesEntrypoints.begin(), loadedModulesEntrypoints.end(), curModule.getEntrypoint()) != loadedModulesEntrypoints.end()) {
|
if (std::find(loadedModulesEntrypoints.begin(), loadedModulesEntrypoints.end(), curModule.getEntrypoint()) != loadedModulesEntrypoints.end()) {
|
||||||
DEBUG_FUNCTION_LINE("%s [%08X] is already loaded\n", curModule.getExportName().c_str(), curModule.getEntrypoint());
|
// DEBUG_FUNCTION_LINE("%s [%08X] is already loaded\n", curModule.getExportName().c_str(), curModule.getEntrypoint());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
canBreak = false;
|
canBreak = false;
|
||||||
DEBUG_FUNCTION_LINE("Missing %s\n", curModule.getExportName().c_str());
|
DEBUG_FUNCTION_LINE("Check if we can load %s\n", curModule.getExportName().c_str());
|
||||||
std::vector<std::string> importsFromOtherModules;
|
std::vector<std::string> importsFromOtherModules;
|
||||||
for (auto curReloc: curModule.getRelocationDataList()) {
|
for (auto curReloc: curModule.getRelocationDataList()) {
|
||||||
std::string curRPL = curReloc.getImportRPLInformation().getName();
|
std::string curRPL = curReloc.getImportRPLInformation().getName();
|
||||||
|
|
@ -220,7 +220,7 @@ std::vector<ModuleData> OrderModulesByDependencies(const std::vector<ModuleData>
|
||||||
}
|
}
|
||||||
if (canLoad) {
|
if (canLoad) {
|
||||||
weDidSomething = true;
|
weDidSomething = true;
|
||||||
DEBUG_FUNCTION_LINE("############## load %s\n", curModule.getExportName().c_str());
|
DEBUG_FUNCTION_LINE("We can load: %s\n", curModule.getExportName().c_str());
|
||||||
finalOrder.push_back(curModule);
|
finalOrder.push_back(curModule);
|
||||||
loadedModulesExportNames.push_back(curModule.getExportName());
|
loadedModulesExportNames.push_back(curModule.getExportName());
|
||||||
loadedModulesEntrypoints.push_back(curModule.getEntrypoint());
|
loadedModulesEntrypoints.push_back(curModule.getEntrypoint());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user