* Fix of-by-one error
ROMs with headers containing an internal name of 20 characters (or more) got truncated to 19.
* Make sure not to read outside of the intended header section
Got rid of the annoying message you get when opening the menu in a game that uses cpak.
It said "Saving..." even when there wasn't anything to save.
Cleaned up and refactored the save file code. Much easier to follow now.
* Write unique game info to /tmp/GAMENAME
* Remove CD product code lookup, and crc32
* Remove product codes
/tmp/GAMENAME only uses file path and crc32
* Clean up
* Cleanup
* Only write CRC32 and or Product Code to /tmp/GAMEID
Realizing we already have the file path, this change writes the already calculated CRC32 and or game ID (N64 and PSX only) to /tmp/GAMEID. This ignores boot*.rom and cd_bios*.rom
CRC32: XXXXXXXX
Product Code: XXXXXXXXXXXX
* Clean up
* Update neogeo_loader.cpp
* Skip GAMEID for all BIOS files
* Guard behind log_file_entry ini option and clean up print statements
* Add MRA GAMEID support and improve GAMEID writing
MRA files use setname as serial
* Add MGL handling for /tmp/ STARTPATH, FULLPATH, CURRENTPATH, and FILESELECT
* Update mgl /tmp/ file handling
* N64: Implement cheats
* Remove unused function
* Corrected byte mask condition (skip if 0xffffffff)
* Meow
* Final changes to make the parser compatible with gamehacking.org's cheat files.
* Revert back to old pointer convention.
A small bug was introduced with the new dead zone code that made it ignore "quirks" regarding DS3/DS4. These devices should automatically be given a dead zone of 10, as it was before.
N64 improvements. Split N64 save files into eep, sra, fla, mpk and tpk files.
Add "wide" tag detection to database, auto-switches to widescreen if found.
Prioritize N64-database_user.txt, so that people can override games already in the regular database file.
Honor order that rpak, cpak and tpak are written in database, for p1 controller.
* N64 improvements.
Better Auto detection of N64 games (region, security chips, save type).
Better info message after loading a game. Clean up.
* Update n64.cpp
Accidentally included the header file twice.
* Squashed commit of the following:
commit 40c58abf1d87e870d20ab77bf2934df6ed6d7b94
Merge: 1fc9c37 7c65b22
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Fri Oct 6 09:00:07 2023 +0200
Merge branch 'master' of https://github.com/yxkalle/Main_MiSTer
commit 1fc9c37c070b54719aa6ae14890db5fc6bcec3e1
Author: Rikard Bengtsson <rikard.bengtsson@yahoo.se>
Date: Fri Oct 6 08:57:57 2023 +0200
N64: Just some cleanup. Made code simpler. Added some comments where needed.
commit 7c65b22cab1a33f599b3a7ecb2faaaa27613046b
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Fri Oct 6 04:09:51 2023 +0200
Delete MiSTer_noface
commit fe2169544f5ce5ace125109bf65df16dc65594a2
Merge: c163956 ee5659a
Author: Rikard Bengtsson <rikard.bengtsson@yahoo.se>
Date: Fri Oct 6 03:28:02 2023 +0200
Merge branch 'master' into add-id-to-db
commit c1639563da1ea714575f51f27a21df9c2f493a6e
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Fri Oct 6 03:15:05 2023 +0200
Update n64.cpp
commit f4a6b98b5dd650bc13e08db8bb21e3da31fea64b
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Fri Oct 6 03:12:51 2023 +0200
cleanup
commit 401b9dc6a9b2d0dd06c18be1e48014b3dc81e946
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Tue Oct 3 22:48:03 2023 +0200
Clean-up
Clean-up the code, added some comments. Allow uppercase md5s in the database.
commit e0e2affdfe277577820ba73a202b06311b645ec7
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Mon Oct 2 20:05:28 2023 +0200
Cleaner code?
commit 554666832bd55d924b531f469a45cb7996f13e03
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Sun Oct 1 02:13:00 2023 +0200
Delete N64-database.txt
Delete before PR
commit 9e8fc3f30c36ea9de59d4f1801a4341edbf73eb8
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Sun Oct 1 02:09:07 2023 +0200
Some commenting and clean-up
commit be19bb6e679cd76d32f9b0382c08052ba1e68944
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Sun Oct 1 01:19:05 2023 +0200
Autodetect settings by ID
Settings are saved in the database text files as usual, but you can match by both MD5 (first 4096), MD5 (full) as well as ID + region + revision.
* Added support for hacked boot codes
* Update n64.cpp
* Squashed commit of the following:
commit 40c58abf1d87e870d20ab77bf2934df6ed6d7b94
Merge: 1fc9c37 7c65b22
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Fri Oct 6 09:00:07 2023 +0200
Merge branch 'master' of https://github.com/yxkalle/Main_MiSTer
commit 1fc9c37c070b54719aa6ae14890db5fc6bcec3e1
Author: Rikard Bengtsson <rikard.bengtsson@yahoo.se>
Date: Fri Oct 6 08:57:57 2023 +0200
N64: Just some cleanup. Made code simpler. Added some comments where needed.
commit 7c65b22cab1a33f599b3a7ecb2faaaa27613046b
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Fri Oct 6 04:09:51 2023 +0200
Delete MiSTer_noface
commit fe2169544f5ce5ace125109bf65df16dc65594a2
Merge: c163956 ee5659a
Author: Rikard Bengtsson <rikard.bengtsson@yahoo.se>
Date: Fri Oct 6 03:28:02 2023 +0200
Merge branch 'master' into add-id-to-db
commit c1639563da1ea714575f51f27a21df9c2f493a6e
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Fri Oct 6 03:15:05 2023 +0200
Update n64.cpp
commit f4a6b98b5dd650bc13e08db8bb21e3da31fea64b
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Fri Oct 6 03:12:51 2023 +0200
cleanup
commit 401b9dc6a9b2d0dd06c18be1e48014b3dc81e946
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Tue Oct 3 22:48:03 2023 +0200
Clean-up
Clean-up the code, added some comments. Allow uppercase md5s in the database.
commit e0e2affdfe277577820ba73a202b06311b645ec7
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Mon Oct 2 20:05:28 2023 +0200
Cleaner code?
commit 554666832bd55d924b531f469a45cb7996f13e03
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Sun Oct 1 02:13:00 2023 +0200
Delete N64-database.txt
Delete before PR
commit 9e8fc3f30c36ea9de59d4f1801a4341edbf73eb8
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Sun Oct 1 02:09:07 2023 +0200
Some commenting and clean-up
commit be19bb6e679cd76d32f9b0382c08052ba1e68944
Author: Rikard Bengtsson <rikard@loginhasselberg.se>
Date: Sun Oct 1 01:19:05 2023 +0200
Autodetect settings by ID
Settings are saved in the database text files as usual, but you can match by both MD5 (first 4096), MD5 (full) as well as ID + region + revision.
* Added support for hacked boot codes
ID, region and revision are grabbed from the games' header and are looked up in the database text file, the same file where MD5 hashes are now. Both MD5 and ID will be valid ways of determining ROM settings, so old database files will still work. The benefit of this is that the database can be shrunk quite considerably, as many, many duplicates can be removed. It will be (much) easier to maintain. I'm hoping to see fewer pull request made to the database repository as a consequence of this change.
* input.cpp: pass dev nr to joy_analog
This allows for per-controller behavior
* N64: add emulation for the analog joystick
This applies the reduced-range octagonal gate of the N64 analog stick to
regular analog sticks.
The code was mostly written by Patrick Pollock with small optimizations
by Martin Donlon and myself.
Some users complained that some games weren't working anymore after my submission. The reason is that I always set save type to "none" when the game wasn't detected in the db. This reverts some of the old behavior, don't touch the save type and controller pak settings when these settings are unknown because of missing db.
* Auto detect system region, CIC, and save type if the ROM is missing from N64-database
Make it possible to to load games with correct settings even if they are missing from the database file.
* Removed auto-detection of save type
Only detect system region and cic type, use db for save type.
* Replace info texts with shorter variants
.
* add n64 type
* use a custom loader for N64
This loader:
- converts little-endian and byte-swapped ROMs
- auto-detects ROM properties, this requires a N64-database.txt file in
the N64 games folder