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

@ -597,9 +597,10 @@ void AndroidHostInterface::OnSystemDestroyed()
SetVibration(false);
}
void AndroidHostInterface::OnRunningGameChanged()
void AndroidHostInterface::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 (m_emulation_activity_object)

View File

@ -85,7 +85,8 @@ protected:
void OnSystemPaused(bool paused) override;
void OnSystemDestroyed() override;
void OnRunningGameChanged() override;
void OnRunningGameChanged(const std::string& path, CDImage* image, const std::string& game_code,
const std::string& game_title) override;
private:
void EmulationThreadLoop(JNIEnv* env);