Skip to content

Commit

Permalink
Merge pull request #10429 from Zopolis4/mapurge
Browse files Browse the repository at this point in the history
Remove the Maps folder from the Sys directory
  • Loading branch information
leoetlino authored Feb 18, 2022
2 parents 0c78167 + 5e4d1f7 commit bb7475e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 89 deletions.
41 changes: 0 additions & 41 deletions Data/Sys/Maps/GFZE01.map

This file was deleted.

34 changes: 0 additions & 34 deletions Data/Sys/Maps/GMBE8P.map

This file was deleted.

1 change: 0 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ These folders are installed read-only and should not be changed:

* `GameSettings`: per-game default settings database
* `GC`: DSP and font dumps
* `Maps`: symbol tables (dev only)
* `Shaders`: post-processing shaders
* `Themes`: icon themes for GUI
* `Resources`: icons that are theme-agnostic
Expand Down
19 changes: 6 additions & 13 deletions Source/Core/Core/Boot/Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bb7475e

Please sign in to comment.