From d5d119243c9e1086e1e6cb34ea05bfd6ab18c200 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 11 May 2007 20:45:29 +0000 Subject: [PATCH] ym2612 stray sounds on save load fixed git-svn-id: file:///home/notaz/opt/svn/PicoDrive@128 be3aeb3a-fb24-0410-a615-afba39da0efa --- platform/gp2x/940ctl.c | 8 ++++++-- platform/gp2x/Makefile | 2 +- platform/gp2x/code940/Makefile | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/platform/gp2x/940ctl.c b/platform/gp2x/940ctl.c index 808e91d9..6c52cca2 100644 --- a/platform/gp2x/940ctl.c +++ b/platform/gp2x/940ctl.c @@ -313,6 +313,12 @@ void YM2612PicoStateLoad_940(void) { int i, old_A1 = addr_A1; + /* make sure JOB940_PICOSTATELOAD gets done before next JOB940_YM2612UPDATEONE */ + add_job_940(JOB940_PICOSTATELOAD); + if (CHECK_BUSY(JOB940_PICOSTATELOAD)) wait_busy_940(JOB940_PICOSTATELOAD); + + writebuff_ptr = 0; + // feed all the registers and update internal state for(i = 0; i < 0x100; i++) { YM2612Write_940(0, i); @@ -324,8 +330,6 @@ void YM2612PicoStateLoad_940(void) } addr_A1 = old_A1; - -// add_job_940(JOB940_PICOSTATELOAD); } diff --git a/platform/gp2x/Makefile b/platform/gp2x/Makefile index 5cfbe718..abb6be4c 100644 --- a/platform/gp2x/Makefile +++ b/platform/gp2x/Makefile @@ -116,7 +116,7 @@ ifeq "$(up)" "1" endif up: PicoDrive.gpe - @cp -v PicoDrive.gpe /mnt/gp2x/mnt/sd/games/PicoDrive/ + @cp -v PicoDrive.gpe /mnt/gp2x/mnt/sd/emus/PicoDrive/ # @cmd //C copy PicoDrive.gpe \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\ diff --git a/platform/gp2x/code940/Makefile b/platform/gp2x/code940/Makefile index 0af15b9e..26eecbac 100644 --- a/platform/gp2x/code940/Makefile +++ b/platform/gp2x/code940/Makefile @@ -65,7 +65,7 @@ misc.o : ../../../Pico/misc.s up: code940.bin - @cp -v code940.bin /mnt/gp2x/mnt/sd/games/PicoDrive/ + @cp -v code940.bin /mnt/gp2x/mnt/sd/emus/PicoDrive/ # cleanup -- 2.39.5