2013-08-03 19:27:33 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "BaseInstance.h"
|
|
|
|
|
2013-08-17 17:10:51 +05:30
|
|
|
class ModList;
|
2013-08-07 05:08:18 +05:30
|
|
|
class BaseUpdate;
|
|
|
|
|
2013-08-17 17:10:51 +05:30
|
|
|
class LegacyInstance : public BaseInstance
|
2013-08-03 19:27:33 +05:30
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
|
|
|
|
explicit LegacyInstance(const QString &rootDir, SettingsObject * settings, QObject *parent = 0);
|
|
|
|
|
|
|
|
/// Path to the instance's minecraft.jar
|
2013-08-24 06:39:46 +05:30
|
|
|
QString runnableJar() const;
|
2013-08-03 19:27:33 +05:30
|
|
|
|
|
|
|
//! Path to the instance's modlist file.
|
|
|
|
QString modListFile() const;
|
|
|
|
|
2013-08-17 17:10:51 +05:30
|
|
|
////// Mod Lists //////
|
2013-10-06 04:43:40 +05:30
|
|
|
std::shared_ptr<ModList> jarModList();
|
|
|
|
std::shared_ptr<ModList> coreModList();
|
|
|
|
std::shared_ptr<ModList> loaderModList();
|
|
|
|
std::shared_ptr<ModList> texturePackList();
|
2013-08-17 17:10:51 +05:30
|
|
|
|
2013-08-03 19:27:33 +05:30
|
|
|
////// Directories //////
|
2013-08-12 04:09:19 +05:30
|
|
|
QString savesDir() const;
|
2013-08-28 08:08:29 +05:30
|
|
|
QString texturePacksDir() const;
|
2013-08-19 00:22:17 +05:30
|
|
|
QString jarModsDir() const;
|
2013-08-03 19:27:33 +05:30
|
|
|
QString binDir() const;
|
2013-08-27 23:59:27 +05:30
|
|
|
QString loaderModsDir() const;
|
2013-08-03 19:27:33 +05:30
|
|
|
QString coreModsDir() const;
|
|
|
|
QString resourceDir() const;
|
2013-08-25 05:02:42 +05:30
|
|
|
virtual QString instanceConfigFolder() const;
|
2013-08-03 19:27:33 +05:30
|
|
|
|
|
|
|
/*!
|
|
|
|
* Whether or not the instance's minecraft.jar needs to be rebuilt.
|
|
|
|
* If this is true, when the instance launches, its jar mods will be
|
|
|
|
* re-added to a fresh minecraft.jar file.
|
|
|
|
*/
|
|
|
|
bool shouldRebuild() const;
|
|
|
|
void setShouldRebuild(bool val);
|
|
|
|
|
2013-08-05 06:59:50 +05:30
|
|
|
virtual QString currentVersionId() const;
|
|
|
|
virtual void setCurrentVersionId(QString val);
|
2013-08-03 19:27:33 +05:30
|
|
|
|
|
|
|
//! The version of LWJGL that this instance uses.
|
|
|
|
QString lwjglVersion() const;
|
2013-08-05 06:59:50 +05:30
|
|
|
/// st the version of LWJGL libs this instance will use
|
2013-08-03 19:27:33 +05:30
|
|
|
void setLWJGLVersion(QString val);
|
|
|
|
|
2013-08-05 06:59:50 +05:30
|
|
|
virtual QString intendedVersionId() const;
|
2013-08-04 03:28:39 +05:30
|
|
|
virtual bool setIntendedVersionId ( QString version );
|
2013-08-03 19:27:33 +05:30
|
|
|
|
2013-08-05 06:59:50 +05:30
|
|
|
virtual bool shouldUpdate() const;
|
|
|
|
virtual void setShouldUpdate(bool val);
|
2013-08-07 05:08:18 +05:30
|
|
|
virtual BaseUpdate* doUpdate();
|
2013-08-03 19:27:33 +05:30
|
|
|
|
2013-09-23 03:53:50 +05:30
|
|
|
virtual MinecraftProcess* prepareForLaunch(LoginResponse response);
|
2013-08-05 06:59:50 +05:30
|
|
|
virtual void cleanupAfterRun();
|
2013-08-20 05:59:36 +05:30
|
|
|
virtual QDialog * createModEditDialog ( QWidget* parent );
|
2013-08-17 17:10:51 +05:30
|
|
|
|
2013-08-24 06:39:46 +05:30
|
|
|
virtual QString defaultBaseJar() const;
|
|
|
|
virtual QString defaultCustomBaseJar() const;
|
|
|
|
|
2013-08-25 05:02:42 +05:30
|
|
|
bool menuActionEnabled ( QString action_name ) const;
|
|
|
|
virtual QString getStatusbarDescription();
|
|
|
|
|
2013-08-17 17:10:51 +05:30
|
|
|
protected slots:
|
|
|
|
virtual void jarModsChanged();
|
2013-08-03 19:27:33 +05:30
|
|
|
};
|