mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
mcd: text shows up
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@14 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
25fced505d
commit
5111820c37
5 changed files with 20 additions and 15 deletions
|
@ -92,10 +92,15 @@ ifeq "$(up)" "1"
|
||||||
@cmd //C copy $@ \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\
|
@cmd //C copy $@ \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\
|
||||||
endif
|
endif
|
||||||
|
|
||||||
up: up940
|
up: # up940
|
||||||
@cmd //C copy PicoDrive.gpe \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\
|
@cp -v PicoDrive.gpe /mnt/gp2x/mnt/sd/games/PicoDrive/
|
||||||
|
|
||||||
|
# @cmd //C copy PicoDrive.gpe \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\
|
||||||
|
|
||||||
up940:
|
up940:
|
||||||
@cmd //C copy code940.bin \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\
|
@cp -v code940.bin /mnt/gp2x/mnt/sd/games/PicoDrive/
|
||||||
|
|
||||||
|
# @cmd //C copy code940.bin \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\
|
||||||
|
|
||||||
testrefr.gpe : test.o gp2x.o asmutils.o
|
testrefr.gpe : test.o gp2x.o asmutils.o
|
||||||
@echo $@
|
@echo $@
|
||||||
|
|
12
gp2x/emu.c
12
gp2x/emu.c
|
@ -79,14 +79,15 @@ static void strlwr(char* string)
|
||||||
while ( (*string++ = (char)tolower(*string)) );
|
while ( (*string++ = (char)tolower(*string)) );
|
||||||
}
|
}
|
||||||
|
|
||||||
static int try_rfn_ext(char *ext)
|
static int try_rfn_cut(void)
|
||||||
{
|
{
|
||||||
FILE *tmp;
|
FILE *tmp;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
p = romFileName + strlen(romFileName) - 4;
|
p = romFileName + strlen(romFileName) - 1;
|
||||||
if (p < romFileName) p = romFileName;
|
for (; p > romFileName; p--)
|
||||||
strcpy(p, ext);
|
if (*p == '.') break;
|
||||||
|
*p = 0;
|
||||||
|
|
||||||
if((tmp = fopen(romFileName, "rb"))) {
|
if((tmp = fopen(romFileName, "rb"))) {
|
||||||
fclose(tmp);
|
fclose(tmp);
|
||||||
|
@ -156,8 +157,7 @@ int emu_ReloadRom(void)
|
||||||
sprintf(menuErrorMsg, "Invalid GMV file.");
|
sprintf(menuErrorMsg, "Invalid GMV file.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
dummy = try_rfn_ext(".zip") || try_rfn_ext(".bin") ||
|
dummy = try_rfn_cut() || try_rfn_cut();
|
||||||
try_rfn_ext(".smd") || try_rfn_ext(".gen");
|
|
||||||
if (!dummy) {
|
if (!dummy) {
|
||||||
sprintf(menuErrorMsg, "Could't find a ROM for movie.");
|
sprintf(menuErrorMsg, "Could't find a ROM for movie.");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -352,11 +352,11 @@ static char *romsel_loop(char *curr_path)
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
draw_dirlist(curr_path, namelist, n, sel);
|
draw_dirlist(curr_path, namelist, n, sel);
|
||||||
inp = wait_for_input(GP2X_UP|GP2X_DOWN|GP2X_LEFT|GP2X_RIGHT|GP2X_B|GP2X_X);
|
inp = wait_for_input(GP2X_UP|GP2X_DOWN|GP2X_LEFT|GP2X_RIGHT|GP2X_L|GP2X_R|GP2X_B|GP2X_X);
|
||||||
if(inp & GP2X_UP ) { sel--; if (sel < 0) sel = n-2; }
|
if(inp & GP2X_UP ) { sel--; if (sel < 0) sel = n-2; }
|
||||||
if(inp & GP2X_DOWN) { sel++; if (sel > n-2) sel = 0; }
|
if(inp & GP2X_DOWN) { sel++; if (sel > n-2) sel = 0; }
|
||||||
if(inp & GP2X_LEFT) { sel-=10; if (sel < 0) sel = 0; }
|
if(inp &(GP2X_LEFT|GP2X_L)) { sel-=10; if (sel < 0) sel = 0; }
|
||||||
if(inp & GP2X_RIGHT) { sel+=10; if (sel > n-2) sel = n-2; }
|
if(inp &(GP2X_RIGHT|GP2X_R)) { sel+=10; if (sel > n-2) sel = n-2; }
|
||||||
if(inp & GP2X_B) { // enter dir/select
|
if(inp & GP2X_B) { // enter dir/select
|
||||||
again:
|
again:
|
||||||
if (namelist[sel+1]->d_type == DT_REG) {
|
if (namelist[sel+1]->d_type == DT_REG) {
|
||||||
|
@ -827,7 +827,7 @@ static void draw_menu_credits(void)
|
||||||
int tl_x = 15, tl_y = 70, y;
|
int tl_x = 15, tl_y = 70, y;
|
||||||
memset(gp2x_screen, 0, 320*240);
|
memset(gp2x_screen, 0, 320*240);
|
||||||
|
|
||||||
gp2x_text_out8(tl_x, 20, "PicoDrive v" VERSION " (c) notaz, 2006");
|
gp2x_text_out8(tl_x, 20, "PicoDrive v" VERSION " (c) notaz, 2006,2007");
|
||||||
y = tl_y;
|
y = tl_y;
|
||||||
gp2x_text_out8(tl_x, y, "Credits:");
|
gp2x_text_out8(tl_x, y, "Credits:");
|
||||||
gp2x_text_out8(tl_x, (y+=10), "Dave: Cyclone 68000 core,");
|
gp2x_text_out8(tl_x, (y+=10), "Dave: Cyclone 68000 core,");
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#define VERSION "0.964"
|
#define VERSION "0.965"
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// pico.c
|
// pico.c
|
||||||
#define CAN_HANDLE_240_LINES 1
|
#define CAN_HANDLE_240_LINES 1
|
||||||
|
|
||||||
#define dprintf(f,...) printf("%05i: " f "\n",Pico.m.frame_count,##__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