|
|
|
|
@ -88,10 +88,10 @@ public:
|
|
|
|
|
/// Displays a loading screen with the logo, rendered with ImGui. Use when executing possibly-time-consuming tasks
|
|
|
|
|
/// such as compiling shaders when starting up.
|
|
|
|
|
virtual void DisplayLoadingScreen(const char* message, int progress_min = -1, int progress_max = -1,
|
|
|
|
|
int progress_value = -1);
|
|
|
|
|
int progress_value = -1) = 0;
|
|
|
|
|
|
|
|
|
|
/// Retrieves information about specified game from game list.
|
|
|
|
|
virtual void GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title);
|
|
|
|
|
virtual void GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title) = 0;
|
|
|
|
|
|
|
|
|
|
/// Returns the directory where per-game memory cards will be saved.
|
|
|
|
|
virtual std::string GetMemoryCardDirectory() const;
|
|
|
|
|
@ -147,11 +147,11 @@ public:
|
|
|
|
|
virtual std::unique_ptr<ByteStream> OpenPackageFile(const char* path, u32 flags) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void OnRunningGameChanged(const std::string& path, CDImage* image, const std::string& game_code,
|
|
|
|
|
const std::string& game_title);
|
|
|
|
|
virtual void OnSystemPerformanceCountersUpdated();
|
|
|
|
|
const std::string& game_title) = 0;
|
|
|
|
|
virtual void OnSystemPerformanceCountersUpdated() = 0;
|
|
|
|
|
|
|
|
|
|
/// Called when the display is invalidated (e.g. a state is loaded).
|
|
|
|
|
virtual void OnDisplayInvalidated();
|
|
|
|
|
virtual void OnDisplayInvalidated() = 0;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual bool AcquireHostDisplay() = 0;
|
|
|
|
|
@ -159,11 +159,10 @@ protected:
|
|
|
|
|
virtual std::unique_ptr<AudioStream> CreateAudioStream(AudioBackend backend) = 0;
|
|
|
|
|
virtual s32 GetAudioOutputVolume() const;
|
|
|
|
|
|
|
|
|
|
virtual void OnSystemCreated();
|
|
|
|
|
virtual void OnSystemPaused(bool paused);
|
|
|
|
|
virtual void OnSystemDestroyed();
|
|
|
|
|
virtual void OnSystemStateSaved(bool global, s32 slot);
|
|
|
|
|
virtual void OnControllerTypeChanged(u32 slot);
|
|
|
|
|
virtual void OnSystemCreated() = 0;
|
|
|
|
|
virtual void OnSystemPaused(bool paused) = 0;
|
|
|
|
|
virtual void OnSystemDestroyed() = 0;
|
|
|
|
|
virtual void OnControllerTypeChanged(u32 slot) = 0;
|
|
|
|
|
|
|
|
|
|
/// Restores all settings to defaults.
|
|
|
|
|
virtual void SetDefaultSettings(SettingsInterface& si);
|
|
|
|
|
@ -184,7 +183,7 @@ protected:
|
|
|
|
|
virtual void RecreateSystem();
|
|
|
|
|
|
|
|
|
|
/// Enables "relative" mouse mode, locking the cursor position and returning relative coordinates.
|
|
|
|
|
virtual void SetMouseMode(bool relative, bool hide_cursor);
|
|
|
|
|
virtual void SetMouseMode(bool relative, bool hide_cursor) = 0;
|
|
|
|
|
|
|
|
|
|
/// Call when host display size changes, use with "match display" aspect ratio setting.
|
|
|
|
|
virtual void OnHostDisplayResized();
|
|
|
|
|
|