summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLittleWhite <lw.demoscene@googlemail.com>2016-03-06 14:04:47 +0100
committerLittleWhite <lw.demoscene@googlemail.com>2016-03-07 19:51:35 +0100
commit9d8a7242253dc63f548728fc9c3512d772720ee2 (patch)
treec9239a4293fdc8695de370e4513e882c73e4f78e /src
parentMerge pull request #1463 from yuriks/non-app-region (diff)
downloadyuzu-9d8a7242253dc63f548728fc9c3512d772720ee2.tar
yuzu-9d8a7242253dc63f548728fc9c3512d772720ee2.tar.gz
yuzu-9d8a7242253dc63f548728fc9c3512d772720ee2.tar.bz2
yuzu-9d8a7242253dc63f548728fc9c3512d772720ee2.tar.lz
yuzu-9d8a7242253dc63f548728fc9c3512d772720ee2.tar.xz
yuzu-9d8a7242253dc63f548728fc9c3512d772720ee2.tar.zst
yuzu-9d8a7242253dc63f548728fc9c3512d772720ee2.zip
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index da9ea6c91..1854f442a 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <clocale>
#include <thread>
#include <QDesktopWidget>
@@ -563,6 +564,9 @@ int main(int argc, char* argv[]) {
QApplication::setAttribute(Qt::AA_X11InitThreads);
QApplication app(argc, argv);
+ // Qt changes the locale and causes issues in float conversion using std::to_string() when generating shaders
+ setlocale(LC_ALL, "C");
+
GMainWindow main_window;
// After settings have been loaded by GMainWindow, apply the filter
log_filter.ParseFilterString(Settings::values.log_filter);