ARCodeWidget: Take game ID and revision directly instead of through GameFile.

This commit is contained in:
Admiral H. Curtiss
2021-06-06 21:18:02 +02:00
parent 684d09b342
commit 1fbe56210a
4 changed files with 7 additions and 11 deletions

View File

@ -193,7 +193,7 @@ void CheatsManager::OnStateChanged(Core::State state)
if (m_ar_code)
m_ar_code->deleteLater();
m_ar_code = new ARCodeWidget(*m_game_file, false);
m_ar_code = new ARCodeWidget(m_game_file->GetGameID(), m_game_file->GetRevision(), false);
m_tab_widget->insertTab(0, m_ar_code, tr("AR Code"));
m_tab_widget->insertTab(1, new GeckoCodeWidget(*m_game_file, false), tr("Gecko Codes"));
}