mirror of https://github.com/WerWolv/ImHex.git
Fixed crash when no patterns folder exists
This commit is contained in:
parent
4402120ffc
commit
d752c7434f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue