Capture Desktop images on Windows

This commit is contained in:
loki
2020-01-09 12:12:18 +01:00
parent 77fe9727c5
commit d79f0dc73b
6 changed files with 377 additions and 139 deletions

View File

@@ -426,10 +426,10 @@ input_t input() {
std::filesystem::path mouse_path { "sunshine_mouse" };
std::filesystem::path gamepad_path { "sunshine_gamepad" };
if(std::filesystem::exists(mouse_path)) {
if(std::filesystem::is_symlink(mouse_path)) {
std::filesystem::remove(mouse_path);
}
if(std::filesystem::exists(gamepad_path)) {
if(std::filesystem::is_symlink(gamepad_path)) {
std::filesystem::remove(gamepad_path);
}