public void SetTimeSec(int timesec) { DetailedState state = SaveDetailedState(); state.Seconds = (uint)timesec; LoadDetailedState(state); }
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()); }
public NodeStateView(Lers.Core.NodeState state, DetailedState id = DetailedState.None) { this.state = state; this.Id = id; }
public MeasurePointStateView(Lers.Core.MeasurePointState state, DetailedState stateId = DetailedState.None) { this.Id = stateId; this.state = state; }