Skip to content

Commit

Permalink
Apparently my try to fix racing issue with mixed path was causing sta…
Browse files Browse the repository at this point in the history
…bility issue, oh well
  • Loading branch information
LunaMoo committed Apr 5, 2020
1 parent 23e647a commit 4debff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1424,11 +1424,7 @@ void Config::AddRecent(const std::string &file) {
// We'll add it back below. This makes sure it's at the front, and only once.
RemoveRecent(file);
const std::string filename = File::ResolvePath(file);
std::string filename2 = filename;
#ifdef _WIN32
filename2 = ReplaceAll(filename, "\\", "/");
#endif
recentIsos.insert(recentIsos.begin(), filename2);
recentIsos.insert(recentIsos.begin(), filename);
if ((int)recentIsos.size() > iMaxRecent)
recentIsos.resize(iMaxRecent);
}
Expand Down
2 changes: 1 addition & 1 deletion Core/PSPLoaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) {

#ifdef _WIN32
// Turn the slashes back to the Windows way.
//path = ReplaceAll(path, "/", "\\");
path = ReplaceAll(path, "/", "\\");
#endif

if (!PSP_CoreParameter().mountRoot.empty()) {
Expand Down

0 comments on commit 4debff1

Please sign in to comment.