From 044092f93a85cf6a7d45e9c904ec387d3b986c53 Mon Sep 17 00:00:00 2001 From: Brent <43089001+BrentDaMage@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:38:35 -0600 Subject: [PATCH 1/2] Fixed building with Power mac G5 --- platforms/sdl/sdl1/main.cpp | 4 ++++ platforms/sdl/sdl2/main.cpp | 2 ++ source/client/options/Options.hpp | 8 ++++---- source/world/entity/SynchedEntityData.cpp | 2 ++ thirdparty/SDL2/src | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/platforms/sdl/sdl1/main.cpp b/platforms/sdl/sdl1/main.cpp index 908e535da..d0af01237 100644 --- a/platforms/sdl/sdl1/main.cpp +++ b/platforms/sdl/sdl1/main.cpp @@ -92,6 +92,10 @@ static std::string getStoragePath() tmp = getenv("APPDATA"); if (tmp) path = tmp; +#elif defined(MC_PLATFORM_MAC) + tmp = getenv("HOME"); + if (tmp) + path = std::string(tmp) + "/Library/Application Support"; #else tmp = getenv("XDG_DATA_HOME"); if (tmp) diff --git a/platforms/sdl/sdl2/main.cpp b/platforms/sdl/sdl2/main.cpp index 3cbaabbe5..68c341b10 100644 --- a/platforms/sdl/sdl2/main.cpp +++ b/platforms/sdl/sdl2/main.cpp @@ -415,6 +415,8 @@ int main(int argc, char *argv[]) std::string storagePath; #ifdef _WIN32 storagePath = getenv("APPDATA"); +#elif defined(MC_PLATFORM_MAC) + storagePath = std::string(getenv("HOME")) + "/Library/Application Support"; #elif defined(__EMSCRIPTEN__) || defined(__SWITCH__) storagePath = ""; #elif defined(ANDROID) diff --git a/source/client/options/Options.hpp b/source/client/options/Options.hpp index d82d9e9e5..0e1e3faeb 100644 --- a/source/client/options/Options.hpp +++ b/source/client/options/Options.hpp @@ -163,7 +163,7 @@ class OptionInstance : public OptionEntry class BoolOption : public OptionInstance { public: - BoolOption(const std::string& key, const std::string& name, bool initial = true) : OptionInstance(key, name, initial) {} + BoolOption(const std::string& key, const std::string& name, bool initial = true) : OptionInstance(key, name, initial) {} void load(const std::string& value) override; void save(std::stringstream& ss) const override; @@ -176,7 +176,7 @@ class FloatOption : public OptionInstance { public: FloatOption(const std::string& key, const std::string& name, float initial = 0.0f, float unit = 0.01f) : - OptionInstance(key, name, initial), + OptionInstance(key, name, initial), m_unit(unit) { } @@ -228,7 +228,7 @@ class FancyGraphicsOption : public GraphicsOption class IntOption : public OptionInstance { public: - IntOption(const std::string& key, const std::string& name, int initial = 0) : OptionInstance(key, name, initial) {} + IntOption(const std::string& key, const std::string& name, int initial = 0) : OptionInstance(key, name, initial) {} void load(const std::string& value) override; void save(std::stringstream& ss) const override { ss << get(); } @@ -237,7 +237,7 @@ class IntOption : public OptionInstance class StringOption : public OptionInstance { public: - StringOption(const std::string& key, const std::string& name, std::string initial = "") : OptionInstance(key, name, initial) {} + StringOption(const std::string& key, const std::string& name, std::string initial = "") : OptionInstance(key, name, initial) {} void load(const std::string& value) override { set(value); } void save(std::stringstream& ss) const override { ss.str(get()); } diff --git a/source/world/entity/SynchedEntityData.cpp b/source/world/entity/SynchedEntityData.cpp index 9f82b6d5b..068a9b5d6 100644 --- a/source/world/entity/SynchedEntityData.cpp +++ b/source/world/entity/SynchedEntityData.cpp @@ -1,4 +1,6 @@ #include +#define __STDC_LIMIT_MACROS +#include #include "SynchedEntityData.hpp" diff --git a/thirdparty/SDL2/src b/thirdparty/SDL2/src index cd6fbfbb0..cc016b004 160000 --- a/thirdparty/SDL2/src +++ b/thirdparty/SDL2/src @@ -1 +1 @@ -Subproject commit cd6fbfbb035452a991b9762ecbb888b48ec84c1f +Subproject commit cc016b0046d563287f0aa9f09b958b5e70d43696 From 2c068dad9214d061c405d6d495d6c904b7911af0 Mon Sep 17 00:00:00 2001 From: Brent Da Mage Date: Sun, 22 Feb 2026 23:51:32 -0600 Subject: [PATCH 2/2] undo submodule update --- thirdparty/SDL2/src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/SDL2/src b/thirdparty/SDL2/src index cc016b004..cd6fbfbb0 160000 --- a/thirdparty/SDL2/src +++ b/thirdparty/SDL2/src @@ -1 +1 @@ -Subproject commit cc016b0046d563287f0aa9f09b958b5e70d43696 +Subproject commit cd6fbfbb035452a991b9762ecbb888b48ec84c1f