summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.h
diff options
context:
space:
mode:
authorFiora <fioraaeterna@gmail.com>2014-12-31 10:24:14 -0800
committerFiora <fioraaeterna@gmail.com>2015-01-10 10:46:38 -0800
commitc2c950108d32b1f6ee196e956890e23656bd23a8 (patch)
tree68d5d28a7e9f00b095815cbdbeb4714195f12fe7 /Source/Core/Common/StringUtil.h
parente32d63c43d7b03ec5137d3764ce9eb9309805809 (diff)
Support overclocking and underclocking the Gamecube CPU
Won't work with all games, but provides a nice way to spend extra CPU to make a variable framerate game faster (e.g. Spyro or The Last Story), or to make a game use less CPU at the cost of a lower framerate (e.g. Rogue Leader).
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
-rw-r--r--Source/Core/Common/StringUtil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h
index 7f5abc7d86..d38a5afa07 100644
--- a/Source/Core/Common/StringUtil.h
+++ b/Source/Core/Common/StringUtil.h
@@ -64,6 +64,8 @@ template <typename N>
static bool TryParse(const std::string &str, N *const output)
{
std::istringstream iss(str);
+ // is this right? not doing this breaks reading floats on locales that use different decimal separators
+ iss.imbue(std::locale(".1252"));
N tmp = 0;
if (iss >> tmp)