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); }
// Loads the emulator state given by a struct. public void LoadDetailedState(DetailedState state) { LoadState(state.ToBuffer()); }