NOISSUE first step towards having game options management
This commit is contained in:
parent
c1ea42d3d9
commit
62c9fcdc6c
10 changed files with 389 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue