Project

General

Profile

« Previous | Next » 

Revision 1506

Added by markw 2 days ago

Correct some stupid errors in drive selection

View differences:

pokeycfg.c
while (1)
{
gotoxy(32,2); //column of the drive digit
gotoxy(29,3); //column of the drive digit
cputc('0'+core_drive);
gotoxy(0,7);
while(!kbhit());
key = cgetc();
if ((key >= '1') && (key <= '8'))
......
core_drive = key - '0';
filename[1] = '0' + core_drive;
}
else if ((key == 'y') || (key == 'Y'))
else if (key == 'y')
{
return 1;
}
else
else if (key == KEY_ESC)
{
return 0;
}
......
unsigned char t=0;
if (!input)
{
cprintf("Failed to open file!\r\n");
cprintf("Failed to open %s!\r\n",filename);
sleep(3);
}
//fseek(input,0,SEEK_SET);

Also available in: Unified diff