From 86a0693081d610c1fcfb4cda298a101aa39122d0 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 4e4602672..d8d3c128e 100644 --- a/plugins/builtin/source/content/providers/file_provider.cpp +++ b/plugins/builtin/source/content/providers/file_provider.cpp @@ -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; }