-
Notifications
You must be signed in to change notification settings - Fork 3
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
Cpak (mpak) format fix #7
Conversation
to correctly generate unique serial number and full initialization.
In 2014 I brought up issue DragonMinded#13, about validating the header checksum properly, and was seemingly addressed in 2017-2019, so I closed the issue. I then made DragonMinded#105, which concerns the Looking a bit closer at My understanding of networkfusion's code is that it is a good and efficient method of erasing and reformatting the data. For his use case there was no intention to repair existing data - it was an option to wipe your pak completely. It would be important to determine if that is what libdragon needs, or if libdragon should have a more robust solution to repair existing data. A more robust mempak library can parse the filesystem and selectively apply repair operations as transparently as possible. This is of course more work, but I already have my own very accurate library, almost as robust as the official one, I'm just missing some complicated filesystem repair techniques. Its a JavaScript project, but probably not too hard to rebase in C. Code here: https://github.com/bryc/mempak/blob/master/js/parser.js Btw, that link to the serial database is old, this is the new one: https://rentry.co/mpk_serials 😃 |
Hi. It would be nice if you could merge it into the main branch! Because actually I have problems with the mempack functionality in ALT64 for ED64P. |
@networkfusion |
I know almost nothing of mempak. To merge this, I would need some study first. Moreover the PR as-is contains commented code blocks, and doesn’t add new tests (admittedly, the testsuite doesn’t test the mempak yet so somebody would have first to figure it out how to write tests for mempak.c in the first place). I guess I’ll get to this, eventually, like I did with the other PRs. Meanwhile any testing is appreciated |
@rasky |
@ottelo9 This commit would only improve |
It is still WiP. But... hopefully the latest changes will help. You can download the latest test ROM artifacts and see if they work... I "would" update Altra64, but it is not my priority at the moment... |
Closed as fixed in upsteam unstable. |
Here is an attempted fix for correctly formatting the controller (memory) PAK correctly. It is based on the work done with
bryc
for use in Krikzz OS.I am sure it could be optimized and willing to improve it with help (or you are welcome to improve it regardless) to conform to libdragon coding practices.
Resources: