From 9d8a7242253dc63f548728fc9c3512d772720ee2 Mon Sep 17 00:00:00 2001 From: LittleWhite Date: Sun, 6 Mar 2016 14:04:47 +0100 Subject: [PATCH] Set the appropriate locale to get float conversion working using std::to_string --- src/citra_qt/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 #include #include @@ -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);