From 0b4bffff846efe967110477797218c170ffb3166 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 Aug 2024 00:12:22 +0200 Subject: Add option to use relative content paths (#2856). --- src/lib/config.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/config.h') diff --git a/src/lib/config.h b/src/lib/config.h index 1b9f51f6e..52fe47b3f 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -678,6 +678,10 @@ public: return _player_http_server_port; } + bool relative_paths() const { + return _relative_paths; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -1225,6 +1229,10 @@ public: maybe_set(_player_http_server_port, port); } + void set_relative_paths(bool relative) { + maybe_set(_relative_paths, relative); + } + void changed (Property p = OTHER); boost::signals2::signal Changed; @@ -1465,6 +1473,7 @@ private: int _isdcf_name_part_length; bool _enable_player_http_server; int _player_http_server_port; + bool _relative_paths; #ifdef DCPOMATIC_GROK boost::optional _grok; -- cgit v1.2.3