Commit Graph

16 Commits

Author SHA1 Message Date
TheFloW
0f7d2dae82 Refactored code 2018-01-28 11:28:02 +01:00
VitaSmith
faedd328ca Fix refresh license DB when ran from ur0:
This should fix issue #323
Also fix a memory leak in license_dir_callback()
2018-01-18 23:02:45 +00:00
TheFloW
1dd26f25d8 Fixed bug in multi volume archive detection 2018-01-03 10:26:47 +01:00
TheFloW
8288f31e94 Added all archive file types 2017-12-31 01:47:19 +01:00
TheFloW
77bddb8836 Finished libarchive port 2017-12-30 23:08:04 +01:00
TheFloW
260c6a76f7 Improved position correction code 2017-12-30 11:43:37 +01:00
VitaSmith
7f2d1134d9 Add license database refresh
A new menu feature "Refresh license database" is now available from the top context menu.

Its action is to parse all the .rif files under ux0:licence/app and ux0:licence/addcont,
and import them to the ux0:licence/license.db SQLite database (which gets created it it
doesn't already exists).

Used in conjunction with the new App/DLC refresh feature, this allows Vita users to
restore their content straight from PKG downloads, and let VitaShell do the job of also
restoring the relevant license from the DB backup.

This also fixes a small typo in LANGUAGE_CONTAINER_SIZE and adds a .editorconfig, to
ensure that the indentation settings of VitaShell are followed by modern code editors.
2017-10-29 01:55:56 +01:00
VitaSmith
627cea57e2 Add DLC refresh + restore license from Sqlite DB
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_ID` TEXT NOT NULL UNIQUE,
  `RIF` BLOB 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.
2017-10-26 22:52:22 +01:00
TheFloW
dae62124a2 Cosmetic changes 2017-10-13 12:42:36 +02:00
TheFloW
eb6048a8f2 Fixed some bugs 2017-09-16 22:34:06 +02:00
TheFloW
6835672a1e Added videoexport 2017-06-23 00:09:31 +02:00
Joel
e5b4680d7d sceRegMgrGetKeyBin already defined in VITASDK
sceRegMgrGetKeyBin has already defined in VITASDK, we no longer need to
redfine it. <psp2/registrymgr.h>, has access to both the regMgr get/set
functions.
2017-05-14 16:11:51 -04:00
TheFloW
cdd77f6559 Inherit file statistics 2017-03-05 18:31:21 +01:00
TheFloW
8120486639 Improved some stuff 2017-03-05 15:27:16 +01:00
TheFloW
8678f74b56 Finished refresh feature 2017-02-28 19:35:01 +01:00
TheFloW
8d78ef3e6a Added WIP refresh feature 2017-02-27 21:53:38 +01:00