Don't segfault when trying to change the slot1 cart type in the cli frontend.
This commit is contained in:
parent
d0e44dbaf3
commit
960a9774e3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue