From ec60fa3c9dab9e7fba8e0886f2b0758fd47ef704 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 30 Jan 2021 15:51:59 +1000 Subject: [PATCH] CommonHostInterface: Make fullscreen/exit functions public --- src/frontend-common/common_host_interface.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend-common/common_host_interface.h b/src/frontend-common/common_host_interface.h index e948dfbe0..3a17fc2f5 100644 --- a/src/frontend-common/common_host_interface.h +++ b/src/frontend-common/common_host_interface.h @@ -85,6 +85,12 @@ public: /// Returns the name of the frontend. virtual const char* GetFrontendName() const = 0; + /// Request the frontend to exit. + virtual void RequestExit() = 0; + + virtual bool IsFullscreen() const; + virtual bool SetFullscreen(bool enabled); + virtual bool Initialize() override; virtual void Shutdown() override; @@ -246,18 +252,12 @@ protected: CommonHostInterface(); ~CommonHostInterface(); - /// Request the frontend to exit. - virtual void RequestExit() = 0; - /// Registers frontend-specific hotkeys. virtual void RegisterHotkeys(); /// Executes per-frame tasks such as controller polling. virtual void PollAndUpdate(); - virtual bool IsFullscreen() const; - virtual bool SetFullscreen(bool enabled); - virtual std::unique_ptr CreateAudioStream(AudioBackend backend) override; virtual s32 GetAudioOutputVolume() const override; virtual void UpdateControllerInterface();