예제 #1
0
    public static void DetailedState()
    {
        Red gb = new Red();

        Test("gambatte-detailed-state", () => {
            gb.RunUntil("DisplayTitleScreen");
            byte[] state           = gb.SaveState();
            DetailedState detailed = new DetailedState(state);
            byte[] ret             = detailed.ToBuffer();

            if (state.Length != ret.Length)
            {
                return("length=" + state.Length, "length=" + ret.Length);
            }
예제 #2
0
 // Loads the emulator state given by a struct.
 public void LoadDetailedState(DetailedState state)
 {
     LoadState(state.ToBuffer());
 }