mirror of https://github.com/WerWolv/ImHex
fix: Turn cli file path into absolute path before passing it on
This commit is contained in:
parent
4e2dcef7d7
commit
4caa0ce570
|
|
@ -104,7 +104,7 @@ namespace hex::plugin::builtin {
|
||||||
std::fs::path path;
|
std::fs::path path;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
path = std::fs::weakly_canonical(arg);
|
path = std::fs::absolute(arg);
|
||||||
} catch(std::fs::filesystem_error &) {
|
} catch(std::fs::filesystem_error &) {
|
||||||
path = arg;
|
path = arg;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue