mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 10:55:03 +00:00
Symbol resolver added
This commit is contained in:
parent
e7649001e1
commit
b8c542805f
5 changed files with 78 additions and 1 deletions
13
src/Core/PS4/Loader/SymbolsResolver.cpp
Normal file
13
src/Core/PS4/Loader/SymbolsResolver.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "../../../types.h"
|
||||
#include "SymbolsResolver.h"
|
||||
|
||||
|
||||
void SymbolsResolver::AddSymbol(const SymbolRes& s, u64 virtual_addr)
|
||||
{
|
||||
SymbolRecord r{};
|
||||
char str[256];
|
||||
sprintf(str, "%s (%s)[%s_v%d][%s_v%d.%d]", s.name.c_str(),s.nidName.c_str(), s.library.c_str(), s.library_version, s.module.c_str(),s.module_version_major, s.module_version_minor);
|
||||
r.name = std::string(str);
|
||||
r.virtual_address = virtual_addr;
|
||||
m_symbols.push_back(r);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue