``Working'' forge unpackers. Needs a lot of hardening but good for alpha.
This commit is contained in:
parent
604162acdf
commit
8b0f8b9e59
21 changed files with 413 additions and 36 deletions
|
@ -113,7 +113,7 @@ void OneSixAssets::fetchXMLFinished()
|
|||
auto entry = metacache->resolveEntry("assets", keyStr, etagStr);
|
||||
if(entry->stale)
|
||||
{
|
||||
job->add(QUrl(prefix + keyStr), entry);
|
||||
job->addCacheDownload(QUrl(prefix + keyStr), entry);
|
||||
}
|
||||
}
|
||||
if(job->size())
|
||||
|
@ -130,7 +130,7 @@ void OneSixAssets::fetchXMLFinished()
|
|||
void OneSixAssets::start()
|
||||
{
|
||||
auto job = new DownloadJob("Assets index");
|
||||
job->add(QUrl ( "http://s3.amazonaws.com/Minecraft.Resources/" ));
|
||||
job->addByteArrayDownload(QUrl ( "http://s3.amazonaws.com/Minecraft.Resources/" ));
|
||||
connect ( job, SIGNAL(succeeded()), SLOT ( fetchXMLFinished() ) );
|
||||
index_job.reset ( job );
|
||||
job->start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue