refactor: dissolve console_helpers into util, platform, and minecraft

This commit is contained in:
MatthewBeshay 2026-04-03 18:31:24 +11:00
parent 116cf4887d
commit decc20b70f
211 changed files with 228 additions and 249 deletions

View file

@ -79,7 +79,7 @@ stb_dep = declare_dependency(include_directories: stb)
miniaudio_dep = dependency('miniaudio')
subdir('targets/console_helpers')
subdir('targets/util')
subdir('targets/java')
subdir('targets/nbt')
subdir('targets/platform')

View file

@ -81,9 +81,9 @@
#include "app/common/src/UI/All Platforms/ArchiveFile.h"
#include "app/common/src/UI/Scenes/In-Game Menu Screens/UIScene_PauseMenu.h"
#include "Minecraft_Macros.h"
#include "console_helpers/Timer.h"
#include "console_helpers/StringHelpers.h"
#include "console_helpers/compression.h"
#include "util/Timer.h"
#include "util/StringHelpers.h"
#include "minecraft/world/level/storage/compression.h"
#include "minecraft/client/User.h"
#include "minecraft/client/gui/Gui.h"
#include "minecraft/client/renderer/entity/EntityRenderDispatcher.h"

View file

@ -3,7 +3,7 @@
#include <cstdint>
#include <mutex>
#include "console_helpers/Timer.h"
#include "util/Timer.h"
#include "platform/sdl2/Profile.h"
#include "platform/sdl2/Storage.h"

View file

@ -15,7 +15,7 @@
#include "app/common/src/Audio/Consoles_SoundEngine.h"
#include "app/linux/Iggy/include/rrCore.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
#include "platform/PlatformServices.h"
#include "java/Random.h"
#include "minecraft/client/Minecraft.h"

View file

@ -5,7 +5,7 @@
#include <vector>
#include "app/common/App_enums.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/ByteArrayInputStream.h"
#include "java/InputOutputStream/DataInputStream.h"

View file

@ -21,7 +21,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "platform/PlatformServices.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/skins/TexturePackRepository.h"
#include "strings.h"

View file

