Move game settings apply to CommonHostInterface
This commit is contained in:
parent
28fdc5537f
commit
a7e4d55d02
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue