comparison java/src/com/aurellem/gb/Gb.java @ 80:ad6ebe886a21

worked out size of save files and reduced MAX_SAVE_SIZE to a more reasonable value
author Robert McIntyre <rlm@mit.edu>
date Thu, 08 Mar 2012 22:29:11 -0600
parents d7c38ce83421
children db8e0a563c8e
comparison
equal deleted inserted replaced
79:7ab48d728ee4 80:ad6ebe886a21
34 34
35 public static native long saveState(ByteBuffer buffer, int size); 35 public static native long saveState(ByteBuffer buffer, int size);
36 36
37 public static native void loadState(ByteBuffer buffer, int size); 37 public static native void loadState(ByteBuffer buffer, int size);
38 38
39 public static final int MAX_SAVE_SIZE = 90000; 39 public static final int MAX_SAVE_SIZE = 20000;
40 40
41 public static ByteBuffer createDirectByteBuffer(int capacity){ 41 public static ByteBuffer createDirectByteBuffer(int capacity){
42 byte[] zeros = new byte[capacity]; 42 byte[] zeros = new byte[capacity];
43 ByteBuffer buf = 43 ByteBuffer buf =
44 ByteBuffer.allocateDirect(capacity) 44 ByteBuffer.allocateDirect(capacity)