Fixed Google Play Game Services bindings, added more Java keycodes

This commit is contained in:
Sergii Pylypenko
2015-03-12 22:51:24 +02:00
parent 16ce2c32aa
commit bd2c959a17
9 changed files with 90 additions and 33 deletions

View File

@@ -141,7 +141,7 @@ public class CloudSave implements GameHelper.GameHelperListener {
if( crapshot == null )
return false;
crapshot.writeBytes(readFile(filename));
crapshot.getSnapshotContents().writeBytes(readFile(filename));
Bitmap bmp = BitmapFactory.decodeFile(imageFile);
while( bmp != null && bmp.getByteCount() > Games.Snapshots.getMaxCoverImageSize(getApiClient()) )
@@ -212,7 +212,7 @@ public class CloudSave implements GameHelper.GameHelperListener {
return false;
}
boolean written = writeFile(filename, result.getSnapshot().readFully());
boolean written = writeFile(filename, result.getSnapshot().getSnapshotContents().readFully());
Log.i("SDL", "CloudSave: load: status: " + written);
return written;
}