From 98a10c9874d28e2e52f7495549b80528372ffbfb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 3 Jan 2023 20:34:01 +0100 Subject: Generalise add_files_path to initial_paths(). --- src/lib/config.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/lib/config.h') diff --git a/src/lib/config.h b/src/lib/config.h index 2535bd82a..b6a1a535d 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -565,9 +565,7 @@ public: return _custom_languages; } - boost::optional add_files_path () const { - return _add_files_path; - } + boost::optional initial_path(std::string id) const; bool use_isdcf_name_by_default () const { return _use_isdcf_name_by_default; @@ -1128,10 +1126,7 @@ public: void add_custom_language (dcp::LanguageTag tag); - void set_add_files_path (boost::filesystem::path p) { - _add_files_path = p; - changed (); - } + void set_initial_path(std::string id, boost::filesystem::path path); void set_use_isdcf_name_by_default (bool use) { maybe_set (_use_isdcf_name_by_default, use); @@ -1403,7 +1398,7 @@ private: boost::optional _player_kdm_directory; boost::optional _audio_mapping; std::vector _custom_languages; - boost::optional _add_files_path; + std::map> _initial_paths; bool _use_isdcf_name_by_default; bool _write_kdms_to_disk; bool _email_kdms; -- cgit v1.2.3