mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
Fixed crash when no patterns folder exists
This commit is contained in:
@@ -107,7 +107,8 @@ namespace hex {
|
||||
preprocessor.addDefaultPragramHandlers();
|
||||
|
||||
|
||||
for (auto &entry : std::filesystem::directory_iterator("patterns")) {
|
||||
std::error_code errorCode;
|
||||
for (auto &entry : std::filesystem::directory_iterator("patterns", errorCode)) {
|
||||
if (!entry.is_regular_file())
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user