mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
PPCSymbolDB: Move loading map on boot logic from boot.cpp into PPCSymbolDB, as it will be needing a mutex.
Cleanup loading code and reduce amount of signals. On boot. allow previously loaded map to be kept, if its filename matches. Useful for restarting a game with a large symbol map.
This commit is contained in:
parent
5836ca133c
commit
fe121e4c6e
8 changed files with 49 additions and 46 deletions
|
@ -44,15 +44,20 @@ void SymbolDB::List()
|
|||
|
||||
bool SymbolDB::IsEmpty() const
|
||||
{
|
||||
return m_functions.empty();
|
||||
return m_functions.empty() && m_notes.empty();
|
||||
}
|
||||
|
||||
void SymbolDB::Clear(const char* prefix)
|
||||
bool SymbolDB::Clear(const char* prefix)
|
||||
{
|
||||
// TODO: honor prefix
|
||||
m_map_name.clear();
|
||||
if (IsEmpty())
|
||||
return false;
|
||||
|
||||
m_functions.clear();
|
||||
m_notes.clear();
|
||||
m_checksum_to_function.clear();
|
||||
return true;
|
||||
}
|
||||
|
||||
void SymbolDB::Index()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue