HostInterface: Move setting update logic to base class

This commit is contained in:
Connor McLaughlin
2020-01-24 14:51:52 +10:00
parent 82563d94f4
commit f2231d6669
4 changed files with 90 additions and 79 deletions

View File

@ -4,6 +4,7 @@
#include "types.h"
#include <chrono>
#include <deque>
#include <functional>
#include <memory>
#include <mutex>
#include <optional>
@ -85,6 +86,7 @@ protected:
float duration;
};
virtual void SwitchGPURenderer();
virtual void OnPerformanceCountersUpdated();
virtual void OnRunningGameChanged();
@ -102,6 +104,8 @@ protected:
/// Returns the path of the game database cache file.
std::string GetGameListDatabaseFileName() const;
void UpdateSettings(const std::function<void()>& apply_callback);
void RunFrame();
/// Throttles the system, i.e. sleeps until it's time to execute the next frame.