ym2612 stray sounds on save load fixed
authornotaz <notasas@gmail.com>
Fri, 11 May 2007 20:45:29 +0000 (20:45 +0000)
committernotaz <notasas@gmail.com>
Fri, 11 May 2007 20:45:29 +0000 (20:45 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@128 be3aeb3a-fb24-0410-a615-afba39da0efa

platform/gp2x/940ctl.c
platform/gp2x/Makefile
platform/gp2x/code940/Makefile

index 808e91d..6c52cca 100644 (file)
@@ -313,6 +313,12 @@ void YM2612PicoStateLoad_940(void)
 {\r
        int i, old_A1 = addr_A1;\r
 \r
+       /* make sure JOB940_PICOSTATELOAD gets done before next JOB940_YM2612UPDATEONE */\r
+       add_job_940(JOB940_PICOSTATELOAD);\r
+       if (CHECK_BUSY(JOB940_PICOSTATELOAD)) wait_busy_940(JOB940_PICOSTATELOAD);\r
+\r
+       writebuff_ptr = 0;\r
+\r
        // feed all the registers and update internal state\r
        for(i = 0; i < 0x100; i++) {\r
                YM2612Write_940(0, i);\r
@@ -324,8 +330,6 @@ void YM2612PicoStateLoad_940(void)
        }\r
 \r
        addr_A1 = old_A1;\r
-\r
-//     add_job_940(JOB940_PICOSTATELOAD);\r
 }\r
 \r
 \r
index 5cfbe71..abb6be4 100644 (file)
@@ -116,7 +116,7 @@ ifeq "$(up)" "1"
 endif\r
 \r
 up: PicoDrive.gpe\r
-       @cp -v PicoDrive.gpe /mnt/gp2x/mnt/sd/games/PicoDrive/\r
+       @cp -v PicoDrive.gpe /mnt/gp2x/mnt/sd/emus/PicoDrive/\r
 \r
 #      @cmd //C copy PicoDrive.gpe \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\\r
 \r
index 0af15b9..26eecba 100644 (file)
@@ -65,7 +65,7 @@ misc.o : ../../../Pico/misc.s
 \r
 \r
 up: code940.bin\r
-       @cp -v code940.bin /mnt/gp2x/mnt/sd/games/PicoDrive/\r
+       @cp -v code940.bin /mnt/gp2x/mnt/sd/emus/PicoDrive/\r
 \r
 \r
 # cleanup\r