diff options
Diffstat (limited to 'src/yuzu_tester')
| -rw-r--r-- | src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp | 15 | ||||
| -rw-r--r-- | src/yuzu_tester/emu_window/emu_window_sdl2_hide.h | 7 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp index e7fe8decf..f2cc4a797 100644 --- a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp +++ b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp | |||
| @@ -5,10 +5,15 @@ | |||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <cstdlib> | 6 | #include <cstdlib> |
| 7 | #include <string> | 7 | #include <string> |
| 8 | |||
| 9 | #include <fmt/format.h> | ||
| 10 | |||
| 8 | #define SDL_MAIN_HANDLED | 11 | #define SDL_MAIN_HANDLED |
| 9 | #include <SDL.h> | 12 | #include <SDL.h> |
| 10 | #include <fmt/format.h> | 13 | |
| 11 | #include <glad/glad.h> | 14 | #include <glad/glad.h> |
| 15 | |||
| 16 | #include "common/assert.h" | ||
| 12 | #include "common/logging/log.h" | 17 | #include "common/logging/log.h" |
| 13 | #include "common/scm_rev.h" | 18 | #include "common/scm_rev.h" |
| 14 | #include "core/settings.h" | 19 | #include "core/settings.h" |
| @@ -120,3 +125,11 @@ void EmuWindow_SDL2_Hide::MakeCurrent() { | |||
| 120 | void EmuWindow_SDL2_Hide::DoneCurrent() { | 125 | void EmuWindow_SDL2_Hide::DoneCurrent() { |
| 121 | SDL_GL_MakeCurrent(render_window, nullptr); | 126 | SDL_GL_MakeCurrent(render_window, nullptr); |
| 122 | } | 127 | } |
| 128 | |||
| 129 | bool EmuWindow_SDL2_Hide::IsShown() const { | ||
| 130 | return false; | ||
| 131 | } | ||
| 132 | |||
| 133 | void EmuWindow_SDL2_Hide::RetrieveVulkanHandlers(void*, void*, void*) const { | ||
| 134 | UNREACHABLE(); | ||
| 135 | } | ||
diff --git a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.h b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.h index 1a8953c75..c7fccc002 100644 --- a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.h +++ b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.h | |||
| @@ -25,6 +25,13 @@ public: | |||
| 25 | /// Releases the GL context from the caller thread | 25 | /// Releases the GL context from the caller thread |
| 26 | void DoneCurrent() override; | 26 | void DoneCurrent() override; |
| 27 | 27 | ||
| 28 | /// Whether the screen is being shown or not. | ||
| 29 | bool IsShown() const override; | ||
| 30 | |||
| 31 | /// Retrieves Vulkan specific handlers from the window | ||
| 32 | void RetrieveVulkanHandlers(void* get_instance_proc_addr, void* instance, | ||
| 33 | void* surface) const override; | ||
| 34 | |||
| 28 | /// Whether the window is still open, and a close request hasn't yet been sent | 35 | /// Whether the window is still open, and a close request hasn't yet been sent |
| 29 | bool IsOpen() const; | 36 | bool IsOpen() const; |
| 30 | 37 | ||