summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.cpp
diff options
context:
space:
mode:
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();