mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 05:15:46 -04:00
System: Add path/image to game change notification
This commit is contained in:
@ -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())
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user