From a5365695a4e491413eeeca87243f776857d80913 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 27 Mar 2008 19:04:05 +0000 Subject: [PATCH] some fixes git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@398 be3aeb3a-fb24-0410-a615-afba39da0efa --- base_readme.txt | 5 +++-- common/config.c | 4 ++-- gp2x/emu.c | 4 ---- gp2x/main.c | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/base_readme.txt b/base_readme.txt index 1a13a4d..a50f80d 100644 --- a/base_readme.txt +++ b/base_readme.txt @@ -642,9 +642,10 @@ Changelog * Changed config file format, files are now human-readable. Game specific configs are now held in single file (but old game config files are still read). - * Fixed a bug where some key combos didn't work. - * Fixed a regression in renderer (rare graphic glitches). + * Fixed a bug where some key combos didn't work as expected. + * Fixed a regression in renderer (some graphic glitches in rare cases). * Adjusted fast rernderer to work with more games, including VR. + * Fixed a problem where SegaCD RAM cart data was getting lost on reset. 1.35b * PSP: mp3 code should no longer fail on 1.5 firmware. diff --git a/common/config.c b/common/config.c index a1808ee..e2a2395 100644 --- a/common/config.c +++ b/common/config.c @@ -353,7 +353,7 @@ int config_writelrom(const char *fname) int size; FILE *f; - if (strlen(lastRomFile) == 0) return 0; + if (strlen(lastRomFile) == 0) return -1; f = fopen(fname, "r"); if (f != NULL) @@ -694,7 +694,7 @@ int config_readsect(const char *fname, const char *section) FILE *f; f = fopen(fname, "r"); - if (f == NULL) return 0; + if (f == NULL) return -1; if (section != NULL) { diff --git a/gp2x/emu.c b/gp2x/emu.c index a3e7f83..3ee96f2 100644 --- a/gp2x/emu.c +++ b/gp2x/emu.c @@ -11,7 +11,6 @@ #include #include #include -#include #include @@ -653,9 +652,6 @@ static void simpleWait(int thissec, int lim_time) gettimeofday(&tval, 0); if (thissec != tval.tv_sec) tval.tv_usec+=1000000; - if (tval.tv_usec < lim_time) - sched_yield(); - while (tval.tv_usec < lim_time) { spend_cycles(1024); diff --git a/gp2x/main.c b/gp2x/main.c index f016411..ed2191c 100644 --- a/gp2x/main.c +++ b/gp2x/main.c @@ -66,7 +66,7 @@ void parse_cmd_line(int argc, char *argv[]) } if (unrecognized) { - printf("\n\n\nPicoDrive v" VERSION " (c) notaz, 2006-2007\n"); + printf("\n\n\nPicoDrive v" VERSION " (c) notaz, 2006-2008\n"); printf("usage: %s [options] [romfile]\n", argv[0]); printf( "options:\n" "-menu launch a custom program on exit instead of default gp2xmenu\n" -- 2.39.5