After this we proceed toward our WebmanOFWMod.
Debug offers us, avaible RAM, VRAM, Network settings,and game install offers a routine for returns the free HDD space.
So far we can create a HTML section with these values.
And then the holy grail of all
Code:
//Using special require.nodeRequire, something added by r.js.
fs = require.nodeRequire('fs');
var file = fs.readFileSync(url, 'utf8');
if (file.indexOf('\uFEFF') === 0) {
file = file.substring(1);
}
or
Code:
input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
OR again
Code:
engine.loadData(url, function (text) {
if (typeof text === 'string') {
url can be a full file path from usb, hdd0
Therefore we can start building our minifilebrowser. We can now read any file from dev_hdd, dev_flash, dev_usb etc...!!!
So we can copy licenses form usb to injected backups on 4.83, transfer xregistry, saves, and all sorts of things.
We do lack directory function though but I have an idea for that.
In the end we also have
Code:
writeFile
return write(fileName, contents);
So we read files and then write them, hence our copy function. It should have file size limits but it can PROVE extremely handy.
For USB we can write a small program which we place in the root, and it will generate a .json file with all the files and folder, and we use engine.loadData() to read the JSON file, and then create a kind of webrowser in HTML. We use this for now since we can't scan directories.
There is an exception though, we can list of installed games, hence access their list ang images in our new WebMan.
We can do a ton of others things, download files, send requests, shutdown, restart, autodownload, read bdvd, parse PARAM.SFO and a heck more on it!! Endless possiblities. Many details have to be sorted bu the general idea has been given.