delete geode/unzipped on startup if it exists

This commit is contained in:
hjfod 2023-03-08 13:23:42 +02:00
parent b88eda0fde
commit eb0e4b6b1e

View file

@ -42,6 +42,9 @@ void Loader::Impl::createDirectories() {
ghc::filesystem::create_directory(dirs::getSaveDir());
#endif
// try deleting geode/unzipped if it already exists
try { ghc::filesystem::remove_all(dirs::getModRuntimeDir()); } catch(...) {}
ghc::filesystem::create_directories(dirs::getGeodeResourcesDir());
ghc::filesystem::create_directory(dirs::getModConfigDir());
ghc::filesystem::create_directory(dirs::getModsDir());