diff --git a/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp b/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp index 08c6a37c0fd9..6c206d110232 100644 --- a/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp +++ b/Source/Core/DolphinWX/Cheats/GeckoCodeDiag.cpp @@ -192,6 +192,9 @@ void CodeConfigPanel::DownloadCodes(wxCommandEvent&) while ((std::getline(ss, line).good())) { + // Remove \r at the end of the line for files using windows line endings, std::getline only removes \n + line = StripSpaces(line); + // empty line if (0 == line.size() || line == "\r" || line == "\n") // \r\n checks might not be needed {