"load symbol map" now loads <filname>.map if you booted in dol or elf mode

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2382 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-02-22 23:36:13 +00:00
parent 14d8db715f
commit 6bc6731f51
1 changed files with 9 additions and 9 deletions

View File

@ -84,15 +84,15 @@ void CBoot::UpdateDebugger_MapLoaded(const char *_gameID)
std::string CBoot::GenerateMapFilename()
{
/*
std::string strDriveDirectory, strFilename;
SplitPath(booted_file, &strDriveDirectory, &strFilename, NULL);
std::string strFullfilename(strFilename + _T(".map"));
std::string strMapFilename;
BuildCompleteFilename(strMapFilename, strDriveDirectory, strFullfilename);
*/
return FULL_MAPS_DIR + SConfig::GetInstance().m_LocalCoreStartupParameter.GetUniqueID() + ".map";
SCoreStartupParameter& _StartupPara = SConfig::GetInstance().m_LocalCoreStartupParameter;
switch (_StartupPara.m_BootType)
{
case SCoreStartupParameter::BOOT_ELF:
case SCoreStartupParameter::BOOT_DOL:
return _StartupPara.m_strFilename.substr(0, _StartupPara.m_strFilename.size()-4) + ".map";
default:
return FULL_MAPS_DIR + _StartupPara.GetUniqueID() + ".map";
}
}
bool CBoot::LoadMapFromFilename(const std::string &_rFilename, const char *_gameID)