Mercurial > vba-clojure
comparison java/src/com/aurellem/gb/Gb.java @ 58:431ee7ee12de
savestate buffer was too small
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 07 Mar 2012 15:17:19 -0600 |
parents | ba4fdfb722ed |
children | 3ce48d803e74 |
comparison
equal
deleted
inserted
replaced
57:b0473c3a0df0 | 58:431ee7ee12de |
---|---|
33 | 33 |
34 public static native void saveState(ByteBuffer buffer, int size); | 34 public static native void saveState(ByteBuffer buffer, int size); |
35 | 35 |
36 public static native void loadState(ByteBuffer buffer, int size); | 36 public static native void loadState(ByteBuffer buffer, int size); |
37 | 37 |
38 public static final int SAVE_SIZE = 9000; | 38 public static final int SAVE_SIZE = 90000; |
39 | 39 |
40 public static ByteBuffer saveState(){ | 40 public static ByteBuffer saveState(){ |
41 ByteBuffer buf = | 41 ByteBuffer buf = |
42 ByteBuffer.allocateDirect(SAVE_SIZE) | 42 ByteBuffer.allocateDirect(SAVE_SIZE) |
43 .order(ByteOrder.nativeOrder()); | 43 .order(ByteOrder.nativeOrder()); |