Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd DLC refresh + restore license from Sqlite DB #310
Conversation
This comment has been minimized.
This comment has been minimized.
|
Just an additional note that the hardcoded Or we could |
This comment has been minimized.
This comment has been minimized.
mmozeiko
commented
Oct 26, 2017
I see one issue with this - users are required to learn new software. Which is not required for restoring their main game from NoNpDrm dump. If you keep only work.bin support, you will get exactly same behavior as it is for main app refresh right now. Basically - 1) you dump your game, 2) you get your rif files, 3) rename to work.bin for safekeeping/backup, 4) when you need to restore, just copy them to device & refresh. Easy-peasy. |
This comment has been minimized.
This comment has been minimized.
mmozeiko
commented
Oct 26, 2017
•
|
It seems that there is an issue when many DLCs for one game are refreshed. I did following:
If instead I do following:
It looks like promoter starts to ignore all other potential DLCs which exists inside addcont/TITLEID folder when it installs first one there. Not sure the best way to solve this, but it seems that first moving all new DLCs out of addcont (to some ux0:/temp/whatever folder) and then calling promoter one by one on each folder would solve this. That's pretty much what is happening with installation already now. |
This comment has been minimized.
This comment has been minimized.
|
@mmozeiko, I think you missed the point I was making about the reason why the use of SQLite should not be dismissed early:
As to your the issue you report with multi DLC, I will check it out. It will probably be a bit of time before I can do so though... Obviously, I also need to point out that this is still an early and experimental feature, which I'm pushing out in the open so that people can test it and bugs/issues can be addressed. I know that promote is very picky about what's going on with the |
This comment has been minimized.
This comment has been minimized.
|
If it's working fine, I will merge it. |
This comment has been minimized.
This comment has been minimized.
|
@TheOfficialFloW, thanks, but please don't forget to at least increase I would also suggest you publish a pre-release so that people can test and confirm that it also works for them, before doing an official release, but it's your call. |
This comment has been minimized.
This comment has been minimized.
|
Disregard, I missed the if and thought you were about to merge it... For now, this needs more testing, so please hold on on merging. |
This comment has been minimized.
This comment has been minimized.
|
Can you please commit the change for the increasement? Compile it and share it on vitahacks or somewhere else. Unfortunately I don't have time to do it right now. |
This comment has been minimized.
This comment has been minimized.
|
I will do that. |
VitaSmith
force-pushed the
VitaSmith:VitaSmith
branch
from
393b1d2
to
627cea5
Oct 26, 2017
This comment has been minimized.
This comment has been minimized.
mmozeiko
commented
Oct 27, 2017
|
I can confirm that this now works very good - all newly found DLCs are refreshed correctly. |
TheOfficialFloW
merged commit 048b822
into
TheOfficialFloW:master
Oct 27, 2017
This comment has been minimized.
This comment has been minimized.
|
Thanks! |
VitaSmith commentedOct 26, 2017
DLC from ux0:addcont/ is now installed during refresh, provided there exists an sce_sys/package/
directory containing: body.bin, head.bin, inst.bin stat.bin, tail.bin, temp.bin and work.bin.
Apart from work.bin, all of these files can be be restored from the official PKG downloads, as
demonstrated by pkg_dec.
Moreover, this patch adds the ability to restore one's RIFs from an ux0:/license/licenses.db
SQLite database with the schema described hereafter (the RIF column being the uncompressed
512-byte binary license):
CREATE TABLE
Licenses(CONTENT_IDTEXT NOT NULL UNIQUE,RIFBLOB NOT NULL,PRIMARY KEY(
CONTENT_ID));
With both these feature and provided that one's personal licenses have been backed up in
ux0:/license/licenses.db, Vita users can conveniently restore or reinstall their legally
owned content, straight from Sony's PKG files.
Additional notes: