mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-13 09:38:43 +01:00
RMG-Input: use ROM header and settings in CorePluginsOpenROMConfig()
This commit is contained in:
1 parent
7b4b8c5c90
commit
b05b0faeea
5 files changed
+21
-11
No files matched your search
@@ -20,7 +20,7 @@ Q_DECLARE_METATYPE(SDLDevice);
|
||||
|
||||
using namespace UserInterface;
|
||||
|
||||
MainDialog::MainDialog(QWidget* parent, Thread::SDLThread* sdlThread, bool romConfig) : QDialog(parent)
|
||||
MainDialog::MainDialog(QWidget* parent, Thread::SDLThread* sdlThread, bool romConfig, CoreRomHeader romHeader, CoreRomSettings romSettings) : QDialog(parent)
|
||||
{
|
||||
qRegisterMetaType<SDLDevice>();
|
||||
|
||||
@@ -45,7 +45,7 @@ MainDialog::MainDialog(QWidget* parent, Thread::SDLThread* sdlThread, bool romCo
|
||||
for (int i = 0; i < this->tabWidget->count(); i++)
|
||||
{
|
||||
Widget::ControllerWidget* widget = new Widget::ControllerWidget(this, this->eventFilter);
|
||||
widget->SetOnlyLoadGameProfile(romConfig);
|
||||
widget->SetOnlyLoadGameProfile(romConfig, romHeader, romSettings);
|
||||
widget->SetSettingsSection("Player " + QString::number(i + 1), "Rosalie's Mupen GUI - Input Plugin Profile " + QString::number(i));
|
||||
widget->LoadSettings();
|
||||
this->tabWidget->widget(i)->layout()->addWidget(widget);
|
||||
|
||||
Reference in new issue
Block a user