Move game settings apply to CommonHostInterface

This commit is contained in:
Connor McLaughlin 2021-02-22 02:59:40 +10:00
parent 28fdc5537f
commit a7e4d55d02
5 changed files with 3 additions and 15 deletions

View File

@ -583,7 +583,6 @@ void AndroidHostInterface::OnRunningGameChanged(const std::string& path, CDImage
const std::string& game_title) const std::string& game_title)
{ {
CommonHostInterface::OnRunningGameChanged(path, image, game_code, game_title); CommonHostInterface::OnRunningGameChanged(path, image, game_code, game_title);
ApplySettings(true);
if (m_emulation_activity_object) if (m_emulation_activity_object)
{ {

View File

@ -186,16 +186,6 @@ void NoGUIHostInterface::ReleaseHostDisplay()
m_display->SetVSync(true); m_display->SetVSync(true);
} }
void NoGUIHostInterface::OnRunningGameChanged(const std::string& path, CDImage* image, const std::string& game_code,
const std::string& game_title)
{
CommonHostInterface::OnRunningGameChanged(path, image, game_code, game_title);
// TODO: Move to common
if (g_settings.apply_game_settings)
ApplySettings(true);
}
void NoGUIHostInterface::RequestExit() void NoGUIHostInterface::RequestExit()
{ {
m_quit_request = true; m_quit_request = true;

View File

@ -41,9 +41,6 @@ protected:
bool AcquireHostDisplay() override; bool AcquireHostDisplay() override;
void ReleaseHostDisplay() override; void ReleaseHostDisplay() override;
void OnRunningGameChanged(const std::string& path, CDImage* image, const std::string& game_code,
const std::string& game_title) override;
void RequestExit() override; void RequestExit() override;
virtual void PollAndUpdate() override; virtual void PollAndUpdate() override;

View File

@ -676,7 +676,6 @@ void QtHostInterface::OnRunningGameChanged(const std::string& path, CDImage* ima
const std::string& game_title) const std::string& game_title)
{ {
CommonHostInterface::OnRunningGameChanged(path, image, game_code, game_title); CommonHostInterface::OnRunningGameChanged(path, image, game_code, game_title);
applySettings(true);
if (!System::IsShutdown()) if (!System::IsShutdown())
{ {

View File

@ -911,6 +911,9 @@ void CommonHostInterface::OnRunningGameChanged(const std::string& path, CDImage*
{ {
HostInterface::OnRunningGameChanged(path, image, game_code, game_title); HostInterface::OnRunningGameChanged(path, image, game_code, game_title);
if (g_settings.apply_game_settings)
ApplySettings(true);
if (!System::IsShutdown()) if (!System::IsShutdown())
{ {
System::SetCheatList(nullptr); System::SetCheatList(nullptr);