mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
newstyle key config, code940.bin -> pico940.bin
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@222 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
5963319865
commit
95151aea9d
5 changed files with 196 additions and 99 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue