Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to convert FDS games to MiSTer #299

Open
euan-forrester opened this issue Apr 28, 2024 · 3 comments
Open

Add ability to convert FDS games to MiSTer #299

euan-forrester opened this issue Apr 28, 2024 · 3 comments
Labels
wontfix This will not be worked on

Comments

@euan-forrester
Copy link
Owner

euan-forrester commented Apr 28, 2024

I implicitly assumed they were the same as NES games, but it looks like maybe not: https://www.reddit.com/r/emulation/comments/sbpyhd/converting_srm_to_sav_a_free_and_easy_diy_method/

I wonder what the initial header of 0x00 is. It's unclear from that link how big the header is. We'll need to get a sample file from someone.

More information here: https://www.famicomworld.com/forum/index.php?topic=15522.0

It looks like the MiSTer save is just the whole disc image, and there appear to be a 16 byte header containing 0x00

It seems that emulators' save files may be diffs of the saved disc image vs the original disc image. This may make it difficult to add support for this since there doesn't seem to be a standardized format for emulators.

@euan-forrester
Copy link
Owner Author

euan-forrester commented May 6, 2024

@euan-forrester
Copy link
Owner Author

euan-forrester commented May 8, 2024

Different patch formats:

.ips: Begins with the magic PATCH: https://zerosoft.zophar.net/ips.php
.bps: Begins with the magic BPS1
.ups: Begins with the magic UPS1: http://fileformats.archiveteam.org/wiki/UPS_(binary_patch_format) (this is the format that the emulator on my machine, Nestopia, happens to use)

@euan-forrester
Copy link
Owner Author

So the process for creating an emulator save from a MiSTer save would be:

  1. Create a test save with the emulator
  2. Determine the format of the save. Is it one of the patch file formats? Maybe the whole disc image?
  3. Check if we need to remove the header from the MiSTer save by comparing it against the .fds file we're using. Also remove the footer
  4. Once the MiSTer save has the header and/or footer removed, use a patching program to generate a patch between the MiSTer save and the original .fds image

To do it in reverse we'd need a sample MiSTer save to determine what header and/or footer to add.

Overall I think this is much too complex to add for a feature that no one has requested yet.

@euan-forrester euan-forrester added the wontfix This will not be worked on label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant