fix: Crash on exit if update folder doesn't exist

This commit is contained in:
WerWolv
2025-08-09 16:21:51 +02:00
parent 08a08c2b3a
commit c88fc43032

View File

@@ -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());
}