Hello, i am trying to make an application that updates game files and i am wondering how once you finished downloading the .pak file if you can then extract it from memory and phyically overwrite files. Is this possible?
I've tried to look at the file and pak headers for clues but i couldn't find anything.
The downloader
Code:
download.create(S+"clientupdate.servebeer.com/downloads/" +"stuff.pak");
How i loaded the download data to the pak (update).
Code:
update.loadMem(download.data(),download.size());
I then checked to make sure that the pak is downloaded+loaded correctly. The pak loaded fine.
Code:
D.text (0,0,S+"Files " + update.rootFiles());
Soo again, is there anyway to unpak this using code? Or, if there's an easier/other way to do this please tell me
Also, Esenthel, how did you make your autoupdater? Using FTP or (a lot of?) downloaders? Thanks!
If this doesn't work i'll just move to FTP so no biggy
Currently trying to work with the FTP instead of the downloader but if anything comes up i would like to know.