System: Add path/image to game change notification

This commit is contained in:
Connor McLaughlin
2021-02-21 16:53:14 +10:00
parent 77090865c1
commit 7501e89b7a
11 changed files with 30 additions and 17 deletions

View File

@ -701,9 +701,10 @@ void QtHostInterface::OnSystemPerformanceCountersUpdated()
System::GetAverageFrameTime(), System::GetWorstFrameTime());
}
void QtHostInterface::OnRunningGameChanged()
void QtHostInterface::OnRunningGameChanged(const std::string& path, CDImage* image, const std::string& game_code,
const std::string& game_title)
{
CommonHostInterface::OnRunningGameChanged();
CommonHostInterface::OnRunningGameChanged(path, image, game_code, game_title);
applySettings(true);
if (!System::IsShutdown())

View File

@ -2,8 +2,8 @@
#include "common/event.h"
#include "core/host_interface.h"
#include "core/system.h"
#include "qtutils.h"
#include "frontend-common/common_host_interface.h"
#include "qtutils.h"
#include <QtCore/QByteArray>
#include <QtCore/QObject>
#include <QtCore/QSettings>
@ -202,7 +202,8 @@ protected:
void OnSystemPaused(bool paused) override;
void OnSystemDestroyed() override;
void OnSystemPerformanceCountersUpdated() override;
void OnRunningGameChanged() override;
void OnRunningGameChanged(const std::string& path, CDImage* image, const std::string& game_code,
const std::string& game_title) override;
void OnSystemStateSaved(bool global, s32 slot) override;
void LoadSettings() override;