summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2022-12-03 11:23:25 -0800
committerGravatar GitHub2022-12-03 11:23:25 -0800
commitf77cc6c41272265b08247aa1e2614c050acccc67 (patch)
tree8970dae5c9fce66f051c8bc0fc7faaa4592cadee /src/yuzu_cmd/yuzu.cpp
parentMerge pull request #9300 from ameerj/pch (diff)
parentvideo_core: add null backend (diff)
downloadyuzu-f77cc6c41272265b08247aa1e2614c050acccc67.tar.gz
yuzu-f77cc6c41272265b08247aa1e2614c050acccc67.tar.xz
yuzu-f77cc6c41272265b08247aa1e2614c050acccc67.zip
Merge pull request #9344 from liamwhite/null
video_core: add null backend
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index dfe5a30ea..a80649703 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -34,6 +34,7 @@
34#include "yuzu_cmd/config.h" 34#include "yuzu_cmd/config.h"
35#include "yuzu_cmd/emu_window/emu_window_sdl2.h" 35#include "yuzu_cmd/emu_window/emu_window_sdl2.h"
36#include "yuzu_cmd/emu_window/emu_window_sdl2_gl.h" 36#include "yuzu_cmd/emu_window/emu_window_sdl2_gl.h"
37#include "yuzu_cmd/emu_window/emu_window_sdl2_null.h"
37#include "yuzu_cmd/emu_window/emu_window_sdl2_vk.h" 38#include "yuzu_cmd/emu_window/emu_window_sdl2_vk.h"
38 39
39#ifdef _WIN32 40#ifdef _WIN32
@@ -317,6 +318,9 @@ int main(int argc, char** argv) {
317 case Settings::RendererBackend::Vulkan: 318 case Settings::RendererBackend::Vulkan:
318 emu_window = std::make_unique<EmuWindow_SDL2_VK>(&input_subsystem, system, fullscreen); 319 emu_window = std::make_unique<EmuWindow_SDL2_VK>(&input_subsystem, system, fullscreen);
319 break; 320 break;
321 case Settings::RendererBackend::Null:
322 emu_window = std::make_unique<EmuWindow_SDL2_Null>(&input_subsystem, system, fullscreen);
323 break;
320 } 324 }
321 325
322 system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>()); 326 system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>());