summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_disk_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-09-27 11:55:27 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-27 11:55:27 +0200
commit6e3e984162ca7a181bc7c98d90c295e88e4e7f6c (patch)
treef514e6618e9012c307188a11a9d2a2ade2e04d19 /src/tools/dcpomatic_disk_writer.cc
parenta3d4dfb4357a265d4c3a4bfafe7d17a8ecc72f66 (diff)
parent0771af91ad52ed2e25ab89410eb6e783b50f7329 (diff)
Merge branch 'own-config' into v2.15.x
This makes 2.15.x copy the 2.14.x configuration so you can run 2.14.x again afterwards without recreating everything.
Diffstat (limited to 'src/tools/dcpomatic_disk_writer.cc')
-rw-r--r--src/tools/dcpomatic_disk_writer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_disk_writer.cc b/src/tools/dcpomatic_disk_writer.cc
index c638b72eb..ef384bbba 100644
--- a/src/tools/dcpomatic_disk_writer.cc
+++ b/src/tools/dcpomatic_disk_writer.cc
@@ -27,7 +27,9 @@
#include "lib/exceptions.h"
#include "lib/ext.h"
#include "lib/file_log.h"
+#include "lib/state.h"
#include "lib/nanomsg.h"
+#include "lib/util.h"
#include "lib/version.h"
#include "lib/warnings.h"
@@ -288,7 +290,7 @@ main ()
/* XXX: this is a hack, but I expect we'll need logs and I'm not sure if there's
* a better place to put them.
*/
- dcpomatic_log.reset(new FileLog(config_path() / "disk_writer.log", LogEntry::TYPE_DISK));
+ dcpomatic_log.reset(new FileLog(State::write_path("disk_writer.log"), LogEntry::TYPE_DISK));
LOG_DISK_NC("dcpomatic_disk_writer started");
#endif