mirror of
https://github.com/libretro/mgba.git
synced 2024-11-27 02:00:42 +00:00
Qt: SaveConverter doesn't use the controller
This commit is contained in:
parent
4de9d5f16c
commit
f051b88f81
@ -27,9 +27,8 @@
|
||||
|
||||
using namespace QGBA;
|
||||
|
||||
SaveConverter::SaveConverter(std::shared_ptr<CoreController> controller, QWidget* parent)
|
||||
SaveConverter::SaveConverter(QWidget* parent)
|
||||
: QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint)
|
||||
, m_controller(controller)
|
||||
{
|
||||
m_ui.setupUi(this);
|
||||
|
||||
|
@ -31,7 +31,7 @@ class SaveConverter : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SaveConverter(std::shared_ptr<CoreController> controller, QWidget* parent = nullptr);
|
||||
SaveConverter(QWidget* parent = nullptr);
|
||||
|
||||
static mPlatform getStatePlatform(VFile*);
|
||||
static QByteArray getState(VFile*, mPlatform);
|
||||
@ -100,7 +100,6 @@ private:
|
||||
|
||||
Ui::SaveConverter m_ui;
|
||||
|
||||
std::shared_ptr<CoreController> m_controller;
|
||||
QList<AnnotatedSave> m_validSaves;
|
||||
QList<AnnotatedSave> m_validOutputs;
|
||||
};
|
||||
|
@ -1283,7 +1283,7 @@ void Window::setupMenu(QMenuBar* menubar) {
|
||||
|
||||
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
|
||||
auto importShark = addGameAction(tr("Import GameShark Save..."), "importShark", this, &Window::importSharkport, "saves");
|
||||
|
Loading…
Reference in New Issue
Block a user