summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-01-09 01:22:34 +0100
committerPetr Mrázek <peterix@gmail.com>2014-01-12 21:57:34 +0100
commitfca4441229808891f460d5fbc4affd51e8896aa5 (patch)
tree842b0e559c233399b0994697ff87321d93603121 /logic/BaseInstance.cpp
parentc51a993ff741074ac88bbc901ebfad9da636eeaa (diff)
downloadMultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.tar
MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.tar.gz
MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.tar.lz
MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.tar.xz
MultiMC-fca4441229808891f460d5fbc4affd51e8896aa5.zip
Replace old launcher part with a shiny new one. No more garbage on the command line.
Diffstat (limited to 'logic/BaseInstance.cpp')
-rw-r--r--logic/BaseInstance.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/logic/BaseInstance.cpp b/logic/BaseInstance.cpp
index ac66a8d5..4fc6b9dc 100644
--- a/logic/BaseInstance.cpp
+++ b/logic/BaseInstance.cpp
@@ -26,6 +26,7 @@
#include "overridesetting.h"
#include "pathutils.h"
+#include <cmdutils.h>
#include "lists/MinecraftVersionList.h"
#include "logic/icons/IconList.h"
@@ -248,8 +249,14 @@ void BaseInstance::setName(QString val)
d->m_settings->set("name", val);
emit propertiesChanged(this);
}
+
QString BaseInstance::name() const
{
I_D(BaseInstance);
return d->m_settings->get("name").toString();
}
+
+QStringList BaseInstance::extraArguments() const
+{
+ return Util::Commandline::splitArgs(settings().get("JvmArgs").toString());
+}