mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
GeckoCodeWidget: Take game ID and revision directly instead of through GameFile.
This commit is contained in:
parent
1fbe56210a
commit
414e0f4598
4 changed files with 14 additions and 12 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
#include "DolphinQt/Config/GeckoCodeWidget.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include <QCursor>
|
||||
#include <QFontDatabase>
|
||||
#include <QFormLayout>
|
||||
|
@ -28,9 +30,10 @@
|
|||
|
||||
#include "UICommon/GameFile.h"
|
||||
|
||||
GeckoCodeWidget::GeckoCodeWidget(const UICommon::GameFile& game, bool restart_required)
|
||||
: m_game(game), m_game_id(game.GetGameID()), m_gametdb_id(game.GetGameTDBID()),
|
||||
m_game_revision(game.GetRevision()), m_restart_required(restart_required)
|
||||
GeckoCodeWidget::GeckoCodeWidget(std::string game_id, std::string gametdb_id, u16 game_revision,
|
||||
bool restart_required)
|
||||
: m_game_id(std::move(game_id)), m_gametdb_id(std::move(gametdb_id)),
|
||||
m_game_revision(game_revision), m_restart_required(restart_required)
|
||||
{
|
||||
CreateWidgets();
|
||||
ConnectWidgets();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue