Global data packs

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-03-25 16:28:16 +00:00
parent 6ab4fef0c5
commit 18ee1f897a
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
26 changed files with 254 additions and 24 deletions

View file

@ -36,6 +36,7 @@
#pragma once
#include <java/JavaVersion.h>
#include <minecraft/mod/DataPackFolderModel.h>
#include <QDir>
#include <QProcess>
#include "BaseInstance.h"
@ -80,6 +81,7 @@ class MinecraftInstance : public BaseInstance {
QString modsRoot() const override;
QString coreModsDir() const;
QString nilModsDir() const;
QString dataPacksDir();
QString modsCacheLocation() const;
QString libDir() const;
QString worldDir() const;
@ -116,6 +118,7 @@ class MinecraftInstance : public BaseInstance {
std::shared_ptr<ResourcePackFolderModel> resourcePackList();
std::shared_ptr<TexturePackFolderModel> texturePackList();
std::shared_ptr<ShaderPackFolderModel> shaderPackList();
std::shared_ptr<DataPackFolderModel> dataPackList();
QList<std::shared_ptr<ResourceFolderModel>> resourceLists();
std::shared_ptr<WorldList> worldList();
std::shared_ptr<GameOptions> gameOptionsModel();
@ -171,6 +174,7 @@ class MinecraftInstance : public BaseInstance {
mutable std::shared_ptr<ResourcePackFolderModel> m_resource_pack_list;
mutable std::shared_ptr<ShaderPackFolderModel> m_shader_pack_list;
mutable std::shared_ptr<TexturePackFolderModel> m_texture_pack_list;
mutable std::shared_ptr<DataPackFolderModel> m_data_pack_list;
mutable std::shared_ptr<WorldList> m_world_list;
mutable std::shared_ptr<GameOptions> m_game_options;
};