mirror of https://github.com/PCSX2/pcsx2.git
Don't log errors when initially setting the default language
The PCSX2 log system isn't in place yet, so on Windows it's possible for a language error message to pop up, which might cause alarm. Suppress the error - it's harmless and it's done everywhere else for locales (though perhaps the code should be reworked to avoid this).
This commit is contained in:
parent
995a09a2a6
commit
6b11497cdc
|
@ -410,7 +410,12 @@ bool Pcsx2App::OnInit()
|
|||
wxInitAllImageHandlers();
|
||||
|
||||
Console.WriteLn("Applying operating system default language...");
|
||||
i18n_SetLanguage( wxLANGUAGE_DEFAULT );
|
||||
{
|
||||
// The PCSX2 log system hasn't been set up yet, so error messages might
|
||||
// pop up that could cause some alarm amongst users. Let's avoid that.
|
||||
wxDoNotLogInThisScope please;
|
||||
i18n_SetLanguage(wxLANGUAGE_DEFAULT);
|
||||
}
|
||||
|
||||
Console.WriteLn("Command line parsing...");
|
||||
if( !_parent::OnInit() ) return false;
|
||||
|
|
Loading…
Reference in New Issue