diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-01-30 00:35:24 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-01-30 00:35:24 +0100 |
commit | 62c9fcdc6cd6b80540cdb8d79ce92db32cfd284e (patch) | |
tree | 4a83da8a22fbb67281ea4c9a729ef750f0ce37ad /api/logic/minecraft/MinecraftInstance.cpp | |
parent | c1ea42d3d9b793b52d52310f69174f1c5ab9daef (diff) | |
download | MultiMC-62c9fcdc6cd6b80540cdb8d79ce92db32cfd284e.tar MultiMC-62c9fcdc6cd6b80540cdb8d79ce92db32cfd284e.tar.gz MultiMC-62c9fcdc6cd6b80540cdb8d79ce92db32cfd284e.tar.lz MultiMC-62c9fcdc6cd6b80540cdb8d79ce92db32cfd284e.tar.xz MultiMC-62c9fcdc6cd6b80540cdb8d79ce92db32cfd284e.zip |
NOISSUE first step towards having game options management
Diffstat (limited to 'api/logic/minecraft/MinecraftInstance.cpp')
-rw-r--r-- | api/logic/minecraft/MinecraftInstance.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/api/logic/minecraft/MinecraftInstance.cpp b/api/logic/minecraft/MinecraftInstance.cpp index fecb951a..bf4eb1bd 100644 --- a/api/logic/minecraft/MinecraftInstance.cpp +++ b/api/logic/minecraft/MinecraftInstance.cpp @@ -35,6 +35,7 @@ #include "AssetsUtils.h" #include "MinecraftUpdate.h" #include "MinecraftLoadAndCheck.h" +#include <minecraft/gameoptions/GameOptions.h> #define IBUS "@im=ibus" @@ -935,6 +936,15 @@ std::shared_ptr<WorldList> MinecraftInstance::worldList() const return m_world_list; } +std::shared_ptr<GameOptions> MinecraftInstance::gameOptionsModel() const +{ + if (!m_game_options) + { + m_game_options.reset(new GameOptions(FS::PathCombine(gameRoot(), "options.txt"))); + } + return m_game_options; +} + QList< Mod > MinecraftInstance::getJarMods() const { auto profile = m_components->getProfile(); |