private void UpdateGui() { string version = m_connected ? PCSX2IPC.Version(m_ipc) : ""; string title = m_connected ? PCSX2IPC.GetGameTitle(m_ipc) : ""; string titleId = m_connected ? PCSX2IPC.GetGameID(m_ipc) : ""; string gameVersion = m_connected ? PCSX2IPC.GetGameVersion(m_ipc) : ""; string hash = m_connected ? PCSX2IPC.GetGameUUID(m_ipc) : ""; Dispatcher.BeginInvoke((Action)(() => { if (m_connected) { infoLabel.Content = $"Version: {version}\n"; infoLabel.Content += $"Title: {title}\n"; infoLabel.Content += $"TitleId: {titleId}\n"; infoLabel.Content += $"Game Version: {gameVersion}\n"; infoLabel.Content += $"Hash: {hash}\n"; infoLabel.Content += $"Emu Status: {m_emuStatus}\n"; } statusLabel.Content = $"KAMI Status: {m_status}"; })); }