reorganize actions/constants for profile and input

This commit is contained in:
Tropical 2026-04-07 12:43:47 -05:00
parent 25e6f7159e
commit 0bdef577f5
75 changed files with 74 additions and 161 deletions

View file

@ -2,7 +2,6 @@
#include "app/common/Game.h"
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"
#include "platform/sdl2/Storage.h"

View file

@ -16,7 +16,6 @@
#include "minecraft/client/Minecraft.h"
#include "minecraft/client/skins/TexturePack.h"
#include "minecraft/client/skins/TexturePackRepository.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/sdl2/Render.h"
#include "platform/XboxStubs.h"

View file

@ -1,6 +1,5 @@
#include "InputConstraint.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
bool InputConstraint::isMappingConstrained(int iPad, int mapping) {

View file

@ -3,7 +3,6 @@
#include <string>
#include <vector>
#include "platform/input/InputActions.h"
#include "app/common/GameRules/LevelRules/RuleDefinitions/LevelRuleset.h"
#include "app/common/Tutorial/Constraints/AreaConstraint.h"
#include "app/common/Tutorial/Constraints/ChangeStateConstraint.h"

View file

@ -6,7 +6,6 @@
#include <algorithm>
#include <compare>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/App_structs.h"

View file

@ -7,7 +7,6 @@
#include <string>
#include <vector>
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/sdl2/Render.h"
#include "minecraft/GameEnums.h"

View file

@ -7,7 +7,6 @@
#include <string>
#include <vector>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"
#include "minecraft/GameEnums.h"

View file

@ -6,7 +6,6 @@
#include <string>
#include <vector>
#include "platform/input/InputActions.h"
#include "app/common/UI/All Platforms/IUIScene_AbstractContainerMenu.h"
#include "app/linux/LinuxGame.h"
#include "app/linux/Linux_UIController.h"

View file

@ -4,7 +4,6 @@
#include <algorithm>
#include "platform/input/InputActions.h"
#include "app/common/Tutorial/Tutorial.h"
#include "app/common/UI/All Platforms/UIEnums.h"
#include "app/linux/LinuxGame.h"

View file

@ -3,7 +3,6 @@
#include <string>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/sdl2/Render.h"
#include "minecraft/GameEnums.h"
#include "app/common/UI/All Platforms/UIEnums.h"

View file

@ -3,7 +3,6 @@
#include <wchar.h>
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"

View file

@ -1,6 +1,5 @@
#include "UIScene_DebugOptions.h"
#include "platform/input/InputActions.h"
#include "app/common/Console_Debug_enum.h"
#include "app/common/UI/Controls/UIControl_CheckBox.h"
#include "app/common/UI/UIScene.h"

View file

@ -5,7 +5,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/Tutorial/Tutorial.h"

View file

@ -5,7 +5,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"

View file

@ -7,7 +7,6 @@
#include <utility>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "app/common/App_Defines.h"

View file

@ -1,7 +1,6 @@
#include "UIScene_DLCMainMenu.h"
#include "platform/input/InputActions.h"
#include "minecraft/GameEnums.h"
#include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_ButtonList.h"

View file

@ -4,7 +4,6 @@
#include <stdint.h>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/sdl2/Render.h"
#include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_DLCList.h"

View file

@ -4,7 +4,6 @@
#include <vector>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "app/common/App_Defines.h"

View file

@ -1,6 +1,5 @@
#include "UIScene_Intro.h"
#include "platform/input/InputActions.h"
#include "app/common/UI/All Platforms/UIEnums.h"
#include "app/common/UI/UIScene.h"
#include "app/linux/Iggy/include/iggy.h"

View file

@ -5,7 +5,6 @@
#include <stdint.h>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "app/common/App_Defines.h"
#include "minecraft/GameEnums.h"

View file

@ -4,7 +4,6 @@
#include <utility>
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"

View file

@ -8,7 +8,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "app/common/Console_Debug_enum.h"
#include "app/common/Leaderboards/LeaderboardInterface.h"

View file

@ -5,7 +5,6 @@
#include <wchar.h>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"
#include "app/common/App_Defines.h"

View file

@ -6,7 +6,6 @@
#include <compare>
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "app/common/App_Defines.h"

View file

@ -7,7 +7,6 @@
#include <numbers>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"
#include "app/common/App_Defines.h"

View file

@ -3,7 +3,6 @@
#include <vector>
#include "platform/input/InputActions.h"
#include "app/common/App_Defines.h"
#include "minecraft/GameEnums.h"
#include "app/common/UI/Controls/UIControl_Button.h"

View file

@ -2,7 +2,6 @@
#include "UIScene_SaveMessage.h"
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "app/common/App_Defines.h"

View file

@ -1,7 +1,6 @@
#include "UIScene_TrialExitUpsell.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "app/common/App_Defines.h"
#include "app/common/UI/UIScene.h"

View file

@ -4,7 +4,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "minecraft/GameEnums.h"
#include "app/common/BuildVer/BuildVer.h"

View file

@ -4,7 +4,6 @@
#include <string.h>
#include <wchar.h>
#include "platform/input/InputActions.h"
#include "app/common/UI/UILayer.h"
#include "app/common/UI/UIScene.h"
#include "app/linux/LinuxGame.h"

View file

@ -1,7 +1,6 @@
#include "UIScene_HelpAndOptionsMenu.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "app/common/UI/Controls/UIControl_Button.h"
#include "app/common/UI/UILayer.h"

View file

@ -6,7 +6,6 @@
#include <vector>
#include "platform/input/InputActions.h"
#include "minecraft/GameEnums.h"
#include "app/common/UI/Controls/UIControl_Label.h"
#include "app/common/UI/UIScene.h"

View file

@ -3,7 +3,6 @@
#include <stdint.h>
#include "platform/input/InputActions.h"
#include "app/common/UI/Controls/UIControl_ButtonList.h"
#include "app/common/UI/UILayer.h"
#include "app/common/UI/UIScene.h"

View file

@ -1,6 +1,5 @@
#include "UIScene_LanguageSelector.h"
#include "platform/input/InputActions.h"
#include "app/common/UI/Controls/UIControl_ButtonList.h"
#include "app/common/UI/UILayer.h"
#include "app/common/UI/UIScene.h"

View file

@ -1,7 +1,6 @@
#include "UIScene_ReinstallMenu.h"
#include "platform/input/InputActions.h"
#include "app/common/UI/UILayer.h"
#include "app/common/UI/UIScene.h"
#include "app/linux/LinuxGame.h"

View file

@ -3,7 +3,6 @@
#include <wchar.h>
#include "platform/input/InputActions.h"
#include "minecraft/GameEnums.h"
#include "app/common/UI/Controls/UIControl_Slider.h"
#include "app/common/UI/UILayer.h"

View file

@ -2,7 +2,6 @@
#include <wchar.h>
#include "platform/input/InputActions.h"
#include "minecraft/GameEnums.h"
#include "app/common/UI/Controls/UIControl_Slider.h"
#include "app/common/UI/UILayer.h"

View file

@ -2,7 +2,6 @@
#include <wchar.h>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/Network/GameNetworkManager.h"

View file

@ -1,7 +1,6 @@
#include "UIScene_SettingsMenu.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "app/common/UI/Controls/UIControl_Button.h"
#include "app/common/UI/UILayer.h"

View file

@ -3,7 +3,6 @@
#include <wchar.h>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"
#include "minecraft/GameEnums.h"

View file

@ -3,7 +3,6 @@
#include <wchar.h>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/UI/Controls/UIControl_CheckBox.h"

View file

@ -5,7 +5,6 @@
#include <vector>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"
#include "app/common/App_Defines.h"

View file

@ -4,7 +4,6 @@
#include <cmath>
#include <memory>
#include "platform/input/InputActions.h"
#include "app/common/Tutorial/Tutorial.h"
#include "app/common/Tutorial/TutorialMode.h"
#include "app/common/UI/All Platforms/UIStructs.h"

View file

@ -5,7 +5,6 @@
#include <utility>
#include <vector>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "app/common/Tutorial/Tutorial.h"
#include "app/common/Tutorial/TutorialEnum.h"

View file

@ -1,7 +1,6 @@
#include "UIScene_CraftingMenu.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "app/common/Tutorial/Tutorial.h"
#include "app/common/Tutorial/TutorialEnum.h"

View file

@ -3,7 +3,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Storage.h"
#include "minecraft/GameEnums.h"

View file

@ -7,7 +7,6 @@
#include <memory>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/Tutorial/Tutorial.h"

View file

@ -3,7 +3,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "minecraft/GameEnums.h"
#include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h"

View file

@ -3,7 +3,6 @@
#include <memory>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/Console_Debug_enum.h"

View file

@ -3,7 +3,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "minecraft/GameEnums.h"
#include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h"

View file

@ -5,7 +5,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/DLC/DLCManager.h"

View file

@ -1,7 +1,6 @@
#include "UIScene_SignEntryMenu.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_Button.h"

View file

@ -3,7 +3,6 @@
#include <memory>
#include "platform/input/InputActions.h"
#include "app/common/Console_Debug_enum.h"
#include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h"

View file

@ -1,7 +1,6 @@
#include "UIScene_ConnectingProgress.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/Network/GameNetworkManager.h"

View file

@ -5,7 +5,6 @@
#include <wchar.h>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "minecraft/GameEnums.h"
#include "app/common/Network/GameNetworkManager.h"

View file

@ -1,6 +1,5 @@
#include "UIScene_Keyboard.h"
#include "platform/input/InputActions.h"
#include "app/common/App_Defines.h"
#include "app/common/UI/Controls/UIControl_Button.h"
#include "app/common/UI/Controls/UIControl_Label.h"

View file

@ -2,7 +2,6 @@
#include "UIScene_MessageBox.h"
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_Button.h"

View file

@ -4,7 +4,6 @@
#include <wchar.h>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "app/common/UI/Controls/UIControl_BitmapIcon.h"

View file

@ -21,7 +21,7 @@
#endif
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/sdl2/Render.h"
#include "platform/sdl2/Storage.h"
#include "app/common/UI/All Platforms/IUIController.h"

View file

@ -5,7 +5,6 @@
#include <utility>
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/sdl2/Render.h"
#include "app/common/UI/All Platforms/UIEnums.h"
#include "app/common/UI/All Platforms/UIStructs.h"

View file

@ -54,7 +54,6 @@ static void sigsegv_handler(int sig) {
// #include "../Common/XUI/XUI_Scene_Container.h"
// #include "NetworkManager.h"
#include "platform/PlatformTypes.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"

View file

@ -4,6 +4,7 @@
#include "app/common/UI/UIController.h"
#include "app/linux/Iggy/include/iggy.h"
#include "app/linux/Iggy/include/rrCore.h"
#include "platform/profile/profile.h"
class ConsoleUIController : public UIController {
public:

View file

@ -13,7 +13,6 @@
#include <ctime>
#include <thread>
#include "platform/input/InputActions.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"
#include "platform/sdl2/Storage.h"

View file

@ -1,7 +1,6 @@
#include "minecraft/IGameServices.h"
#include "Screen.h"
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "Button.h"

View file

@ -6,7 +6,6 @@
#include <algorithm>
#include <string>
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/sdl2/Render.h"
#include "AbstractContainerScreen.h"

View file

@ -3,7 +3,6 @@
#include <cmath>
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "LocalPlayer.h"
#include "minecraft/GameEnums.h"

View file

@ -28,7 +28,6 @@
#include "minecraft/world/item/Item.h"
#include "minecraft/world/level/tile/Tile.h"
// 4J Stu - Added for tutorial callbacks
#include "platform/input/InputActions.h"
#include "platform/input/input.h"
#include "platform/profile/profile.h"
#include "platform/sdl2/Render.h"

View file

@ -1,13 +1,11 @@
#include "PlatformServices.h"
#include "StdFileIO.h"
#include "sdl2/Profile.h"
#include "sdl2/Render.h"
#include "sdl2/Storage.h"
static StdFileIO s_stdFileIO;
IPlatformFileIO& PlatformFileIO = s_stdFileIO;
IPlatformProfile& PlatformProfile = PlatformProfile;
IPlatformRenderer& PlatformRender = RenderManager;
IPlatformStorage& PlatformStorage = StorageManager;

View file

@ -3,51 +3,7 @@
#include <functional>
#include "PlatformTypes.h"
#define MAP_STYLE_0 0
#define MAP_STYLE_1 1
#define MAP_STYLE_2 2
#define _360_JOY_BUTTON_A 0x00000001
#define _360_JOY_BUTTON_B 0x00000002
#define _360_JOY_BUTTON_X 0x00000004
#define _360_JOY_BUTTON_Y 0x00000008
#define _360_JOY_BUTTON_START 0x00000010
#define _360_JOY_BUTTON_BACK 0x00000020
#define _360_JOY_BUTTON_RB 0x00000040
#define _360_JOY_BUTTON_LB 0x00000080
#define _360_JOY_BUTTON_RTHUMB 0x00000100
#define _360_JOY_BUTTON_LTHUMB 0x00000200
#define _360_JOY_BUTTON_DPAD_UP 0x00000400
#define _360_JOY_BUTTON_DPAD_DOWN 0x00000800
#define _360_JOY_BUTTON_DPAD_LEFT 0x00001000
#define _360_JOY_BUTTON_DPAD_RIGHT 0x00002000
// fake digital versions of analog values
#define _360_JOY_BUTTON_LSTICK_RIGHT 0x00004000
#define _360_JOY_BUTTON_LSTICK_LEFT 0x00008000
#define _360_JOY_BUTTON_RSTICK_DOWN 0x00010000
#define _360_JOY_BUTTON_RSTICK_UP 0x00020000
#define _360_JOY_BUTTON_RSTICK_RIGHT 0x00040000
#define _360_JOY_BUTTON_RSTICK_LEFT 0x00080000
#define _360_JOY_BUTTON_LSTICK_DOWN 0x00100000
#define _360_JOY_BUTTON_LSTICK_UP 0x00200000
#define _360_JOY_BUTTON_RT 0x00400000
#define _360_JOY_BUTTON_LT 0x00800000
// Stick axis maps - to allow changes for SouthPaw in-game axis mapping
#define AXIS_MAP_LX 0
#define AXIS_MAP_LY 1
#define AXIS_MAP_RX 2
#define AXIS_MAP_RY 3
// Trigger map - to allow for swap triggers in-game
#define TRIGGER_MAP_0 0
#define TRIGGER_MAP_1 1
#include "InputConstants.h"
class IPlatformInput {
public:

View file

@ -1,5 +1,50 @@
#pragma once
#define MAP_STYLE_0 0
#define MAP_STYLE_1 1
#define MAP_STYLE_2 2
#define _360_JOY_BUTTON_A 0x00000001
#define _360_JOY_BUTTON_B 0x00000002
#define _360_JOY_BUTTON_X 0x00000004
#define _360_JOY_BUTTON_Y 0x00000008
#define _360_JOY_BUTTON_START 0x00000010
#define _360_JOY_BUTTON_BACK 0x00000020
#define _360_JOY_BUTTON_RB 0x00000040
#define _360_JOY_BUTTON_LB 0x00000080
#define _360_JOY_BUTTON_RTHUMB 0x00000100
#define _360_JOY_BUTTON_LTHUMB 0x00000200
#define _360_JOY_BUTTON_DPAD_UP 0x00000400
#define _360_JOY_BUTTON_DPAD_DOWN 0x00000800
#define _360_JOY_BUTTON_DPAD_LEFT 0x00001000
#define _360_JOY_BUTTON_DPAD_RIGHT 0x00002000
// fake digital versions of analog values
#define _360_JOY_BUTTON_LSTICK_RIGHT 0x00004000
#define _360_JOY_BUTTON_LSTICK_LEFT 0x00008000
#define _360_JOY_BUTTON_RSTICK_DOWN 0x00010000
#define _360_JOY_BUTTON_RSTICK_UP 0x00020000
#define _360_JOY_BUTTON_RSTICK_RIGHT 0x00040000
#define _360_JOY_BUTTON_RSTICK_LEFT 0x00080000
#define _360_JOY_BUTTON_LSTICK_DOWN 0x00100000
#define _360_JOY_BUTTON_LSTICK_UP 0x00200000
#define _360_JOY_BUTTON_RT 0x00400000
#define _360_JOY_BUTTON_LT 0x00800000
// Stick axis maps - to allow changes for SouthPaw in-game axis mapping
#define AXIS_MAP_LX 0
#define AXIS_MAP_LY 1
#define AXIS_MAP_RX 2
#define AXIS_MAP_RY 3
// Trigger map - to allow for swap triggers in-game
#define TRIGGER_MAP_0 0
#define TRIGGER_MAP_1 1
enum EControllerActions {
ACTION_MENU_A,
ACTION_MENU_B,

View file

@ -17,7 +17,7 @@
#include <functional>
#include <string>
#include "../InputActions.h"
#include "../InputConstants.h"
#include "../PlatformTypes.h"
SDL2Input sdl2_input_instance;

View file

@ -8,31 +8,6 @@
class CXuiStringTable;
#define TITLEID_MINECRAFT 0x584111F7
#define CONTEXT_GAME_STATE 0
#define CONTEXT_GAME_STATE_BLANK 0
#define CONTEXT_GAME_STATE_RIDING_PIG 1
#define CONTEXT_GAME_STATE_RIDING_MINECART 2
#define CONTEXT_GAME_STATE_BOATING 3
#define CONTEXT_GAME_STATE_FISHING 4
#define CONTEXT_GAME_STATE_CRAFTING 5
#define CONTEXT_GAME_STATE_FORGING 6
#define CONTEXT_GAME_STATE_NETHER 7
#define CONTEXT_GAME_STATE_CD 8
#define CONTEXT_GAME_STATE_MAP 9
#define CONTEXT_GAME_STATE_ENCHANTING 5
#define CONTEXT_GAME_STATE_BREWING 5
#define CONTEXT_GAME_STATE_ANVIL 6
#define CONTEXT_GAME_STATE_TRADING 0
#define CONTEXT_PRESENCE_IDLE 0
#define CONTEXT_PRESENCE_MENUS 1
#define CONTEXT_PRESENCE_MULTIPLAYER 2
#define CONTEXT_PRESENCE_MULTIPLAYEROFFLINE 3
#define CONTEXT_PRESENCE_MULTIPLAYER_1P 4
#define CONTEXT_PRESENCE_MULTIPLAYER_1POFFLINE 5
class IPlatformProfile {
public:
struct PROFILESETTINGS {

View file

@ -1,26 +1,26 @@
#pragma once
#include <cstdint>
#define TITLEID_MINECRAFT 0x584111F7
inline constexpr int TUTORIAL_PROFILE_STORAGE_BITS = 512;
inline constexpr int TUTORIAL_PROFILE_STORAGE_BYTES =
TUTORIAL_PROFILE_STORAGE_BITS / 8;
#define CONTEXT_GAME_STATE 0
#define CONTEXT_GAME_STATE_BLANK 0
#define CONTEXT_GAME_STATE_RIDING_PIG 1
#define CONTEXT_GAME_STATE_RIDING_MINECART 2
#define CONTEXT_GAME_STATE_BOATING 3
#define CONTEXT_GAME_STATE_FISHING 4
#define CONTEXT_GAME_STATE_CRAFTING 5
#define CONTEXT_GAME_STATE_FORGING 6
#define CONTEXT_GAME_STATE_NETHER 7
#define CONTEXT_GAME_STATE_CD 8
#define CONTEXT_GAME_STATE_MAP 9
#define CONTEXT_GAME_STATE_ENCHANTING 5
#define CONTEXT_GAME_STATE_BREWING 5
#define CONTEXT_GAME_STATE_ANVIL 6
#define CONTEXT_GAME_STATE_TRADING 0
inline constexpr int MAX_FAVORITE_SKINS = 10;
inline constexpr std::uint32_t GAMESETTING_CLOUDS = 0x00000001;
inline constexpr std::uint32_t GAMESETTING_ONLINE = 0x00000002;
inline constexpr std::uint32_t GAMESETTING_FRIENDSOFFRIENDS = 0x00000008;
inline constexpr std::uint32_t GAMESETTING_DISPLAYUPDATEMSG = 0x00000030;
inline constexpr std::uint32_t GAMESETTING_BEDROCKFOG = 0x00000040;
inline constexpr std::uint32_t GAMESETTING_DISPLAYHUD = 0x00000080;
inline constexpr std::uint32_t GAMESETTING_DISPLAYHAND = 0x00000100;
inline constexpr std::uint32_t GAMESETTING_CUSTOMSKINANIM = 0x00000200;
inline constexpr std::uint32_t GAMESETTING_DEATHMESSAGES = 0x00000400;
inline constexpr std::uint32_t GAMESETTING_UISIZE = 0x00001800;
inline constexpr std::uint32_t GAMESETTING_UISIZE_SPLITSCREEN = 0x00006000;
inline constexpr std::uint32_t GAMESETTING_ANIMATEDCHARACTER = 0x00008000;
inline constexpr std::uint32_t GAMESETTING_PS3EULAREAD = 0x00010000;
inline constexpr std::uint32_t GAMESETTING_PSVITANETWORKMODEADHOC = 0x00020000;
inline constexpr unsigned char MINECRAFT_LANGUAGE_DEFAULT = 0x00;
#define CONTEXT_PRESENCE_IDLE 0
#define CONTEXT_PRESENCE_MENUS 1
#define CONTEXT_PRESENCE_MULTIPLAYER 2
#define CONTEXT_PRESENCE_MULTIPLAYEROFFLINE 3
#define CONTEXT_PRESENCE_MULTIPLAYER_1P 4
#define CONTEXT_PRESENCE_MULTIPLAYER_1POFFLINE 5

View file

@ -1,3 +1,4 @@
#include "IPlatformProfile.h"
#include "ProfileConstants.h"
extern IPlatformProfile& PlatformProfile;

View file

@ -6,6 +6,8 @@
#include "../ProfileConstants.h"
#include "input/input.h"
#include "../../../app/common/Tutorial/TutorialEnum.h" // 4jcraft TODO
#include "../../../app/common/App_Defines.h" // 4jcraft TODO
StubProfile stub_profile_instance;
IPlatformProfile& PlatformProfile = stub_profile_instance;