mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
VideoSW: Use more VideoCommon
Now we require lots of empty functions, but this removes by far more duplicated code.
This commit is contained in:
@ -12,7 +12,7 @@ namespace MMIO { class Mapping; }
|
||||
namespace SW
|
||||
{
|
||||
|
||||
class VideoSoftware : public VideoBackend
|
||||
class VideoSoftware : public VideoBackendHardware
|
||||
{
|
||||
bool Initialize(void *window_handle) override;
|
||||
void Shutdown() override;
|
||||
@ -20,42 +20,12 @@ class VideoSoftware : public VideoBackend
|
||||
std::string GetName() const override;
|
||||
std::string GetDisplayName() const override;
|
||||
|
||||
void EmuStateChange(EMUSTATE_CHANGE newState) override;
|
||||
|
||||
void RunLoop(bool enable) override;
|
||||
|
||||
void ShowConfig(void* parent) override;
|
||||
|
||||
void Video_Prepare() override;
|
||||
void Video_Cleanup() override;
|
||||
|
||||
void Video_EnterLoop() override;
|
||||
void Video_ExitLoop() override;
|
||||
void Video_BeginField(u32, u32, u32, u32) override;
|
||||
void Video_EndField() override;
|
||||
|
||||
u32 Video_AccessEFB(EFBAccessType, u32, u32, u32) override;
|
||||
u32 Video_GetQueryResult(PerfQueryType type) override;
|
||||
u16 Video_GetBoundingBox(int index) override;
|
||||
|
||||
void Video_AddMessage(const std::string& msg, unsigned int milliseconds) override;
|
||||
void Video_ClearMessages() override;
|
||||
bool Video_Screenshot(const std::string& filename) override;
|
||||
|
||||
void Video_SetRendering(bool bEnabled) override;
|
||||
|
||||
void Video_GatherPipeBursted() override;
|
||||
int Video_Sync(int ticks) override { return 0; }
|
||||
|
||||
void RegisterCPMMIO(MMIO::Mapping* mmio, u32 base) override;
|
||||
void ShowConfig(void* parent) override;
|
||||
|
||||
unsigned int PeekMessages() override;
|
||||
|
||||
void PauseAndLock(bool doLock, bool unpauseOnUnlock=true) override;
|
||||
void DoState(PointerWrap &p) override;
|
||||
|
||||
public:
|
||||
void CheckInvalidState() override;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user