mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Merge pull request #4846 from aldelaro5/fix-symbols-newline
Fix symbols name from maps taking 2 lines instead of one
This commit is contained in:
commit
4b7dd1f638
@ -356,6 +356,8 @@ bool PPCSymbolDB::LoadMap(const std::string& filename, bool bad)
|
|||||||
if (namepos != nullptr) // would be odd if not :P
|
if (namepos != nullptr) // would be odd if not :P
|
||||||
strcpy(name, namepos);
|
strcpy(name, namepos);
|
||||||
name[strlen(name) - 1] = 0;
|
name[strlen(name) - 1] = 0;
|
||||||
|
if (name[strlen(name) - 1] == '\r')
|
||||||
|
name[strlen(name) - 1] = 0;
|
||||||
|
|
||||||
// Check if this is a valid entry.
|
// Check if this is a valid entry.
|
||||||
if (strcmp(name, ".text") != 0 && strcmp(name, ".init") != 0 && strlen(name) > 0)
|
if (strcmp(name, ".text") != 0 && strcmp(name, ".init") != 0 && strlen(name) > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user