Skip to content

Commit

Permalink
fixing cut off non-returning INIT (was accidentally running the secon…
Browse files Browse the repository at this point in the history
…d init for 1 second before beginning audible playback)
  • Loading branch information
bbbradsmith committed Mar 20, 2019
1 parent 072cb73 commit 4549f5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions distribute/nsfplay.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ loopcount - number of times to loop, 0 default
Versions
========

NSFPlay 2.4 beta 17 - 3/19/2019
NSFPlay 2.4 beta 18 - 3/20/2019
- Fixed incorrect bytes per second in stereo WAV output.
- Fixed NSFe track title display when using playlist.
- Fixed crash issue with 1MB NSF files. (Bank counting was incorrect.)
Expand Down Expand Up @@ -191,7 +191,7 @@ NSFPlay 2.4 beta 17 - 3/19/2019
- N163 compatbility options for phase write protect and limited wavelength. (Supports old NSFs that are not hardware accurate.)
- Option to randomize starting triangle phase.
- NSFe VRC7 chunk implemented, provisional support for YM2413 variant.
- VRC7 patch set dump via Nuke.YKT
- VRC7 patch set dump by Nuke.YKT.

NSFPlay 2.3 - 7/19/2013
Emulation:
Expand Down
3 changes: 3 additions & 0 deletions xgm/devices/CPU/nes_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ void NES_CPU::Start (
run_from (init_addr);

// temporarily disable PLAY for INIT
bool extra_init_temp = extra_init;
int play_addr_temp = play_addr;
extra_init = false;
play_addr = -1;

// run up to 1 second of init before starting real playback (this allows INIT to modify $4011 etc. silently)
Expand All @@ -346,6 +348,7 @@ void NES_CPU::Start (
if (nmi_play) enable_nmi = true;
}
}
extra_init = extra_init_temp; // restore extra_init
play_addr = play_addr_temp; // restore PLAY

// start of first frame
Expand Down
4 changes: 2 additions & 2 deletions xgm/version.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _VERSION_H_
#define _VERSION_H_
#define NSFPLAY_TITLE "NSFPlay 2.4 beta 17"
#define NSFPLAY_VERSION "2.4 beta 17"
#define NSFPLAY_TITLE "NSFPlay 2.4 beta 18"
#define NSFPLAY_VERSION "2.4 beta 18"
#endif

0 comments on commit 4549f5b

Please sign in to comment.