Updated VCMI, fixed crash due to SDL_Image not supporting PCX format
This commit is contained in:
@@ -306,19 +306,12 @@ class DataDownloader extends Thread
|
||||
}
|
||||
if( FileInAssets )
|
||||
{
|
||||
System.out.println("Unpacking from assets: '" + url + "'");
|
||||
try {
|
||||
System.out.println("Unpacking from assets: '" + url + "' 1");
|
||||
stream = new CountingInputStream(Parent.getAssets().open(url), 8192);
|
||||
System.out.println("Unpacking from assets: '" + url + "' 2");
|
||||
while( stream.skip(65536) > 0 ) { };
|
||||
System.out.println("Unpacking from assets: '" + url + "' 3");
|
||||
totalLen = stream.getBytesRead();
|
||||
System.out.println("Unpacking from assets: '" + url + "' 4 totalLen = " + String.valueOf(totalLen));
|
||||
stream.close();
|
||||
System.out.println("Unpacking from assets: '" + url + "' 5");
|
||||
stream = new CountingInputStream(Parent.getAssets().open(url), 8192);
|
||||
System.out.println("Unpacking from assets: '" + url + "' 6");
|
||||
} catch( IOException e ) {
|
||||
System.out.println("Unpacking from assets '" + url + "' - error: " + e.toString());
|
||||
Status.setText( res.getString(R.string.error_dl_from, url) );
|
||||
|
||||
Reference in New Issue
Block a user