summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-04-11 21:47:58 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-11 21:47:58 +0200
commitf26fc2350be12549d836af37bc439f8e09c44157 (patch)
treeec49a4d7f59a55084566b9a565fd9dcf8b9b9e56 /src
parent8afda710eed1f4f45f933b510864835fc44ca68b (diff)
Fix loading DCPs into the verifier with trailing /
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_verifier.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_verifier.cc b/src/tools/dcpomatic_verifier.cc
index 724a18980..c2d6cd22c 100644
--- a/src/tools/dcpomatic_verifier.cc
+++ b/src/tools/dcpomatic_verifier.cc
@@ -536,7 +536,12 @@ private:
_start = parser.Found(char_to_wx("start"));
for (auto i = 0UL; i < parser.GetParamCount(); ++i) {
- _dcps_to_load.push_back(wx_to_std(parser.GetParam(0)));
+ auto const path = boost::filesystem::path(wx_to_std(parser.GetParam(0)));
+ if (path.filename_is_dot()) {
+ _dcps_to_load.push_back(path.parent_path());
+ } else {
+ _dcps_to_load.push_back(path);
+ }
}
return true;