mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00: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 <clocale>
|
||||
|
||||
// For now, a trivial constructor/destructor. May add command line usage later.
|
||||
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.
|
||||
InitializeConnects();
|
||||
|
||||
// As per QT recommendations to avoid conflicts for POSIX functions
|
||||
std::setlocale(LC_NUMERIC, "C");
|
||||
}
|
||||
|
||||
void headless_application::InitializeConnects()
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
|
||||
#include <QScreen>
|
||||
|
||||
#include <clocale>
|
||||
|
||||
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.
|
||||
InitializeConnects();
|
||||
|
||||
// As per QT recommendations to avoid conflicts for POSIX functions
|
||||
std::setlocale(LC_NUMERIC, "C");
|
||||
|
||||
if (m_main_window)
|
||||
{
|
||||
m_main_window->Init();
|
||||
|
|
Loading…
Add table
Reference in a new issue