mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Remove the Maps folder from the Sys directory
It only had two out of date and game-specific maps from decades ago
This commit is contained in:
@ -362,24 +362,17 @@ void CBoot::UpdateDebugger_MapLoaded()
|
||||
bool CBoot::FindMapFile(std::string* existing_map_file, std::string* writable_map_file)
|
||||
{
|
||||
const std::string& game_id = SConfig::GetInstance().m_debugger_game_id;
|
||||
std::string path = File::GetUserPath(D_MAPS_IDX) + game_id + ".map";
|
||||
|
||||
if (writable_map_file)
|
||||
*writable_map_file = File::GetUserPath(D_MAPS_IDX) + game_id + ".map";
|
||||
*writable_map_file = path;
|
||||
|
||||
static const std::array<std::string, 2> maps_directories{
|
||||
File::GetUserPath(D_MAPS_IDX),
|
||||
File::GetSysDirectory() + MAPS_DIR DIR_SEP,
|
||||
};
|
||||
for (const auto& directory : maps_directories)
|
||||
if (File::Exists(path))
|
||||
{
|
||||
std::string path = directory + game_id + ".map";
|
||||
if (File::Exists(path))
|
||||
{
|
||||
if (existing_map_file)
|
||||
*existing_map_file = std::move(path);
|
||||
if (existing_map_file)
|
||||
*existing_map_file = std::move(path);
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user