Fix a bunch of compiler warnings, delete some unused code

This commit is contained in:
Henrik Rydgard
2016-03-13 15:17:31 +01:00
parent ec6559537b
commit c8457d39ed
9 changed files with 22 additions and 63 deletions
+1 -24
View File
@@ -303,7 +303,7 @@ public:
return;
}
DEBUG_LOG(LOADER, "Importing %s : %08x", GetFuncName(func.moduleName, func.nid), func.stubAddr);
WARN_LOG(LOADER, "Importing %s : %08x", GetFuncName(func.moduleName, func.nid), func.stubAddr);
// Add the symbol to the symbol map for debugging.
char temp[256];
@@ -1376,29 +1376,6 @@ static Module *__KernelLoadELFFromPtr(const u8 *ptr, u32 loadAddress, bool fromT
return module;
}
static bool __KernelLoadPBP(FileLoader *fileLoader, std::string *error_string)
{
PBPReader pbp(fileLoader);
if (!pbp.IsValid()) {
ERROR_LOG(LOADER, "%s is not a valid homebrew PSP1.0 PBP", fileLoader->Path().c_str());
*error_string = "Not a valid homebrew PBP";
return false;
}
std::vector<u8> elfData;
if (!pbp.GetSubFile(PBP_EXECUTABLE_PSP, &elfData)) {
return false;
}
u32 magic;
u32 error;
Module *module = __KernelLoadELFFromPtr(&elfData[0], PSP_GetDefaultLoadAddress(), false, error_string, &magic, error);
if (!module) {
return false;
}
mipsr4k.pc = module->nm.entry_addr;
return true;
}
static Module *__KernelLoadModule(u8 *fileptr, SceKernelLMOption *options, std::string *error_string)
{
Module *module = 0;