mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
VideoBackends: Combine Initialize/Prepare and Cleanup/Shutdown methods
Also allows the work previously done in Prepare to return a failure status.
This commit is contained in:
parent
04027a7da7
commit
d96e8c9d76
20 changed files with 58 additions and 160 deletions
|
@ -45,12 +45,8 @@ public:
|
|||
void ShowConfig(void*);
|
||||
virtual void InitBackendInfo() = 0;
|
||||
|
||||
virtual void Video_Prepare() = 0;
|
||||
void Video_ExitLoop();
|
||||
|
||||
void Video_CleanupShared(); // called from gl/d3d thread
|
||||
virtual void Video_Cleanup() = 0;
|
||||
|
||||
void Video_BeginField(u32, u32, u32, u32, u64);
|
||||
|
||||
u32 Video_AccessEFB(EFBAccessType, u32, u32, u32);
|
||||
|
@ -70,7 +66,6 @@ public:
|
|||
protected:
|
||||
void InitializeShared();
|
||||
void ShutdownShared();
|
||||
void CleanupShared();
|
||||
|
||||
bool m_initialized = false;
|
||||
bool m_invalid = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue