all repos — mgba @ 8a006bc9c47b033ccb0f6e7492e59c7726def637

mGBA Game Boy Advance Emulator

Wii: Disable use of strtof_l (fixes #1106)
Vicki Pfau vi@endrift.com
Sat, 29 Sep 2018 11:56:11 -0700
commit

8a006bc9c47b033ccb0f6e7492e59c7726def637

parent

32c5fd6d90508ce5291d400fee17044062e12a78

2 files changed, 7 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -112,6 +112,7 @@ - Switch: Fix incorrect mapping for fast forward cap

Misc: - mGUI: Add SGB border configuration option - mGUI: Add support for different settings types + - Wii: Disable use of strtof_l (fixes mgba.io/i/1106) 0.7 beta 1: (2018-09-24) - Initial beta for 0.7
M src/util/formatting.csrc/util/formatting.c

@@ -59,6 +59,11 @@ return res;

} float strtof_u(const char* restrict str, char** restrict end) { +#ifdef GEKKO + // strtof_l appears to have broken in devkitPPC sometime around r28 + // TODO: Investigate further + float res = strtof(str, end); +#else #if HAVE_LOCALE locale_t l = newlocale(LC_NUMERIC_MASK, "C", 0); #else

@@ -67,6 +72,7 @@ #endif

float res = strtof_l(str, end, l); #if HAVE_LOCALE freelocale(l); +#endif #endif return res; }