Skip to content

Commit

Permalink
Mupen64Plus - Parse '&' properly from GLideN64.custom.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
bslenul authored and gonetz committed Oct 19, 2024
1 parent b56c9bf commit b92ae13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mupenplus/Config_mupenplus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ void Config_LoadCustomConfig()
ROMname.replace(pos, 1, "%20");
for (size_t pos = ROMname.find('\''); pos != std::string::npos; pos = ROMname.find('\'', pos))
ROMname.replace(pos, 1, "%27");
for (size_t pos = ROMname.find('&'); pos != std::string::npos; pos = ROMname.find('&', pos))
ROMname.replace(pos, 1, "%26");
std::transform(ROMname.begin(), ROMname.end(), ROMname.begin(), ::toupper);
const char* sectionName = ROMname.c_str();
m64p_handle fileHandle;
Expand Down

0 comments on commit b92ae13

Please sign in to comment.