Fix many bugs with the Symbols menu (when run with -d argument).

The Symbols menu is now fully useable.
This commit is contained in:
CarlKenner
2014-12-15 08:47:36 +10:30
parent 5aa1d4733d
commit f54d9e33c2
8 changed files with 209 additions and 21 deletions

View File

@ -67,7 +67,8 @@ void CBoot::UpdateDebugger_MapLoaded()
}
bool CBoot::FindMapFile(std::string* existing_map_file,
std::string* writable_map_file)
std::string* writable_map_file,
std::string* title_id)
{
std::string title_id_str;
size_t name_begin_index;
@ -109,6 +110,9 @@ bool CBoot::FindMapFile(std::string* existing_map_file,
if (writable_map_file)
*writable_map_file = File::GetUserPath(D_MAPS_IDX) + title_id_str + ".map";
if (title_id)
*title_id = title_id_str;
bool found = false;
static const std::string maps_directories[] = {
File::GetUserPath(D_MAPS_IDX),

View File

@ -36,9 +36,12 @@ public:
// If writable_map_file is not nullptr, it is set to the path to where a map
// file should be saved.
//
// If title_id is not nullptr, it is set to the title id
//
// Returns true if a map file exists, false if none could be found.
static bool FindMapFile(std::string* existing_map_file,
std::string* writable_map_file);
std::string* writable_map_file,
std::string* title_id = nullptr);
private:
static void RunFunction(u32 _iAddr);