private void TimerInit() { timer = new Timer(); m = new Mem("ePSXe"); cfg = CtrGameconfig.FromStream(new MemoryStream(m.ReadArray(m.ReadPSXUInt32(0x8008d2ac), 9604))); timer.Interval = 100; timer.Tick += GetGameConfig; propertyGrid2.SelectedObject = cfg; }
private void GetGameConfig(object sender, EventArgs e) { if (m == null) { timer.Stop(); return; } cfg = CtrGameconfig.FromStream(new MemoryStream(m.ReadArray(m.ReadPSXUInt32(0x8008d2ac), 9604))); propertyGrid2.SelectedObject = cfg; }