Small fix to in-apk asset data unpacker

This commit is contained in:
pelya
2013-09-02 00:13:00 +03:00
parent 71d721dc15
commit 8a176ec40a
2 changed files with 4 additions and 4 deletions

View File

@@ -317,7 +317,7 @@ class DataDownloader extends Thread
stream1.close();
} catch( Exception e ) {
try {
stream1 = Parent.getAssets().open(url + "00");
stream1 = Parent.getAssets().open(url + "000");
stream1.close();
} catch( Exception ee ) {
Log.i("SDL", "Failed to open file in assets: " + url);
@@ -367,8 +367,8 @@ class DataDownloader extends Thread
while( true )
{
try {
// Make string ".zip00", ".zip01" etc for multipart archives
String url1 = url + String.format("%02d", multipartCounter);
// Make string ".zip000", ".zip001" etc for multipart archives
String url1 = url + String.format("%03d", multipartCounter);
CountingInputStream stream1 = new CountingInputStream(Parent.getAssets().open(url1), 8192);
while( stream1.skip(65536) > 0 ) { };
totalLen += stream1.getBytesRead();