summaryrefslogtreecommitdiffstats
path: root/libmultimc/src/instance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmultimc/src/instance.cpp')
-rw-r--r--libmultimc/src/instance.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/libmultimc/src/instance.cpp b/libmultimc/src/instance.cpp
index 377acd32..1af359d1 100644
--- a/libmultimc/src/instance.cpp
+++ b/libmultimc/src/instance.cpp
@@ -27,7 +27,7 @@ Instance::Instance(const QString &rootDir, QObject *parent) :
QObject(parent)
{
m_rootDir = rootDir;
- m_settings = new INISettingsObject(PathCombine(rootDir, "instance.cfg"), this);
+ m_settings = new INISettingsObject(configFile(), this);
settings().registerSetting(new Setting("name", "Unnamed Instance"));
settings().registerSetting(new Setting("iconKey", "default"));
@@ -82,7 +82,12 @@ QString Instance::minecraftDir() const
if (dotMCDir.exists() && !mcDir.exists())
return dotMCDir.filePath();
else
- return mcDir.filePath();
+ return mcDir.filePath();
+}
+
+QString Instance::instModsDir() const
+{
+ return PathCombine(rootDir(), "instMods");
}
QString Instance::binDir() const
@@ -125,6 +130,21 @@ QString Instance::mcJar() const
return PathCombine(binDir(), "minecraft.jar");
}
+QString Instance::mcBackup() const
+{
+ return PathCombine(binDir(), "mcbackup.jar");
+}
+
+QString Instance::configFile() const
+{
+ return PathCombine(rootDir(), "instance.cfg");
+}
+
+QString Instance::modListFile() const
+{
+ return PathCombine(rootDir(), "modlist");
+}
+
SettingsObject &Instance::settings() const
{
return *m_settings;