mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Crash on exit if update folder doesn't exist
This commit is contained in:
@@ -228,6 +228,9 @@ namespace hex::init {
|
||||
|
||||
// Remove all old update files
|
||||
for (const auto &path : paths::Updates.all()) {
|
||||
if (!wolv::io::fs::exists(path))
|
||||
continue;
|
||||
|
||||
for (const auto &entry : std::filesystem::directory_iterator(path)) {
|
||||
wolv::io::fs::removeAll(entry.path());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user