mirror of
https://github.com/PretendoNetwork/Grove.git
synced 2024-05-31 19:17:33 -04:00
Added all wiiuEC functions to grove with all info known info related.
This commit is contained in:
parent
187398c486
commit
d7fdb394db
|
@ -7,7 +7,10 @@ window.onerror = function(error, url, line) {
|
|||
var Grove = {
|
||||
Client: {},
|
||||
Debugging: {},
|
||||
Utils: {}
|
||||
Utils: {},
|
||||
Backend: {
|
||||
Titles: {}
|
||||
}
|
||||
}
|
||||
|
||||
/* constants and variables*/
|
||||
|
@ -42,6 +45,61 @@ Grove.Debugging = {
|
|||
}
|
||||
}
|
||||
|
||||
/* Backend Downloading module */
|
||||
/* Handles titles */
|
||||
|
||||
Grove.Backend.Titles = {
|
||||
registerTitleDownloadTask: function (titleId, titleVer) {
|
||||
wiiuEC.registerTitleDownloadTask(titleId, titleVer);
|
||||
},
|
||||
registerPatchTitleDownloadTask: function (titleId) {
|
||||
wiiuEC.registerPatchTitleDownloadTask(titleId);
|
||||
},
|
||||
registerAocDownloadTask: function (titleId, titleVer, jsonString) {
|
||||
return wiiuEC.registerAocDownloadTask(titleId,titleVer,jsonString /* ??? */);
|
||||
/* jsonString:
|
||||
|
||||
'{"indexes":[' + dl_obj[i].content_index + ']}'
|
||||
|
||||
*/
|
||||
/*
|
||||
res: {
|
||||
error: {
|
||||
code: Number
|
||||
}
|
||||
}
|
||||
*/
|
||||
},
|
||||
getDownloadTaskList: function () {
|
||||
return wiiuEC.getDownloadTaskListState();
|
||||
/*
|
||||
res: {
|
||||
remainingTaskNum,
|
||||
...
|
||||
}
|
||||
*/
|
||||
},
|
||||
getTitleInfo: function (titleId, titleVer) {
|
||||
return wiiuEC.getTitleInstallInfo(titleId, titleVer);
|
||||
/*
|
||||
res: {
|
||||
storageSize,
|
||||
downloadMedia,
|
||||
installSize,
|
||||
...
|
||||
}
|
||||
*/
|
||||
},
|
||||
ticketDownload: function (ticket) {
|
||||
wiiuEC.ticketDownloadSync(ticket); /* ticketId returned from:
|
||||
ninjaBase + 'ws/' + country + '/title/' + title_id +'/aocs/!purchase?lang='+lang
|
||||
*/
|
||||
},
|
||||
needSystemUpdate: function () {
|
||||
return wiiuEC.needsSystemUpdate(); /* returns boolean */
|
||||
}
|
||||
}
|
||||
|
||||
/* Client module */
|
||||
/* Handles client interaction */
|
||||
|
||||
|
|
Loading…
Reference in a new issue