fix if ya load an invalid NAND app

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2548 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
fires.gc 2009-03-04 19:13:51 +00:00
parent 111f065713
commit a03aa30895
1 changed files with 5 additions and 1 deletions

View File

@ -99,12 +99,16 @@ std::string CBoot::GenerateMapFilename()
return FULL_MAPS_DIR + std::string(tmpBuffer) + ".map";
}
}
break;
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";
}
return std::string("unknown map");
}
bool CBoot::LoadMapFromFilename(const std::string &_rFilename, const char *_gameID)