PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions

Line 44: Line 44:


<source lang="cpp">
<source lang="cpp">
g_Conf = new AppConfig();
wxInitAllImageHandlers();
 
Console.WriteLn("Applying operating system default language...");
i18n_SetLanguage( wxLANGUAGE_DEFAULT );
 
Console.WriteLn("Command line parsing...");
if( !_parent::OnInit() ) return false;
Console.WriteLn("Command line parsed!");
 
i18n_SetLanguagePath();
</source>
</source>
This is really straightforward. We're just creating an instance of AppConfig, which contains all kinds of options for wxWidgets. The declarations are [https://github.com/PCSX2/pcsx2/blob/e525f95f22bab06fa318d0a4e0feb1728b425a2f/pcsx2/gui/AppConfig.h here].
This is really straightforward. We're just doing some more initialization for the gui. We're creating an instance of AppConfig, which contains all kinds of options for wxWidgets. The declarations are [https://github.com/PCSX2/pcsx2/blob/e525f95f22bab06fa318d0a4e0feb1728b425a2f/pcsx2/gui/AppConfig.h here]. We're also setting the PCSX2 language to whatever the operating system language is.


==WxWidgets Frames==
==WxWidgets Frames==
ninja
782

edits