Refactor SystemBootParameters ownership
This commit is contained in:
@ -52,7 +52,7 @@ Log_SetChannel(QtHostInterface);
|
||||
|
||||
QtHostInterface::QtHostInterface(QObject* parent) : QObject(parent), CommonHostInterface()
|
||||
{
|
||||
qRegisterMetaType<std::shared_ptr<const SystemBootParameters>>();
|
||||
qRegisterMetaType<std::shared_ptr<SystemBootParameters>>();
|
||||
qRegisterMetaType<const GameListEntry*>();
|
||||
qRegisterMetaType<GPURenderer>();
|
||||
}
|
||||
@ -333,17 +333,17 @@ void QtHostInterface::setMainWindow(MainWindow* window)
|
||||
m_main_window = window;
|
||||
}
|
||||
|
||||
void QtHostInterface::bootSystem(std::shared_ptr<const SystemBootParameters> params)
|
||||
void QtHostInterface::bootSystem(std::shared_ptr<SystemBootParameters> params)
|
||||
{
|
||||
if (!isOnWorkerThread())
|
||||
{
|
||||
QMetaObject::invokeMethod(this, "bootSystem", Qt::QueuedConnection,
|
||||
Q_ARG(std::shared_ptr<const SystemBootParameters>, std::move(params)));
|
||||
Q_ARG(std::shared_ptr<SystemBootParameters>, std::move(params)));
|
||||
return;
|
||||
}
|
||||
|
||||
emit emulationStarting();
|
||||
if (!BootSystem(*params))
|
||||
if (!BootSystem(std::move(params)))
|
||||
return;
|
||||
|
||||
// force a frame to be drawn to repaint the window
|
||||
|
||||
Reference in New Issue
Block a user