summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-26 06:30:11 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-26 06:30:11 +0200
commita63c7340a632c634733271332a43aac82bc73799 (patch)
tree6ee5760f8a61ed40b657701a523cd69996a64688 /logic/BaseInstance.cpp
parent392c58c4b0db7ac5a826a16557712dc005f3705e (diff)
downloadMultiMC-a63c7340a632c634733271332a43aac82bc73799.tar
MultiMC-a63c7340a632c634733271332a43aac82bc73799.tar.gz
MultiMC-a63c7340a632c634733271332a43aac82bc73799.tar.lz
MultiMC-a63c7340a632c634733271332a43aac82bc73799.tar.xz
MultiMC-a63c7340a632c634733271332a43aac82bc73799.zip
Nuke the old instance model, LONG LIVE THE NEW ONE
Diffstat (limited to 'logic/BaseInstance.cpp')
-rw-r--r--logic/BaseInstance.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/logic/BaseInstance.cpp b/logic/BaseInstance.cpp
index 6593e715..bd3229c8 100644
--- a/logic/BaseInstance.cpp
+++ b/logic/BaseInstance.cpp
@@ -17,6 +17,7 @@
#include "BaseInstance_p.h"
#include <QFileInfo>
+#include <QDir>
#include "inisettingsobject.h"
#include "setting.h"
@@ -83,6 +84,13 @@ BaseInstance::BaseInstance( BaseInstancePrivate* d_in,
settings().registerSetting(new OverrideSetting("AutoCloseConsole", globalSettings->getSetting("AutoCloseConsole")));
}
+void BaseInstance::nuke()
+{
+ QDir(instanceRoot()).removeRecursively();
+ emit nuked(this);
+}
+
+
QString BaseInstance::id() const
{
return QFileInfo(instanceRoot()).fileName();