mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
buggy port of gfx/cd, silpheed started working?
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@73 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
e1aa0fa7bd
commit
7789349f9a
3 changed files with 11 additions and 9 deletions
14
gp2x/menu.c
14
gp2x/menu.c
|
@ -744,8 +744,9 @@ static void draw_cd_menu_options(int menu_sel, char *b_us, char *b_eu, char *b_j
|
||||||
gp2x_text_out8(tl_x, (y+=10), "CD LEDs %s", (currentConfig.EmuOpt &0x0400)?"ON":"OFF"); // 3
|
gp2x_text_out8(tl_x, (y+=10), "CD LEDs %s", (currentConfig.EmuOpt &0x0400)?"ON":"OFF"); // 3
|
||||||
gp2x_text_out8(tl_x, (y+=10), "CDDA audio (using mp3s) %s", (currentConfig.PicoOpt&0x0800)?"ON":"OFF"); // 4
|
gp2x_text_out8(tl_x, (y+=10), "CDDA audio (using mp3s) %s", (currentConfig.PicoOpt&0x0800)?"ON":"OFF"); // 4
|
||||||
gp2x_text_out8(tl_x, (y+=10), "PCM audio %s", (currentConfig.PicoOpt&0x0400)?"ON":"OFF"); // 5
|
gp2x_text_out8(tl_x, (y+=10), "PCM audio %s", (currentConfig.PicoOpt&0x0400)?"ON":"OFF"); // 5
|
||||||
gp2x_text_out8(tl_x, (y+=10), "Better sync (slow) %s", (currentConfig.PicoOpt&0x2000)?"ON":"OFF"); // 6
|
gp2x_text_out8(tl_x, (y+=10), "ReadAhead buffer %s", ra_buff); // 6
|
||||||
gp2x_text_out8(tl_x, (y+=10), "ReadAhead buffer %s", ra_buff); // 7
|
gp2x_text_out8(tl_x, (y+=10), "Scale/Rot. fx (buggy,slow) %s", (currentConfig.PicoOpt&0x1000)?"ON":"OFF"); // 7
|
||||||
|
gp2x_text_out8(tl_x, (y+=10), "Better sync (slow) %s", (currentConfig.PicoOpt&0x2000)?"ON":"OFF"); // 8
|
||||||
gp2x_text_out8(tl_x, (y+=10), "Done");
|
gp2x_text_out8(tl_x, (y+=10), "Done");
|
||||||
|
|
||||||
// draw cursor
|
// draw cursor
|
||||||
|
@ -761,7 +762,7 @@ static void draw_cd_menu_options(int menu_sel, char *b_us, char *b_eu, char *b_j
|
||||||
|
|
||||||
static void cd_menu_loop_options(void)
|
static void cd_menu_loop_options(void)
|
||||||
{
|
{
|
||||||
int menu_sel = 0, menu_sel_max = 8;
|
int menu_sel = 0, menu_sel_max = 9;
|
||||||
unsigned long inp = 0;
|
unsigned long inp = 0;
|
||||||
char bios_us[32], bios_eu[32], bios_jp[32], *bios, *p;
|
char bios_us[32], bios_eu[32], bios_jp[32], *bios, *p;
|
||||||
|
|
||||||
|
@ -791,8 +792,7 @@ static void cd_menu_loop_options(void)
|
||||||
case 3: currentConfig.EmuOpt ^=0x0400; break;
|
case 3: currentConfig.EmuOpt ^=0x0400; break;
|
||||||
case 4: currentConfig.PicoOpt^=0x0800; break;
|
case 4: currentConfig.PicoOpt^=0x0800; break;
|
||||||
case 5: currentConfig.PicoOpt^=0x0400; break;
|
case 5: currentConfig.PicoOpt^=0x0400; break;
|
||||||
case 6: currentConfig.PicoOpt^=0x2000; break;
|
case 6:
|
||||||
case 7:
|
|
||||||
if (inp & GP2X_LEFT) {
|
if (inp & GP2X_LEFT) {
|
||||||
PicoCDBuffers >>= 1;
|
PicoCDBuffers >>= 1;
|
||||||
if (PicoCDBuffers < 64) PicoCDBuffers = 0;
|
if (PicoCDBuffers < 64) PicoCDBuffers = 0;
|
||||||
|
@ -802,7 +802,9 @@ static void cd_menu_loop_options(void)
|
||||||
if (PicoCDBuffers > 4096) PicoCDBuffers = 4096;
|
if (PicoCDBuffers > 4096) PicoCDBuffers = 4096;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 8: return;
|
case 7: currentConfig.PicoOpt^=0x1000; break;
|
||||||
|
case 8: currentConfig.PicoOpt^=0x2000; break;
|
||||||
|
case 9: return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(inp & (GP2X_X|GP2X_A)) return;
|
if(inp & (GP2X_X|GP2X_A)) return;
|
||||||
|
|
|
@ -66,7 +66,7 @@ tidy:
|
||||||
|
|
||||||
PicoDrive : $(OBJS)
|
PicoDrive : $(OBJS)
|
||||||
@echo $@
|
@echo $@
|
||||||
@$(GCC) $(COPT) $(OBJS) ../gp2x/helix/helix_mp3_x86.a $(LDFLAGS) -lm -o $@
|
@$(GCC) $(COPT) $(OBJS) ../gp2x/helix/helix_mp3_x86.a $(LDFLAGS) -lm -Wl,-Map=PicoDrive.map -o $@
|
||||||
|
|
||||||
|
|
||||||
../../cpu/mz80/mz80.o : ../../cpu/mz80/mz80.asm
|
../../cpu/mz80/mz80.o : ../../cpu/mz80/mz80.asm
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
// pico.c
|
// pico.c
|
||||||
#define CAN_HANDLE_240_LINES 1
|
#define CAN_HANDLE_240_LINES 1
|
||||||
|
|
||||||
#define dprintf(f,...) printf("%05i:%03i: " f "\n",Pico.m.frame_count,Pico.m.scanline,##__VA_ARGS__)
|
//#define dprintf(f,...) printf("%05i:%03i: " f "\n",Pico.m.frame_count,Pico.m.scanline,##__VA_ARGS__)
|
||||||
//#define dprintf(x...)
|
#define dprintf(x...)
|
||||||
|
|
||||||
#endif //PORT_CONFIG_H
|
#endif //PORT_CONFIG_H
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue