mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 12:37:23 +00:00
Initial FTB support. Allows "tracking" of FTB instances.
This commit is contained in:
committed by
Petr Mrázek
parent
34a3fedf7b
commit
82c87aa06f
@@ -55,18 +55,25 @@ public:
|
||||
CantCreateDir
|
||||
};
|
||||
|
||||
enum InstType
|
||||
{
|
||||
NormalInst,
|
||||
FTBInstance
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief Creates a stub instance
|
||||
*
|
||||
* \param inst Pointer to store the created instance in.
|
||||
* \param inst Game version to use for the instance
|
||||
* \param version Game version to use for the instance
|
||||
* \param instDir The new instance's directory.
|
||||
* \param type The type of instance to create
|
||||
* \return An InstCreateError error code.
|
||||
* - InstExists if the given instance directory is already an instance.
|
||||
* - CantCreateDir if the given instance directory cannot be created.
|
||||
*/
|
||||
InstCreateError createInstance(BaseInstance *&inst, BaseVersionPtr version,
|
||||
const QString &instDir);
|
||||
const QString &instDir, const InstType type = NormalInst);
|
||||
|
||||
/*!
|
||||
* \brief Creates a copy of an existing instance with a new name
|
||||
|
||||
Reference in New Issue
Block a user