X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_disk.cc;h=ec5d8e782db122dc4a15814432aa3ddae5bb2f2c;hb=33acff363c978914cdcbf21fb8fa3d1c4c6991b7;hp=f495ecc4188b8bb9b2aef37548da8ace017ed38a;hpb=04b34b7139407e3afa241939bc5416cf1bf06aef;p=dcpomatic.git diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc index f495ecc41..ec5d8e782 100644 --- a/src/tools/dcpomatic_disk.cc +++ b/src/tools/dcpomatic_disk.cc @@ -139,7 +139,7 @@ public: /* 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.log")); + dcpomatic_log = make_shared(State::write_path("disk.log")); dcpomatic_log->set_types (dcpomatic_log->types() | LogEntry::TYPE_DISK); LOG_DISK("dcpomatic_disk %1 started", dcpomatic_git_commit); @@ -182,6 +182,11 @@ public: void set_dcp (boost::filesystem::path dcp) { + if (!boost::filesystem::exists(dcp / "ASSETMAP") && !boost::filesystem::exists(dcp / "ASSETMAP.xml")) { + error_dialog (nullptr, _("No ASSETMAP or ASSETMAP.xml found in this folder. Please choose a DCP folder.")); + return; + } + _dcp_path = dcp; _dcp_name->SetLabel (std_to_wx(dcp.filename().string())); }