mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 00:00:42 +01:00
[rpcsx-os] dynlib_load_prx: early return error if prx not exists
This commit is contained in:
parent
5a61682b84
commit
1d3a3949f3
|
|
@ -429,6 +429,14 @@ orbis::SysResult dynlib_load_prx(orbis::Thread *thread,
|
|||
return errorCode;
|
||||
}
|
||||
|
||||
{
|
||||
orbis::Ref<orbis::File> file;
|
||||
if (auto result = rx::vfs::open(_name, 0, 0, &file, thread);
|
||||
result.isError()) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
auto [result, module] = loadPrx(thread, _name, true);
|
||||
if (result.isError()) {
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in a new issue