mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
VideoBackends: Merge ShowConfig functions.
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
#include "Common/Event.h"
|
||||
#include "Common/Flag.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Host.h"
|
||||
#include "VideoCommon/AsyncRequests.h"
|
||||
#include "VideoCommon/BPStructs.h"
|
||||
@ -157,6 +158,14 @@ u16 VideoBackendBase::Video_GetBoundingBox(int index)
|
||||
return result;
|
||||
}
|
||||
|
||||
void VideoBackendBase::ShowConfig(void* parent_handle)
|
||||
{
|
||||
if (!m_initialized)
|
||||
InitBackendInfo();
|
||||
|
||||
Host_ShowVideoConfig(parent_handle, GetDisplayName(), GetConfigName());
|
||||
}
|
||||
|
||||
void VideoBackendBase::InitializeShared()
|
||||
{
|
||||
memset(&g_main_cp_state, 0, sizeof(g_main_cp_state));
|
||||
|
@ -75,7 +75,8 @@ public:
|
||||
virtual std::string GetDisplayName() const { return GetName(); }
|
||||
virtual std::string GetConfigName() const = 0;
|
||||
|
||||
virtual void ShowConfig(void*) = 0;
|
||||
void ShowConfig(void*);
|
||||
virtual void InitBackendInfo() = 0;
|
||||
|
||||
virtual void Video_Prepare() = 0;
|
||||
void Video_ExitLoop();
|
||||
|
Reference in New Issue
Block a user