From a986cc85659d97686e7af1ed19c15c3a4df8ccdc Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Tue, 8 Sep 2026 04:38:08 -0400 Subject: [PATCH] Fix Android builds --- .patch/reshade/0001-from-chars-fallback.patch | 11 +++++++++++ cpmfile.json | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 .patch/reshade/0001-from-chars-fallback.patch diff --git a/.patch/reshade/0001-from-chars-fallback.patch b/.patch/reshade/0001-from-chars-fallback.patch new file mode 100644 index 0000000000..9089b1b9d4 --- /dev/null +++ b/.patch/reshade/0001-from-chars-fallback.patch @@ -0,0 +1,11 @@ +--- a/source/effect_lexer.cpp ++++ b/source/effect_lexer.cpp +@@ -1181,7 +1181,7 @@ + } + else + { +-#if 0 ++#if !defined(__cpp_lib_to_chars) + exponent += decimal_location - mantissa_size; + + const bool exponent_negative = exponent < 0; diff --git a/cpmfile.json b/cpmfile.json index 2197581ee6..8b2099f40a 100644 --- a/cpmfile.json +++ b/cpmfile.json @@ -240,6 +240,9 @@ }, "reshade": { "hash": "6fc9b39821ca6e2d91160f05846b3a42159fec759f5d6fba91d1a57801a1bdaf6047740578c136f0b1a60a9c29ad160d87dbfe0dbfbcdf6ea879a8a078377b8c", + "patches": [ + "0001-from-chars-fallback.patch" + ], "repo": "crosire/reshade", "version": "v6.8.0" },