Skip to content

Commit

Permalink
delete geode/unzipped on startup if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Mar 8, 2023
1 parent b88eda0 commit eb0e4b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loader/src/loader/LoaderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit eb0e4b6

Please sign in to comment.