yuzu qt: Disable the screensaver with SDL2

Disables the screen saver when a game boots using SDL2 so that it works
on any supported platform.
This commit is contained in:
lat9nq
2021-10-30 01:21:26 -04:00
parent 40c8a8c627
commit 604b6d1210
2 changed files with 23 additions and 1 deletions

View File

@ -299,6 +299,11 @@ if (YUZU_USE_BUNDLED_QT)
copy_yuzu_Qt5_deps(yuzu)
endif()
if (ENABLE_SDL2)
target_link_libraries(yuzu PRIVATE SDL2)
target_compile_definitions(yuzu PRIVATE HAVE_SDL2)
endif()
if (MSVC)
include(CopyYuzuSDLDeps)
include(CopyYuzuFFmpegDeps)