diff options
Diffstat (limited to 'Source/Core/VideoBackends/Null/NullBackend.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Null/NullBackend.cpp | 41 |
1 files changed, 3 insertions, 38 deletions
diff --git a/Source/Core/VideoBackends/Null/NullBackend.cpp b/Source/Core/VideoBackends/Null/NullBackend.cpp index 7a1691b9d5..6d66a6920f 100644 --- a/Source/Core/VideoBackends/Null/NullBackend.cpp +++ b/Source/Core/VideoBackends/Null/NullBackend.cpp @@ -32,7 +32,7 @@ namespace Null { -static void InitBackendInfo() +void VideoBackend::InitBackendInfo() { g_Config.backend_info.APIType = API_NONE; g_Config.backend_info.bSupportsExclusiveFullscreen = true; @@ -50,39 +50,11 @@ static void InitBackendInfo() g_Config.backend_info.AAModes = {1}; } -void VideoBackend::ShowConfig(void* parent) -{ - InitBackendInfo(); - Host_ShowVideoConfig(parent, GetDisplayName(), "gfx_null"); -} - bool VideoBackend::Initialize(void* window_handle) { InitializeShared(); InitBackendInfo(); - // Load Configs - g_Config.Load(File::GetUserPath(D_CONFIG_IDX) + "GFX.ini"); - g_Config.GameIniLoad(); - g_Config.UpdateProjectionHack(); - g_Config.VerifyValidity(); - UpdateActiveConfig(); - - // Do our OSD callbacks - OSD::DoCallbacks(OSD::CallbackType::Initialization); - - // Initialize VideoCommon - CommandProcessor::Init(); - PixelEngine::Init(); - BPInit(); - Fifo::Init(); - OpcodeDecoder::Init(); - IndexGenerator::Init(); - VertexShaderManager::Init(); - PixelShaderManager::Init(); - VertexLoaderManager::Init(); - Host_Message(WM_USER_CREATE); - return true; } @@ -102,19 +74,12 @@ void VideoBackend::Video_Prepare() void VideoBackend::Shutdown() { - // Shutdown VideoCommon - Fifo::Shutdown(); - VertexLoaderManager::Shutdown(); - VertexShaderManager::Shutdown(); - PixelShaderManager::Shutdown(); - OpcodeDecoder::Shutdown(); - - // Do our OSD callbacks - OSD::DoCallbacks(OSD::CallbackType::Shutdown); + ShutdownShared(); } void VideoBackend::Video_Cleanup() { + CleanupShared(); PixelShaderCache::s_instance.reset(); VertexShaderCache::s_instance.reset(); GeometryShaderCache::s_instance.reset(); |
