From 40c62b43a29732bc795a7b7b990b5bec4688802f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 12 Oct 2022 02:38:08 +0200 Subject: Add --use-system-mpv-config --- include/mpv.hpp | 2 +- src/main.cpp | 6 +++++- src/mpv.cpp | 12 +++++++++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/include/mpv.hpp b/include/mpv.hpp index 6f3b559..b4e22b3 100644 --- a/include/mpv.hpp +++ b/include/mpv.hpp @@ -11,7 +11,7 @@ public: Mpv() = default; ~Mpv(); - bool create(); + bool create(bool use_system_mpv_config); bool destroy(); bool load_file(const char *path); diff --git a/src/main.cpp b/src/main.cpp index f611dc0..016a392 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -300,6 +300,7 @@ private: // X compositor bool cursor_wrap = true; bool free_camera = false; bool reduce_flicker = false; + bool use_system_mpv_config = false; double reduce_flicker_counter = 0.0; GLuint arrow_image_texture_id = 0; @@ -419,6 +420,7 @@ static void usage() { fprintf(stderr, " --free-camera If this option is set, then the camera wont follow your position\n"); fprintf(stderr, " --follow-focused If this option is set, then the selected window will be the focused window. vr-video-player will automatically update when the focused window changes. Either this option, --video or window_id should be used\n"); fprintf(stderr, " --video