impr: Properly delete old update files

This commit is contained in:
WerWolv
2025-08-09 14:28:48 +02:00
parent dbc5819bc4
commit 411e971ba7
3 changed files with 10 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ std::optional<std::fs::path> downloadUpdate(const std::string &url) {
{
// Loop over all available paths
wolv::io::File file;
for (const auto &path : hex::paths::Config.write()) {
for (const auto &path : hex::paths::Updates.write()) {
// Remove any existing update files
wolv::io::fs::remove(path / updateFileName);