X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=gp2x%2F940ctl.c;h=38a9f9dd321c0f6c89bf597937f54ca40da50864;hb=0aa509f90d056abafd8a9114f11a9ae3df0bfefb;hp=921922c90365355cb42ec3853ba9f6dbad522952;hpb=45deb4099e6d20780376e6425d43107120a10bc6;p=libpicofe.git diff --git a/gp2x/940ctl.c b/gp2x/940ctl.c index 921922c..38a9f9d 100644 --- a/gp2x/940ctl.c +++ b/gp2x/940ctl.c @@ -17,6 +17,7 @@ #include "../common/arm_utils.h" #include "../common/menu.h" #include "../common/emu.h" +#include "../common/input.h" #include "../../pico/pico_int.h" #include "../../pico/sound/ym2612.h" #include "../../pico/sound/mix.h" @@ -294,7 +295,7 @@ void YM2612Init_940(int baseclock, int rate) if (crashed_940) { unsigned char ucData[1024]; - int nRead, i, nLen = 0; + int nRead, nLen = 0; char binpath[512]; FILE *fp; @@ -306,6 +307,7 @@ void YM2612Init_940(int baseclock, int rate) text_out16(10, 100, "failed to open required file:"); text_out16(10, 110, CODE940_FILE); gp2x_video_flip2(); + in_menu_wait(PBTN_MOK|PBTN_MBACK, 100); printf("failed to open %s\n", binpath); exit(1); }