void ds2_main(void) { int err; HighFrequencyCPU(); //Initial video and audio and other input and output err = ds2io_initb(DS2_BUFFER_SIZE, SND_SAMPLE_RATE, 0, 0); if(err) goto _failure; //Initial file system err = fat_init(); if(err) goto _failure; //go to user main funtion sfc_main (0, 0); _failure: ds2_plug_exit(); }
void ds2_main(void) { int err; ds2_setCPUclocklevel(13); //Initial video and audio and other input and output err = ds2io_initb(512, 22050, 0, 0); if(err) goto _failure; //Initial file system err = fat_init(); if(err) goto _failure; //go to user main funtion sfc_main (0, 0); _failure: ds2_plug_exit(); }