1
0
mirror of synced 2025-01-29 19:17:28 +01:00

fix: Crash when trying to open unopenable file

This commit is contained in:
WerWolv 2024-03-17 13:20:02 +01:00
parent 6295c1d0c3
commit 86a0693081

View File

@ -186,7 +186,7 @@ namespace hex::plugin::builtin {
m_readable = true;
m_writable = true;
if (!std::fs::exists(m_path)) {
if (!wolv::io::fs::exists(m_path)) {
this->setErrorMessage(hex::format("hex.builtin.provider.file.error.open"_lang, m_path.string(), ::strerror(ENOENT)));
return false;
}