X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fconfig.h;h=60e85c5f362dc1bfa2c0d8983458c758290342ef;hp=fc5d820f93f663d677c57b080f4052e646e1b3fa;hb=8414829693900c3d6362a4f15d677bb7e1462c3e;hpb=ed2731617eb2c3db15cb3c57e880ecd39c375751 diff --git a/src/lib/config.h b/src/lib/config.h index fc5d820f9..60e85c5f3 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -76,6 +76,7 @@ public: SOUND, SOUND_OUTPUT, INTERFACE_COMPLEXITY, + PLAYER_DCP_DIRECTORY, OTHER }; @@ -485,6 +486,10 @@ public: return _player_dcp_directory; } + boost::optional player_kdm_directory () const { + return _player_kdm_directory; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -908,7 +913,7 @@ public: } void set_player_dcp_directory (boost::filesystem::path p) { - maybe_set (_player_dcp_directory, p); + maybe_set (_player_dcp_directory, p, PLAYER_DCP_DIRECTORY); } void unset_player_dcp_directory () { @@ -916,6 +921,18 @@ public: return; } _player_dcp_directory = boost::none; + changed (PLAYER_DCP_DIRECTORY); + } + + void set_player_kdm_directory (boost::filesystem::path p) { + maybe_set (_player_kdm_directory, p); + } + + void unset_player_kdm_directory () { + if (!_player_kdm_directory) { + return; + } + _player_kdm_directory = boost::none; changed (); } @@ -1110,6 +1127,7 @@ private: for playback. */ boost::optional _player_dcp_directory; + boost::optional _player_kdm_directory; static int const _current_version;