Skip to content

Commit

Permalink
fix: Crash when trying to open unopenable file
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Mar 17, 2024
1 parent 6295c1d commit 86a0693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/builtin/source/content/providers/file_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 86a0693

Please sign in to comment.