1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: /imhex being appended to Application Support folder paths on macOS

Fixes #1221
This commit is contained in:
WerWolv 2023-08-03 21:49:41 +02:00
parent 50dd6405e9
commit e65497ec3b

View File

@ -171,9 +171,6 @@ namespace hex::fs {
#endif
for (auto &path : paths)
path = path / "imhex";
#if defined(OS_MACOS)
if (auto executablePath = wolv::io::fs::getExecutablePath(); executablePath.has_value())
@ -181,6 +178,9 @@ namespace hex::fs {
#else
for (auto &path : paths)
path = path / "imhex";
if (auto executablePath = wolv::io::fs::getExecutablePath(); executablePath.has_value())
paths.push_back(executablePath->parent_path());