X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2F940ctl.c;h=54b83b69c7bd6471e098be7286947dc7e1cb4b76;hb=6d7acf9eff33cdde5e3eac44a193448ac0cbf541;hp=8b3c7fe6694acc0fdfeadb5787be671d4c9ba88b;hpb=e362c57310c2b01b206af28210e3c422225e4f94;p=picodrive.git diff --git a/platform/gp2x/940ctl.c b/platform/gp2x/940ctl.c index 8b3c7fe..54b83b6 100644 --- a/platform/gp2x/940ctl.c +++ b/platform/gp2x/940ctl.c @@ -30,6 +30,7 @@ _940_ctl_t *shared_ctl = 0; unsigned char *mp3_mem = 0; #define MP3_SIZE_MAX (0x400000 + 0x800000) // 12M +#define CODE940_FILE "pico940.bin" int crashed_940 = 0; @@ -409,14 +410,14 @@ void YM2612Init_940(int baseclock, int rate) binpath[1023] = 0; for (i = strlen(binpath); i > 0; i--) if (binpath[i] == '/') { binpath[i] = 0; break; } - strcat(binpath, "/code940.bin"); + strcat(binpath, "/" CODE940_FILE); fp = fopen(binpath, "rb"); if(!fp) { memset(gp2x_screen, 0, 320*240); gp2x_text_out8(10, 100, "failed to open required file:"); - gp2x_text_out8(10, 110, "code940.bin"); + gp2x_text_out8(10, 110, CODE940_FILE); gp2x_video_flip(); printf("failed to open %s\n", binpath); exit(1);