mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-12-25 01:21:57 +01:00
[Loader] Fixed loading plugin which don't replace any functions.
This commit is contained in:
parent
2b1b46363d
commit
6067cede64
@ -301,7 +301,7 @@ bool PluginLoader::loadAndLinkElf(PluginData * pluginData, Elf *elf, void * endA
|
|||||||
goto exit_error;
|
goto exit_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_FUNCTION_LINE("Copy section %s to %08X\n",name,curAddress);
|
//DEBUG_FUNCTION_LINE("Copy section %s to %08X\n",name,curAddress);
|
||||||
if (!ElfTools::elfLoadSection(elf, scn, shdr, (void*) curAddress)){
|
if (!ElfTools::elfLoadSection(elf, scn, shdr, (void*) curAddress)){
|
||||||
goto exit_error;
|
goto exit_error;
|
||||||
}
|
}
|
||||||
@ -310,10 +310,6 @@ bool PluginLoader::loadAndLinkElf(PluginData * pluginData, Elf *elf, void * endA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entries == NULL){
|
|
||||||
goto exit_error;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (scn = elf_nextscn(elf, NULL); scn != NULL; scn = elf_nextscn(elf, scn)) {
|
for (scn = elf_nextscn(elf, NULL); scn != NULL; scn = elf_nextscn(elf, scn)) {
|
||||||
Elf32_Shdr *shdr;
|
Elf32_Shdr *shdr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user