diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-11 18:58:24 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-11 19:05:22 +0200 |
commit | 7e78a422e8bb22572706b7fadb58fc45e7b8a7db (patch) | |
tree | e91e2aa3364d1a5cb8329a6b7e49b7a46e720ab5 /backend/InstanceFactory.h | |
parent | e5dc113bfceb1e9b52535b7d1abd6f0ec51e1332 (diff) | |
download | MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar.gz MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar.lz MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.tar.xz MultiMC-7e78a422e8bb22572706b7fadb58fc45e7b8a7db.zip |
Version filtering and general related code sanitization.
Version list dialog has alternating row background set.
Nostalgia versions, based on OneSix.
Diffstat (limited to 'backend/InstanceFactory.h')
-rw-r--r-- | backend/InstanceFactory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/InstanceFactory.h b/backend/InstanceFactory.h index 12139e7d..e1100504 100644 --- a/backend/InstanceFactory.h +++ b/backend/InstanceFactory.h @@ -20,6 +20,7 @@ #include <QList> #include "libmmc_config.h" +#include "InstanceVersion.h" class InstVersion; class BaseInstance; @@ -46,6 +47,7 @@ public: enum InstCreateError { NoCreateError = 0, + NoSuchVersion, UnknownCreateError, InstExists, CantCreateDir @@ -60,7 +62,7 @@ public: * - InstExists if the given instance directory is already an instance. * - CantCreateDir if the given instance directory cannot be created. */ - InstCreateError createInstance(BaseInstance *&inst, const InstVersion * version, const QString &instDir); + InstCreateError createInstance(BaseInstance *&inst, InstVersionPtr version, const QString &instDir); /*! * \brief Loads an instance from the given directory. |