summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authordreamsyntax <dreamsyntax@gmail.com>2025-01-10 12:52:36 -0700
committerdreamsyntax <dreamsyntax@gmail.com>2025-01-10 14:37:58 -0700
commitb9a2d89035c38ab0e8f93d02e0fa8a489dde213e (patch)
tree899254edb27cd2fb7643dd111aef820501b3df7c /Source
parent93fc5c02ac6df9db9e478d56145dbe96581b36ca (diff)
PPCSymbolDB: Fix loading maps with CRLF endings
Symbol maps ending in CRLF were not properly loading on non-windows systems.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/PowerPC/PPCSymbolDB.cpp2
1 files changed, 1 insertions, 1 deletions
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;