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:
Jonathan Li 2015-08-24 17:26:22 +01:00
parent 995a09a2a6
commit 6b11497cdc
1 changed files with 6 additions and 1 deletions

View File

@ -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;