@ -22,7 +22,7 @@
#include "app/common/src/Localisation/StringTable.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
DLCPack::DLCPack(const std::wstring& name, std::uint32_t dwLicenseMask) {
m_dataPath = L"";

View file

@ -20,7 +20,7 @@
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/LevelRuleset.h"
#include "app/common/src/Localisation/StringTable.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/compression.h"
#include "minecraft/world/level/storage/compression.h"
#include "java/File.h"
#include "java/InputOutputStream/ByteArrayInputStream.h"
#include "java/InputOutputStream/ByteArrayOutputStream.h"

View file

@ -8,7 +8,7 @@
#include "app/common/src/GameRules/ConsoleGameRulesConstants.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/world/level/Level.h"
#include "minecraft/world/level/chunk/LevelChunk.h"

View file

@ -3,7 +3,7 @@
#include "app/common/src/GameRules/ConsoleGameRulesConstants.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
BiomeOverride::BiomeOverride() {

View file

@ -12,7 +12,7 @@
#include "app/common/src/GameRules/LevelGeneration/StructureActions/XboxStructureActionPlaceSpawner.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/Direction.h"
#include "minecraft/world/level/Level.h"

View file

@ -10,7 +10,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "console_helpers/compression.h"
#include "minecraft/world/level/storage/compression.h"
#include "java/Class.h"
#include "java/InputOutputStream/DataInputStream.h"
#include "java/InputOutputStream/DataOutputStream.h"

View file

@ -14,7 +14,7 @@
#include <vector>
#include "app/linux/Stubs/winapi_stubs.h"
#include "console_helpers/compression.h"
#include "minecraft/world/level/storage/compression.h"
#include "minecraft/world/phys/Vec3.h"
class Level;

View file

@ -22,7 +22,7 @@
#include "app/common/src/Localisation/StringTable.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "platform/PlatformServices.h"
#include "java/File.h"
#include "java/InputOutputStream/ByteArrayInputStream.h"

View file

@ -3,7 +3,7 @@
#include "app/common/src/GameRules/ConsoleGameRulesConstants.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
StartFeature::StartFeature() {

View file

@ -4,7 +4,7 @@
#include "app/common/src/GameRules/LevelGeneration/ConsoleGenerateStructureAction.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/world/level/levelgen/structure/StructurePiece.h"

View file

@ -4,7 +4,7 @@
#include "app/common/src/GameRules/LevelGeneration/ConsoleGenerateStructureAction.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/world/level/levelgen/structure/StructurePiece.h"

View file

@ -8,7 +8,7 @@
#include "app/common/src/GameRules/LevelGeneration/StructureActions/XboxStructureActionPlaceBlock.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/AddItemRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/world/Container.h"
#include "minecraft/world/level/Level.h"
#include "minecraft/world/level/levelgen/structure/BoundingBox.h"

View file

@ -6,7 +6,7 @@
#include "app/common/src/GameRules/ConsoleGameRulesConstants.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/world/item/EnchantedBookItem.h"
#include "minecraft/world/item/Item.h"

View file

@ -5,7 +5,7 @@
#include "AddEnchantmentRuleDefinition.h"
#include "app/common/src/GameRules/ConsoleGameRulesConstants.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/world/Container.h"
#include "minecraft/world/entity/player/Inventory.h"

View file

@ -5,7 +5,7 @@
#include "app/common/src/GameRules/LevelRules/Rules/GameRule.h"
#include "app/common/src/GameRules/LevelRules/Rules/GameRulesInstance.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/network/Connection.h"
#include "minecraft/network/packet/UpdateGameRuleProgressPacket.h"

View file

@ -8,7 +8,7 @@
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/common/src/GameRules/LevelRules/Rules/GameRule.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/network/Connection.h"
#include "minecraft/network/packet/UpdateGameRuleProgressPacket.h"

View file

@ -15,7 +15,7 @@
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/UseTileRuleDefinition.h"
#include "app/common/src/GameRules/LevelRules/Rules/GameRule.h"
#include "app/common/src/GameRules/LevelRules/Rules/GameRulesInstance.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
CompoundGameRuleDefinition::CompoundGameRuleDefinition() {
m_lastRuleStatusChanged = nullptr;

View file

@ -14,7 +14,7 @@
#include "app/common/src/GameRules/LevelRules/Rules/GameRule.h"
#include "app/common/src/GameRules/LevelRules/Rules/GameRulesInstance.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
class Connection;

View file

@ -5,7 +5,7 @@
#include "app/common/src/GameRules/ConsoleGameRulesConstants.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
NamedAreaRuleDefinition::NamedAreaRuleDefinition() {

View file

@ -8,7 +8,7 @@
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/AddItemRuleDefinition.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/Pos.h"
#include "minecraft/world/entity/player/Inventory.h"

View file

@ -3,7 +3,7 @@
#include "app/common/src/GameRules/ConsoleGameRulesConstants.h"
#include "app/common/src/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/DataOutputStream.h"
UseTileRuleDefinition::UseTileRuleDefinition() {

View file

@ -1,7 +1,7 @@
#include "LeaderboardManager.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
const std::wstring LeaderboardManager::filterNames[eNumFilterModes] = {
L"Friends", L"MyScore", L"TopRank"};

View file

@ -27,9 +27,9 @@
#include "app/linux/Stubs/winapi_stubs.h"
#include "Socket.h"
#include "XboxStubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "platform/PlatformServices.h"
#include "console_helpers/compression.h"
#include "minecraft/world/level/storage/compression.h"
#include "java/File.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/ProgressRenderer.h"

View file

@ -13,7 +13,7 @@
#include "NetworkPlayerInterface.h"
#include "PlatformNetworkManagerStub.h"
#include "SessionInfo.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
class ClientConnection;
class Minecraft;

View file

@ -9,7 +9,7 @@
#include "app/include/XboxStubs.h"
#include "NetworkPlayerInterface.h"
#include "SessionInfo.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
class ClientConnection;
class Minecraft;

View file

@ -12,7 +12,7 @@
#include "app/include/NetTypes.h"
#include "NetworkPlayerQNet.h"
#include "Socket.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
IPlatformNetworkStub* g_pPlatformNetworkManager;

View file

@ -11,7 +11,7 @@
#include "NetworkPlayerInterface.h"
#include "platform/IPlatformNetwork.h"
#include "SessionInfo.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
class C4JThread;
class CGameNetworkManager;

View file

@ -7,7 +7,7 @@
#include <vector>
// 4jcraft TODO
#include "app/common/ShutdownManager.h"
#include "platform/ShutdownManager.h"
#include "app/common/src/Network/GameNetworkManager.h"
#include "app/common/src/Network/NetworkPlayerInterface.h"
#include "app/include/NetTypes.h"

View file

@ -12,7 +12,7 @@
#include "app/common/src/Network/GameNetworkManager.h"
#include "app/common/src/Network/NetworkPlayerInterface.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
#include "java/InputOutputStream/InputStream.h"
#include "java/InputOutputStream/OutputStream.h"

View file

@ -25,8 +25,8 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "TutorialMessage.h"
#include "console_helpers/Timer.h"
#include "console_helpers/StringHelpers.h"
#include "util/Timer.h"
#include "util/StringHelpers.h"
#include "java/Class.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/multiplayer/MultiPlayerLevel.h"

View file

@ -9,7 +9,7 @@
#include <utility>
#include <vector>
#include "console_helpers/Timer.h"
#include "util/Timer.h"
#include "app/common/src/Tutorial/Constraints/TutorialConstraint.h"
#include "app/common/src/Tutorial/Hints/TutorialHint.h"

View file

@ -8,7 +8,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "platform/PlatformServices.h"
#include "console_helpers/compression.h"
#include "minecraft/world/level/storage/compression.h"
#include "java/InputOutputStream/ByteArrayInputStream.h"
#include "java/InputOutputStream/DataInputStream.h"
#include "java/InputOutputStream/FileInputStream.h"

View file

@ -19,7 +19,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "console_helpers/compression.h"
#include "minecraft/world/level/storage/compression.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/ProgressRenderer.h"
#include "minecraft/client/multiplayer/MultiPlayerLevel.h"

View file

@ -9,7 +9,7 @@
#include "app/common/src/UI/All Platforms/UIEnums.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/ByteArrayOutputStream.h"
#include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/client/Minecraft.h"

View file

@ -8,7 +8,7 @@
#include "platform/sdl2/Storage.h"
#include "app/common/App_Defines.h"
#include "UIEnums.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
class Container;
class Inventory;

View file

@ -14,7 +14,7 @@
#include "app/linux/Iggy/include/rrCore.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIComponent_Tooltips::UIComponent_Tooltips(int iPad, void* initData,
UILayer* parentLayer)

View file

@ -13,7 +13,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/multiplayer/MultiPlayerLocalPlayer.h"
#include "minecraft/world/item/Item.h"

View file

@ -12,7 +12,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/SharedConstants.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/gui/Gui.h"

View file

@ -11,7 +11,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_Base::UIControl_Base() {
m_bLabelChanged = false;

View file

@ -6,7 +6,7 @@
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
bool UIControl_BitmapIcon::setupControl(UIScene* scene, IggyValuePath* parent,
const std::string& controlName) {

View file

@ -8,7 +8,7 @@
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_Button::UIControl_Button() {}

View file

@ -9,7 +9,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_ButtonList::UIControl_ButtonList() {
m_itemCount = 0;

View file

@ -9,7 +9,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_CheckBox::UIControl_CheckBox() {}

View file

@ -8,7 +8,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
bool UIControl_DLCList::setupControl(UIScene* scene, IggyValuePath* parent,
const std::string& controlName) {

View file

@ -8,7 +8,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_DynamicLabel::UIControl_DynamicLabel() {}

View file

@ -16,7 +16,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/gui/Font.h"

View file

@ -8,7 +8,7 @@
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_Label::UIControl_Label() {}

View file

@ -7,7 +7,7 @@
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_LeaderboardList::UIControl_LeaderboardList() {}

View file

@ -8,7 +8,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
bool UIControl_PlayerList::setupControl(UIScene* scene, IggyValuePath* parent,
const std::string& controlName) {

View file

@ -8,7 +8,7 @@
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_Progress::UIControl_Progress() {
m_min = 0;

View file

@ -8,7 +8,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
bool UIControl_SaveList::setupControl(UIScene* scene, IggyValuePath* parent,
const std::string& controlName) {

View file

@ -10,7 +10,7 @@
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/sounds/SoundTypes.h"
UIControl_Slider::UIControl_Slider() {

View file

@ -8,7 +8,7 @@
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_SpaceIndicatorBar::UIControl_SpaceIndicatorBar() {
m_min = 0;

View file

@ -8,7 +8,7 @@
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_TextInput::UIControl_TextInput() { m_bHasFocus = false; }

View file

@ -9,7 +9,7 @@
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIControl_TexturePackList::UIControl_TexturePackList() {}

View file

@ -16,13 +16,13 @@
#include "app/linux/Iggy/include/rrCore.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/compression.h"
#include "minecraft/world/level/storage/compression.h"
#include "minecraft/world/level/Level.h"
#include "minecraft/world/level/chunk/ChunkSource.h"
class UILayer;
#ifdef _DEBUG_MENUS_ENABLED
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
UIScene_DebugCreateSchematic::UIScene_DebugCreateSchematic(int iPad,
void* initData,

View file

@ -34,7 +34,7 @@
class Player;
class UILayer;
#ifdef _DEBUG_MENUS_ENABLED
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/multiplayer/ClientConnection.h"
#include "minecraft/client/multiplayer/MultiPlayerLevel.h"

View file

@ -22,7 +22,7 @@
class UILayer;
#ifdef _DEBUG_MENUS_ENABLED
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/multiplayer/MultiPlayerLocalPlayer.h"

View file

@ -26,7 +26,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "app/include/NetTypes.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/Options.h"
#include "minecraft/client/skins/DLCTexturePack.h"

View file

@ -19,7 +19,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/sounds/SoundTypes.h"
#include "strings.h"

View file

@ -21,7 +21,7 @@
#include "app/linux/Linux_UIController.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "app/include/NetTypes.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/InputOutputStream/BufferedReader.h"
#include "java/InputOutputStream/ByteArrayInputStream.h"

View file

@ -9,7 +9,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "strings.h"
#define CREDIT_ICON -2

View file

@ -12,7 +12,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/sounds/SoundTypes.h"
#include "strings.h"

View file

@ -21,7 +21,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "SkinBox.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/sounds/SoundTypes.h"

View file

@ -16,7 +16,7 @@
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "app/include/SkinBox.h"
#include "console_helpers/Definitions.h"
#include "util/Definitions.h"
#include "minecraft/client/renderer/Textures.h"
class DLCPack;

View file

@ -17,7 +17,7 @@
#include "app/common/src/UI/Controls/UIControl_TextInput.h"
#include "app/common/src/UI/Scenes/In-Game Menu Screens/Containers/UIScene_AbstractContainerMenu.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/multiplayer/MultiPlayerLocalPlayer.h"
#include "minecraft/world/entity/player/Abilities.h"

View file

@ -15,7 +15,7 @@
#include "app/common/src/UI/Scenes/In-Game Menu Screens/Containers/UIScene_AbstractContainerMenu.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/SharedConstants.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/multiplayer/MultiPlayerLocalPlayer.h"

View file

@ -16,7 +16,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/multiplayer/MultiPlayerLocalPlayer.h"
#include "minecraft/util/HtmlString.h"

View file

@ -14,7 +14,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/Random.h"
#include "minecraft/SharedConstants.h"
#include "minecraft/client/Minecraft.h"

View file

@ -11,7 +11,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/multiplayer/ClientConnection.h"
#include "minecraft/client/multiplayer/MultiPlayerLevel.h"

View file

@ -18,7 +18,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/ProgressRenderer.h"
#include "minecraft/client/multiplayer/MultiPlayerGameMode.h"

View file

@ -9,7 +9,7 @@
#include "app/common/src/UI/UIScene.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "strings.h"
#define KEYBOARD_DONE_TIMER_ID 0

View file

@ -38,10 +38,10 @@
#include "app/include/BufferedImage.h"
#include "UIFontData.h"
#include "XboxStubs.h"
#include "console_helpers/C4JThread.h"
#include "console_helpers/Timer.h"
#include "platform/C4JThread.h"
#include "util/Timer.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/System.h"
#include "minecraft/client/Minecraft.h"

View file

@ -8,7 +8,7 @@
#include <unordered_map>
#include <vector>
#include "console_helpers/Timer.h"
#include "util/Timer.h"
#ifdef __linux__
#include "app/linux/Iggy/include/iggy.h"

View file

@ -22,7 +22,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/System.h"
#include "minecraft/client/Lighting.h"
#include "minecraft/client/Minecraft.h"

View file

@ -2,7 +2,7 @@
#include "app/linux/Linux_App.h"
#include "app/include/XboxStubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
bool UIString::setCurrentLanguage() {
int nextLanguage, nextLocale;

View file

@ -8,7 +8,7 @@
#endif
#include "app/linux/Iggy/include/rrCore.h"
#include "app/linux/Linux_App.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "platform/PlatformServices.h"
UITTFFont::UITTFFont(const std::string& name, const std::string& path,

View file

@ -11,7 +11,7 @@
#include "app/common/Consoles_App.h"
#include "app/common/src/Network/GameNetworkManager.h"
#include "app/common/src/UI/All Platforms/UIStructs.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/User.h"
#include "minecraft/server/MinecraftServer.h"

View file

@ -60,8 +60,7 @@ static void sigsegv_handler(int sig) {
#include "app/common/src/Network/GameNetworkManager.h"
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "console_helpers/compression.h"
#include "console_helpers/StringHelpers.h"
#include "minecraft/world/level/storage/compression.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/renderer/Tesselator.h"
#include "minecraft/client/renderer/Textures.h"

View file

@ -56,7 +56,7 @@ client_dependencies = [
dependency('zlib'),
miniaudio_dep,
stb_dep,
console_helpers_dep,
util_dep,
]
if get_option('ui_backend') == 'shiggy'

View file

@ -13,7 +13,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Stubs/winapi_stubs.h"
#include "PlatformTypes.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "platform/PlatformServices.h"
BufferedImage::BufferedImage(int width, int height, int type) {

View file

@ -6,7 +6,7 @@
#include <mutex>
#include "app/common/src/Network/Socket.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/User.h"
#include "minecraft/client/multiplayer/ClientConnection.h"
#include "minecraft/client/multiplayer/ConnectScreen.h"
@ -28,7 +28,7 @@
// #include "NetworkManager.h"
#include "../Resource.h"
#include "Sentient/SentientManager.h"
#include "console_helpers/compression.h"
#include "minecraft/world/level/storage/compression.h"
#include "minecraft/client/Options.h"
#include "minecraft/client/renderer/Tesselator.h"
#include "minecraft/client/renderer/Textures.h"

View file

@ -1,22 +0,0 @@
console_helpers_sources = files(
'src/C4JThread.cpp',
'src/StringHelpers.cpp',
'src/compression.cpp',
)
simdutf_dep = dependency('simdutf',
fallback: ['simdutf', 'simdutf_dep'],
default_options: ['utf8=true', 'utf16=true', 'utf32=true']
)
lib_console_helpers = static_library('console_helpers',
console_helpers_sources,
dependencies: [simdutf_dep, dependency('zlib')],
include_directories : include_directories('include', '..'),
cpp_args : global_cpp_args + global_cpp_defs,
)
console_helpers_dep = declare_dependency(
link_with : lib_console_helpers,
include_directories : include_directories('include'),
)

View file

@ -4,7 +4,7 @@
#include <vector>
#include "Buffer.h"
#include "console_helpers/Definitions.h" // 4jcraft TODO
#include "util/Definitions.h" // 4jcraft TODO
class IntBuffer;
class FloatBuffer;

View file

@ -24,7 +24,7 @@ java_sources = files(
lib_java = static_library('java',
java_sources,
dependencies: [console_helpers_dep],
dependencies: [util_dep],
# TODO: remove the .. path once arrayWithLength are evaporated
include_directories: include_directories('include', '..'),
cpp_args : global_cpp_args + global_cpp_defs,

View file

@ -8,7 +8,7 @@
#include <system_error>
#include <vector>
#include "console_helpers/StringHelpers.h" // 4jcraft TODO
#include "util/StringHelpers.h" // 4jcraft TODO
#include "platform/PlatformServices.h"
#include "java/FileFilter.h"

View file

@ -32,8 +32,8 @@
#include "SharedConstants.h"
#include "Timer.h"
#include "User.h"
#include "console_helpers/Definitions.h"
#include "console_helpers/compression.h"
#include "util/Definitions.h"
#include "minecraft/world/level/storage/compression.h"
#include "java/Class.h"
#include "java/Random.h"
#include "minecraft/client/gui/DeathScreen.h"
@ -111,7 +111,7 @@
#include "app/common/src/UI/All Platforms/IUIScene_CreativeMenu.h"
#include "app/common/src/UI/UIFontData.h"
#include "app/include/stubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/File.h"
#include "java/System.h"
#include "minecraft/StaticConstructors.h"

View file

@ -7,7 +7,7 @@
#include <vector>
#include "platform/PlatformTypes.h"
#include "console_helpers/C4JThread.h"
#include "platform/C4JThread.h"
#include "java/File.h"
#include "minecraft/client/resources/ResourceLocation.h"
#include "minecraft/network/packet/DisconnectPacket.h"

View file

@ -4,7 +4,7 @@
#include "app/common/src/Audio/SoundEngine.h"
#include "app/linux/Linux_App.h"
#include "app/include/stubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/File.h"
#include "java/InputOutputStream/BufferedReader.h"
#include "java/InputOutputStream/DataOutputStream.h"

View file

@ -3,7 +3,7 @@
#include <memory>
#include "app/include/stubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/SharedConstants.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/gui/Gui.h"

View file

@ -18,7 +18,7 @@
#include "app/linux/Linux_UIController.h"
#include "app/include/NetTypes.h"
#include "app/include/stubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/SharedConstants.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/Options.h"

View file

@ -7,7 +7,7 @@
#include "platform/sdl2/Render.h"
#include "Button.h"
#include "PauseScreen.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/gui/Screen.h"
#include "minecraft/client/multiplayer/MultiPlayerLocalPlayer.h"

View file

@ -7,7 +7,7 @@
#include "platform/sdl2/Render.h"
#include "app/include/BufferedImage.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/Random.h"
#include "minecraft/SharedConstants.h"
#include "minecraft/client/Options.h"

View file

@ -12,7 +12,7 @@
#include "app/linux/Linux_App.h"
#include "app/linux/Linux_UIController.h"
#include "app/include/XboxStubs.h"
#include "console_helpers/StringHelpers.h"
#include "util/StringHelpers.h"
#include "java/JavaMath.h"
#include "java/Random.h"
#include "java/System.h"

Some files were not shown because too many files have changed in this diff Show more