[NSF] Fixed nsf2 structure initialization when loading a file in NSFe format.

This commit is contained in:
Fabio Cavallo 2024-03-10 01:27:37 +01:00
parent f7f4e8b7c0
commit c986045183
No known key found for this signature in database
GPG key ID: 35BA493A350CD00E
2 changed files with 4 additions and 0 deletions

View file

@ -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.

View file

@ -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;