82 lines
1.6 KiB
C++
82 lines
1.6 KiB
C++
#include "BaseInstance.h"
|
|
|
|
class NullInstance: public BaseInstance
|
|
{
|
|
public:
|
|
NullInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString& rootDir)
|
|
:BaseInstance(globalSettings, settings, rootDir)
|
|
{
|
|
setFlag(BaseInstance::VersionBrokenFlag);
|
|
}
|
|
virtual ~NullInstance() {};
|
|
virtual bool setIntendedVersionId(QString) override
|
|
{
|
|
return false;
|
|
}
|
|
virtual void cleanupAfterRun() override
|
|
{
|
|
}
|
|
virtual QString currentVersionId() const
|
|
{
|
|
return "Null";
|
|
};
|
|
virtual QString intendedVersionId() const
|
|
{
|
|
return "Null";
|
|
};
|
|
virtual void init() override
|
|
{
|
|
};
|
|
virtual QString getStatusbarDescription() override
|
|
{
|
|
return tr("Unknown instance type");
|
|
};
|
|
virtual bool shouldUpdate() const override
|
|
{
|
|
return false;
|
|
};
|
|
virtual QSet< QString > traits()
|
|
{
|
|
return {};
|
|
};
|
|
virtual QString instanceConfigFolder() const
|
|
{
|
|
return instanceRoot();
|
|
};
|
|
virtual std::shared_ptr<LaunchTask> createLaunchTask(AuthSessionPtr)
|
|
{
|
|
return nullptr;
|
|
}
|
|
virtual std::shared_ptr< Task > createUpdateTask()
|
|
{
|
|
return nullptr;
|
|
}
|
|
virtual std::shared_ptr<Task> createJarModdingTask()
|
|
{
|
|
return nullptr;
|
|
}
|
|
virtual void setShouldUpdate(bool)
|
|
{
|
|
};
|
|
virtual std::shared_ptr< BaseVersionList > versionList() const
|
|
{
|
|
return nullptr;
|
|
};
|
|
virtual QProcessEnvironment createEnvironment()
|
|
{
|
|
return QProcessEnvironment();
|
|
}
|
|
virtual QMap<QString, QString> getVariables() const
|
|
{
|
|
return QMap<QString, QString>();
|
|
}
|
|
virtual IPathMatcher::Ptr getLogFileMatcher()
|
|
{
|
|
return nullptr;
|
|
}
|
|
virtual QString getLogFileRoot()
|
|
{
|
|
return instanceRoot();
|
|
}
|
|
};
|