mirror of https://github.com/mgba-emu/mgba.git
Qt: SaveConverter doesn't use the controller
This commit is contained in:
parent
4de9d5f16c
commit
f051b88f81
|
@ -27,9 +27,8 @@
|
||||||
|
|
||||||
using namespace QGBA;
|
using namespace QGBA;
|
||||||
|
|
||||||
SaveConverter::SaveConverter(std::shared_ptr<CoreController> controller, QWidget* parent)
|
SaveConverter::SaveConverter(QWidget* parent)
|
||||||
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint)
|
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint)
|
||||||
, m_controller(controller)
|
|
||||||
{
|
{
|
||||||
m_ui.setupUi(this);
|
m_ui.setupUi(this);
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ class SaveConverter : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SaveConverter(std::shared_ptr<CoreController> controller, QWidget* parent = nullptr);
|
SaveConverter(QWidget* parent = nullptr);
|
||||||
|
|
||||||
static mPlatform getStatePlatform(VFile*);
|
static mPlatform getStatePlatform(VFile*);
|
||||||
static QByteArray getState(VFile*, mPlatform);
|
static QByteArray getState(VFile*, mPlatform);
|
||||||
|
@ -100,7 +100,6 @@ private:
|
||||||
|
|
||||||
Ui::SaveConverter m_ui;
|
Ui::SaveConverter m_ui;
|
||||||
|
|
||||||
std::shared_ptr<CoreController> m_controller;
|
|
||||||
QList<AnnotatedSave> m_validSaves;
|
QList<AnnotatedSave> m_validSaves;
|
||||||
QList<AnnotatedSave> m_validOutputs;
|
QList<AnnotatedSave> m_validOutputs;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1283,7 +1283,7 @@ void Window::setupMenu(QMenuBar* menubar) {
|
||||||
|
|
||||||
m_actions.addSeparator("saves");
|
m_actions.addSeparator("saves");
|
||||||
|
|
||||||
m_actions.addAction(tr("Convert save game..."), "convertSave", openControllerTView<SaveConverter>(), "saves");
|
m_actions.addAction(tr("Convert save game..."), "convertSave", openTView<SaveConverter>(), "saves");
|
||||||
|
|
||||||
#ifdef M_CORE_GBA
|
#ifdef M_CORE_GBA
|
||||||
auto importShark = addGameAction(tr("Import GameShark Save..."), "importShark", this, &Window::importSharkport, "saves");
|
auto importShark = addGameAction(tr("Import GameShark Save..."), "importShark", this, &Window::importSharkport, "saves");
|
||||||
|
|
Loading…
Reference in New Issue