Nuke the old instance model, LONG LIVE THE NEW ONE
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user