void EC2_listMouseEnter(object sender, EventArgs e) { if (false && AutoRefreshEC.Checked) { EC2_list.Focus(); } }
void GameAccessTick(object sender, EventArgs e) { try { SeekPCSX2(); int address___ = PTR(PTR(0x20341708, 0x2000014C), 0x1fffffd0); Ingame_label.Text = ASCIIString(ReadBytes(address___, 3)) == "BAR" ?"Animation found at " + address___.ToString("X8"):"Searching animation..."; address___ = SearchBytes(mset_stream, ReadBytes(address___ + 0x100, 0x300)) - 0x100; int ec_loc = ReadInteger4(address___ + 0x28); int ec_len = ReadInteger4(address___ + 0x2C); WriteBytes(0x21c93a00, Combine(SubArray(mset_stream, address___ + ec_loc, ec_len), new byte[0x100]), ec_len + 0x100); if (ReadInteger(PTR(0x20341708, 0x20000150), 4) == 0 || ReadInteger(PTR(0x20341708, 0x20000150), 4) - ReadInteger(PTR(0x20341708, 0x2000014C), 4) + 0x30 == ec_loc) { WriteIntegerRAM(PTR(0x20341708, 0x20000150), 0x1c93a00, 4); } int line = SearchBytes(SubArray(mset_stream, 0, 16 + 16 * ReadInteger4(4)), BitConverter.GetBytes(address___)); while (false && ReadInteger4(line + 4) == 0) { int old_line = line; WriteInteger4(old_line, 0); line = SearchBytes(SubArray(mset_stream, 0, 16 + 16 * ReadInteger4(4)), BitConverter.GetBytes(address___)); WriteInteger4(old_line, address___); } if (line > -1) { if (moves_list.SelectedIndex != ((line - 24) / 16) && AutoRefreshIndex.Checked) { moves_list.SelectedIndex = ((line - 24) / 16); } } } catch { } try { float max_frame = GetMaxFrame(location); float start_frame = BitConverter.ToSingle(ReadBytes(PTR(0x20341708, 0x20000170), 4), 0); time_label_middle.Text = start_frame.ToString(); float ratio = start_frame / max_frame; FrameRectangle = new Rectangle(0, 0, (int)(300 * ratio), paneltime_ingame.Height); paneltime_ingame.Invalidate(); if (AutoRefreshEC.Checked) { for (int i = 0; i < EC1_list.Items.Count; i++) { if (start_frame >= int.Parse(EC1_list.Items[i].Text) & (EC1_list.Items[i].SubItems[1].Text == "-1" || start_frame <= int.Parse(EC1_list.Items[i].SubItems[1].Text))) { EC1_list.Items[i].Selected = true; EC1_list.EnsureVisible(i); } else { EC1_list.Items[i].Selected = false; } } for (int i = 0; i < EC2_list.Items.Count; i++) { if (start_frame >= int.Parse(EC2_list.Items[i].Text) & (EC2_list.Items[i].SubItems[1].Text == "Auto" || start_frame <= int.Parse(EC2_list.Items[i].SubItems[1].Text))) { EC2_list.Items[i].Selected = true; EC2_list.EnsureVisible(i); } else { EC2_list.Items[i].Selected = false; } } } } catch { } }