public static void Reset() { Misc.RunInMainThread(() => { FrameManager.Ins.Reset(); PaletteManager.Reset(); PatternManager.Reset(); Atlas.Reset(); ScriptManager.Ins.Reset(); GC.Collect(); }); Thread.Sleep(100); }
public static void Init(VideoInfo info) { PaletteManager.Init(); PatternManager.Init(); Atlas.Init(); FrameManager.Init(info); Converter.Init(info); ScriptManager.Init(); Emulator.Ins.engine.onStart += OnStart; Emulator.Ins.engine.onEnd += OnEnd; Emulator.Ins.engine.onStartFrame += OnStartFrame; Emulator.Ins.engine.onEndFrame += OnEndFrame; Emulator.Ins.engine.onResume += OnResume; }