mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
uninstalling a mod should forget if its disabled
This commit is contained in:
parent
e59fef5f2b
commit
a3a7562ee0
1 changed files with 3 additions and 0 deletions
|
@ -440,6 +440,9 @@ Result<> Mod::Impl::uninstall(bool deleteSaveData) {
|
|||
ModRequestedAction::UninstallWithSaveData :
|
||||
ModRequestedAction::Uninstall;
|
||||
|
||||
// Make loader forget the mod should be disabled
|
||||
Mod::get()->getSaveContainer().try_erase("should-load-" + m_metadata.getID());
|
||||
|
||||
std::error_code ec;
|
||||
ghc::filesystem::remove(m_metadata.getPath(), ec);
|
||||
if (ec) {
|
||||
|
|
Loading…
Reference in a new issue