mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 23:45:12 +00:00
[rpcsx-os] linker: fix module load order
This commit is contained in:
parent
b12cc68bf3
commit
1d55e83965
4 changed files with 144 additions and 71 deletions
|
|
@ -798,7 +798,6 @@ Ref<orbis::Module> rx::linker::loadModule(std::span<std::byte> image,
|
|||
rx::vm::protect(seg.addr, seg.size, rx::vm::kMapProtCpuAll);
|
||||
}
|
||||
|
||||
result->id = process->modulesMap.insert(result);
|
||||
result->proc = process;
|
||||
|
||||
std::printf("Loaded module '%s' from object '%s', id: %u, address: %p - %p\n",
|
||||
|
|
@ -812,8 +811,12 @@ Ref<orbis::Module> rx::linker::loadModule(std::span<std::byte> image,
|
|||
return result;
|
||||
}
|
||||
|
||||
Ref<orbis::Module> rx::linker::loadModuleFile(const char *path,
|
||||
Ref<orbis::Module> rx::linker::loadModuleFile(std::string_view path,
|
||||
orbis::Process *process) {
|
||||
if (!path.contains('/')) {
|
||||
return loadModuleByName(path, process);
|
||||
}
|
||||
|
||||
orbis::Ref<IoDeviceInstance> instance;
|
||||
if (vfs::open(path, kOpenFlagReadOnly, 0, &instance).isError()) {
|
||||
return {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue