mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
delete geode/unzipped on startup if it exists
This commit is contained in:
parent
b88eda0fde
commit
eb0e4b6b1e
1 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue