From c2bb6e37b16db97465dfbc8b1eefd5a357f29140 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 17 Mar 2024 13:20:02 +0100 Subject: [PATCH] fix: Crash when trying to open unopenable file --- plugins/builtin/source/content/providers/file_provider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/providers/file_provider.cpp b/plugins/builtin/source/content/providers/file_provider.cpp index f3ad0a70c..fbadd0f55 100644 --- a/plugins/builtin/source/content/providers/file_provider.cpp +++ b/plugins/builtin/source/content/providers/file_provider.cpp @@ -209,7 +209,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; }