fix: /imhex
being appended to Application Support folder paths on macOS
Fixes #1221
This commit is contained in:
parent
50dd6405e9
commit
e65497ec3b
@ -171,9 +171,6 @@ namespace hex::fs {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (auto &path : paths)
|
|
||||||
path = path / "imhex";
|
|
||||||
|
|
||||||
#if defined(OS_MACOS)
|
#if defined(OS_MACOS)
|
||||||
|
|
||||||
if (auto executablePath = wolv::io::fs::getExecutablePath(); executablePath.has_value())
|
if (auto executablePath = wolv::io::fs::getExecutablePath(); executablePath.has_value())
|
||||||
@ -181,6 +178,9 @@ namespace hex::fs {
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
for (auto &path : paths)
|
||||||
|
path = path / "imhex";
|
||||||
|
|
||||||
if (auto executablePath = wolv::io::fs::getExecutablePath(); executablePath.has_value())
|
if (auto executablePath = wolv::io::fs::getExecutablePath(); executablePath.has_value())
|
||||||
paths.push_back(executablePath->parent_path());
|
paths.push_back(executablePath->parent_path());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user