diff options
author | Andrew <forkk@forkk.net> | 2013-02-20 19:45:00 -0600 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-02-20 19:45:00 -0600 |
commit | f3b6eeeac4e1606a288c7f12fec271fbb7f120f6 (patch) | |
tree | 50885f4302d1df8386716df9423fcd3c529010ee /libinstance/include/instancetypeinterface.h | |
parent | dd2e836b4cf4cfa043f9ea2911f58f1d22d4e282 (diff) | |
download | MultiMC-f3b6eeeac4e1606a288c7f12fec271fbb7f120f6.tar MultiMC-f3b6eeeac4e1606a288c7f12fec271fbb7f120f6.tar.gz MultiMC-f3b6eeeac4e1606a288c7f12fec271fbb7f120f6.tar.lz MultiMC-f3b6eeeac4e1606a288c7f12fec271fbb7f120f6.tar.xz MultiMC-f3b6eeeac4e1606a288c7f12fec271fbb7f120f6.zip |
Got instance loading working.
Diffstat (limited to 'libinstance/include/instancetypeinterface.h')
-rw-r--r-- | libinstance/include/instancetypeinterface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libinstance/include/instancetypeinterface.h b/libinstance/include/instancetypeinterface.h index a061b9d2..30a12d99 100644 --- a/libinstance/include/instancetypeinterface.h +++ b/libinstance/include/instancetypeinterface.h @@ -67,7 +67,7 @@ protected: * TypeNotRegistered if the given type is not registered with the InstanceLoader. * InstExists if the given instance directory is already an instance. */ - virtual InstanceLoader::InstTypeError createInstance(Instance *inst, const QString &instDir) const = 0; + virtual InstanceLoader::InstTypeError createInstance(Instance *&inst, const QString &instDir) const = 0; /*! * \brief Loads an instance from the given directory. @@ -78,7 +78,7 @@ protected: * NotAnInstance if the given instance directory isn't a valid instance. * WrongInstType if the given instance directory's type isn't an instance of this type. */ - virtual InstanceLoader::InstTypeError loadInstance(Instance *inst, const QString &instDir) const = 0; + virtual InstanceLoader::InstTypeError loadInstance(Instance *&inst, const QString &instDir) const = 0; }; Q_DECLARE_INTERFACE(InstanceTypeInterface, InstanceTypeInterface_IID) |