Updated VCMI, fixed crash due to SDL_Image not supporting PCX format

This commit is contained in:
pelya
2011-07-01 15:32:20 +03:00
parent 8397b1579a
commit 877654a2d4
9 changed files with 38 additions and 22 deletions

View File

@@ -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) );