From b92ae13b8026f05219d5849fa33606770eb12e0a Mon Sep 17 00:00:00 2001 From: Bobby Smith <33353403+bslenul@users.noreply.github.com> Date: Thu, 3 Oct 2024 13:34:24 +0200 Subject: [PATCH] Mupen64Plus - Parse '&' properly from GLideN64.custom.ini --- src/mupenplus/Config_mupenplus.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mupenplus/Config_mupenplus.cpp b/src/mupenplus/Config_mupenplus.cpp index 2d9315d62..97e38a94e 100644 --- a/src/mupenplus/Config_mupenplus.cpp +++ b/src/mupenplus/Config_mupenplus.cpp @@ -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;