mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
Forces numeric locale to default
This commit is contained in:
parent
aa7eb1536a
commit
7818d0767b
2 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
#include "Emu/RSX/GSRender.h"
|
#include "Emu/RSX/GSRender.h"
|
||||||
|
|
||||||
|
#include <clocale>
|
||||||
|
|
||||||
// For now, a trivial constructor/destructor. May add command line usage later.
|
// For now, a trivial constructor/destructor. May add command line usage later.
|
||||||
headless_application::headless_application(int& argc, char** argv) : QCoreApplication(argc, argv)
|
headless_application::headless_application(int& argc, char** argv) : QCoreApplication(argc, argv)
|
||||||
{
|
{
|
||||||
|
@ -19,6 +21,9 @@ void headless_application::Init()
|
||||||
|
|
||||||
// Create connects to propagate events throughout Gui.
|
// Create connects to propagate events throughout Gui.
|
||||||
InitializeConnects();
|
InitializeConnects();
|
||||||
|
|
||||||
|
// As per QT recommendations to avoid conflicts for POSIX functions
|
||||||
|
std::setlocale(LC_NUMERIC, "C");
|
||||||
}
|
}
|
||||||
|
|
||||||
void headless_application::InitializeConnects()
|
void headless_application::InitializeConnects()
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
|
|
||||||
|
#include <clocale>
|
||||||
|
|
||||||
gui_application::gui_application(int& argc, char** argv) : QApplication(argc, argv)
|
gui_application::gui_application(int& argc, char** argv) : QApplication(argc, argv)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -48,6 +50,9 @@ void gui_application::Init()
|
||||||
// Create connects to propagate events throughout Gui.
|
// Create connects to propagate events throughout Gui.
|
||||||
InitializeConnects();
|
InitializeConnects();
|
||||||
|
|
||||||
|
// As per QT recommendations to avoid conflicts for POSIX functions
|
||||||
|
std::setlocale(LC_NUMERIC, "C");
|
||||||
|
|
||||||
if (m_main_window)
|
if (m_main_window)
|
||||||
{
|
{
|
||||||
m_main_window->Init();
|
m_main_window->Init();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue