From b9a2d89035c38ab0e8f93d02e0fa8a489dde213e Mon Sep 17 00:00:00 2001 From: dreamsyntax Date: Fri, 10 Jan 2025 12:52:36 -0700 Subject: [PATCH] PPCSymbolDB: Fix loading maps with CRLF endings Symbol maps ending in CRLF were not properly loading on non-windows systems. --- Source/Core/Core/PowerPC/PPCSymbolDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp index 95102fa179..ca6c8d0f28 100644 --- a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp +++ b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp @@ -251,7 +251,7 @@ bool PPCSymbolDB::LoadMap(const Core::CPUThreadGuard& guard, const std::string& continue; // Support CodeWarrior and Dolphin map - if (std::string_view{line}.ends_with(" section layout\n") || strcmp(temp, ".text") == 0 || + if (StripWhitespace(line).ends_with(" section layout") || strcmp(temp, ".text") == 0 || strcmp(temp, ".init") == 0) { section_name = temp;