configure_system: Default initialize member variables

These should be initialized to deterministic values so it's easier to
catch improper behavior, as it'll always be reproducable, instead of
performing uninitialized reads.
This commit is contained in:
Lioncash 2018-10-25 16:52:21 -04:00 committed by fearlessTobi
parent 470cc66049
commit a74d97b15f
1 changed files with 5 additions and 4 deletions

View File

@ -38,13 +38,14 @@ private:
void RefreshConsoleID(); void RefreshConsoleID();
std::unique_ptr<Ui::ConfigureSystem> ui; std::unique_ptr<Ui::ConfigureSystem> ui;
bool enabled; bool enabled = false;
std::shared_ptr<Service::CFG::Module> cfg; std::shared_ptr<Service::CFG::Module> cfg;
std::u16string username; std::u16string username;
int birthmonth, birthday; int birthmonth = 0;
int language_index; int birthday = 0;
int sound_index; int language_index = 0;
int sound_index = 0;
u8 country_code; u8 country_code;
u16 play_coin; u16 play_coin;
}; };