-
Notifications
You must be signed in to change notification settings - Fork 149
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
[New format request] xdelta3 support #5
Comments
I myself cannot help, but for a second reference I noticed that the following web patcher supports xdelta (among a bunch of other formats as well): https://hack64.net/Thread-Web-based-ROM-patcher-APS-BPS-IPS-MOD-Star-Rod-PPF-UPS-VCDiff-xdelta |
Oh, I found that patcher some time ago. Anyway, xdelta support is coming ;-) I've been working on it for some time, but cannot promise when it will be ready. |
xdelta (patching only) support has been added in e7d2bcc However, I'm having problems with Firefox and cache service worker and the site is not showing the latest version, despite files have been comitted correctly. I'll look into it asap since this is giving me headaches in all my projects here in GitHub Pages+Firefox. |
it seems like only xdelta2 is supported, not xdelta3. with an xdelta3 patch, i get the error "not implemented: secondary decompressor" |
From @DeadSkullzJr #45
I am aware :-( |
For what it's worth it's not necessary to port the Xdelta to Javascript. It's possible to compile the library directly into web assembly with Emscripten and it works pretty nicely, see https://github.com/kotcrab/xdelta-wasm |
Sounds good! |
Sorry, I won't be making a PR. Adding this is somewhat tricky since you need to figure how to include compiling native code into your build process. Also my approach isn't directly compatible with this project because I'm using StreamSaver library to process the file in chunks and this seems to be processing files in memory. |
I added .xdelta support, borrowed from https://github.com/google/xdelta3-decoder-js.
It works with http://www.romhacking.net/hacks/3810/, but seems to fail with https://www.romhacking.net/hacks/2871/. It creates a 8mb file full of garbage, when it should be 32mb (like the source ROM).
I commented all xdelta code for now, but I commited the needed files for anyone who wants to take a look.
The text was updated successfully, but these errors were encountered: