Don't segfault when trying to change the slot1 cart type in the cli frontend.

This commit is contained in:
thelemonman 2013-10-13 17:46:50 +00:00
parent d0e44dbaf3
commit 960a9774e3
1 changed files with 7 additions and 7 deletions

View File

@ -518,6 +518,13 @@ int main(int argc, char ** argv) {
/* the firmware settings */
struct NDS_fw_config_data fw_config;
#ifdef GDB_STUB
NDS_Init( arm9_memio, &arm9_ctrl_iface,
arm7_memio, &arm7_ctrl_iface);
#else
NDS_Init();
#endif
/* default the firmware settings, they may get changed later */
NDS_FillDefaultFirmwareConfigData( &fw_config);
@ -586,13 +593,6 @@ int main(int argc, char ** argv) {
}
#endif
#ifdef GDB_STUB
NDS_Init( arm9_memio, &arm9_ctrl_iface,
arm7_memio, &arm7_ctrl_iface);
#else
NDS_Init();
#endif
/* Create the dummy firmware */
NDS_CreateDummyFirmware( &fw_config);