diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-14 00:12:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:51:26 +0200 |
| commit | 0b4bffff846efe967110477797218c170ffb3166 (patch) | |
| tree | f3cb1bbf1e3c86905afe42b159284d2d2c299476 /src/lib/config.h | |
| parent | 11456e09fd0a18ff9bd4c8421514b707d5d0c2fe (diff) | |
Add option to use relative content paths (#2856).
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
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<void (Property)> 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> _grok; |
