mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 15:35:29 +03:00
Treat symbol file paths without slashes as filenames
Prevents crashes printing backtrace if this occurs
This commit is contained in:
parent
d08ac63bbf
commit
57378457dc
@ -93,7 +93,7 @@ namespace skyline::loader {
|
|||||||
std::unique_ptr<char, decltype(&std::free)> demangled{abi::__cxa_demangle(info.dli_sname, nullptr, &length, &status), std::free};
|
std::unique_ptr<char, decltype(&std::free)> demangled{abi::__cxa_demangle(info.dli_sname, nullptr, &length, &status), std::free};
|
||||||
|
|
||||||
auto extractFilename{[](const char *path) {
|
auto extractFilename{[](const char *path) {
|
||||||
const char *filename{};
|
const char *filename{path};
|
||||||
for (const char *p{path}; *p; p++)
|
for (const char *p{path}; *p; p++)
|
||||||
if (*p == '/')
|
if (*p == '/')
|
||||||
filename = p + 1;
|
filename = p + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user