Adjusted for the web port
This commit is contained in:
@@ -25,6 +25,7 @@ import com.badlogic.gdx.utils.JsonReader;
|
||||
import com.badlogic.gdx.utils.JsonValue;
|
||||
import com.badlogic.gdx.utils.JsonWriter;
|
||||
import com.watabou.noosa.Game;
|
||||
import com.watabou.utils.DeviceCompat;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
@@ -484,7 +485,15 @@ public class Bundle {
|
||||
}
|
||||
|
||||
//useful to turn this off for save data debugging.
|
||||
private static final boolean compressByDefault = true;
|
||||
private static final boolean compressByDefault;
|
||||
|
||||
static {
|
||||
if (DeviceCompat.isWeb()) {
|
||||
compressByDefault = false;
|
||||
} else {
|
||||
compressByDefault = true;
|
||||
}
|
||||
}
|
||||
|
||||
private static final int GZIP_BUFFER = 1024*4; //4 kb
|
||||
|
||||
|
||||
Reference in New Issue
Block a user