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

@ -16,11 +16,6 @@ namespace ActionReplay
struct ARCode;
}
namespace UICommon
{
class GameFile;
}
class CheatWarningWidget;
class QLabel;
class QListWidget;
@ -31,7 +26,7 @@ class ARCodeWidget : public QWidget
{
Q_OBJECT
public:
explicit ARCodeWidget(const UICommon::GameFile& game, bool restart_required = true);
explicit ARCodeWidget(std::string game_id, u16 game_revision, bool restart_required = true);
~ARCodeWidget() override;
void AddCode(ActionReplay::ARCode code);
@ -56,7 +51,6 @@ private:
void OnListReordered();
const UICommon::GameFile& m_game;
std::string m_game_id;
u16 m_game_revision;