Skip to content

Commit

Permalink
[NSF] Fixed nsf2 structure initialization when loading a file in NSFe…
Browse files Browse the repository at this point in the history
… format.
  • Loading branch information
punesemu committed Mar 10, 2024
1 parent f7f4e8b commit c986045
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ Changelog:
- [NSF] Fixed wram destination pointer initialization (#383).
- [NSF] Fixed region selection (#380).
- [NSF] Fixed RAM initialization (#380).
- [NSF] Fixed nsf2 structure initialization when loading a file in NSFe format.
- [NSF Player] Fixed a bug that prevented the display of some song titles (#377).
- [NSF Player] Some NSFe have text encoded in ISO-8859-1 instead of UTF8, improved string encoding recognition (#377).
- [NSF Player] Fixed wrong playlist count (#377).
- [NSF Player] Improved display of author notes.

0.111
- Rewritten mappers : All.
Expand Down
2 changes: 2 additions & 0 deletions src/core/nsfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ BYTE nsfe_load_rom(void) {
info.number_of_nes = 1;
info.machine[DATABASE] = DEFAULT;

memset(&nsf2, 0x00, sizeof(_nsf2));

for (phase = NSFE_COUNT; phase <= NSFE_READ; phase++) {
rom.position = 4;

Expand Down

0 comments on commit c986045

Please sign in to comment.