-
Notifications
You must be signed in to change notification settings - Fork 414
usable movie sram #4337
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
base: master
Are you sure you want to change the base?
usable movie sram #4337
Conversation
a9067ab
to
9f80f2f
Compare
I'm personally indifferent on whether or not sram should be compressed, but won't this require a version bump? |
Yeah, I prefer this just being a version bump instead of just creating a new file. |
I made it use a different file name, so that it can see which is there. That means old files can still be loaded, which I think it valuable. If there will be other changes that cannot be backward-compatible then yeah this could be bundled with that and then not bother with making this backward-compatible. |
Was the filename changed when Zstd compression was added? And keep in mind that migrating movies from older versions isn't something we claim to support. |
No.
But when it's easy to make something backward-compatible, I will. |
9f80f2f
to
d454102
Compare
I changed my approach for making movie SRAM usable/editable. to also address #3734. All zstd compressed files are now given an additional .zst extension. So MovieSaveRam.bin is now MovieSaveRam.bin.zst. These can be easily decompressed with either Windows' File Explorer or 7-Zip File Manager, which makes the uncompressed content readily available. This does not address #2090 or update JSON files to actually have .json extension. Do we want to do both of those along with this version bump? |
IMO the |
I just made the most likely to exist one be the first it checked, but I think your suggestion makes sense. Although it might also make sense to fail if they both exist and tell the user they should delete one, so that there's no ambiguity. |
This resolves TASEmulators#3734. Bitmaps are still compressed, but clearly marked as such. Both Windows 11 File Explorer and 7-Zip File Manager can nicely decompress them. Making zstd compression optional while loading also means files can be edited or replaced if necessary, e.g. changing the SRAM of a movie.
…tensions, this has no consequences for users not manually opening our archive files.
…y marked and accessible
d454102
to
79fb358
Compare
I realized that the It also now throws if there are two files with the same name minus extension, except in the case that one is .zst in which case uncompressed takes precedence. And why not go ahead and zstd compress the text/json files too? Since users can still access them, edit them, and replace them. |
Users should be able to extract the sram from a movie file and use it, and be able to replace the sram in a movie.
Check if completed: