mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-25 20:06:17 +00:00
parent
2857ef34f0
commit
5d064dd89f
1 changed files with 10 additions and 9 deletions
|
@ -332,21 +332,22 @@ bool Linker::Resolve(const std::string& name, Loader::SymbolType sym_type, Modul
|
||||||
sr.type = sym_type;
|
sr.type = sym_type;
|
||||||
|
|
||||||
const auto* record = m_hle_symbols.FindSymbol(sr);
|
const auto* record = m_hle_symbols.FindSymbol(sr);
|
||||||
if (!record) {
|
|
||||||
// Check if it an export function
|
|
||||||
const auto* p = FindExportedModule(*module, *library);
|
|
||||||
if (p && p->export_sym.GetSize() > 0) {
|
|
||||||
record = p->export_sym.FindSymbol(sr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (record) {
|
if (record) {
|
||||||
*return_info = *record;
|
*return_info = *record;
|
||||||
|
|
||||||
Core::Devtools::Widget::ModuleList::AddModule(sr.library);
|
Core::Devtools::Widget::ModuleList::AddModule(sr.library);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if it an export function
|
||||||
|
const auto* p = FindExportedModule(*module, *library);
|
||||||
|
if (p && p->export_sym.GetSize() > 0) {
|
||||||
|
record = p->export_sym.FindSymbol(sr);
|
||||||
|
if (record) {
|
||||||
|
*return_info = *record;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const auto aeronid = AeroLib::FindByNid(sr.name.c_str());
|
const auto aeronid = AeroLib::FindByNid(sr.name.c_str());
|
||||||
if (aeronid) {
|
if (aeronid) {
|
||||||
return_info->name = aeronid->name;
|
return_info->name = aeronid->name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue