[Scummvm-git-logs] scummvm master -> 28d61f8e2ff138b3e9a6b0207de864e4f9e762c2

rvanlaar noreply at scummvm.org
Fri Jul 11 20:18:28 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
28d61f8e2f DIRECTOR: Fix handling multiple paths in projector


Commit: 28d61f8e2ff138b3e9a6b0207de864e4f9e762c2
    https://github.com/scummvm/scummvm/commit/28d61f8e2ff138b3e9a6b0207de864e4f9e762c2
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2025-07-11T22:09:25+02:00

Commit Message:
DIRECTOR: Fix handling multiple paths in projector

Some projectors have multiple director files embedded.
The original full path is stored as part of the file name.
When opening such a file director expects it to be known under
the filename, not the full path.

Fixes an error when opening capnco-win-de. Dialog.dir wasn't found.

Changed paths:
    engines/director/resource.cpp


diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp
index dd92494012f..cf3e1eed1f2 100644
--- a/engines/director/resource.cpp
+++ b/engines/director/resource.cpp
@@ -738,7 +738,7 @@ bool ProjectorArchive::loadArchive(Common::SeekableReadStream *stream) {
 		tag = stream->readUint32BE();
 		size = bigEndian ? stream->readUint32BE() : stream->readUint32LE();
 
-		Common::Path path = toSafePath(arr[i]);
+		Common::Path path = toSafePath(arr[i]).getLastComponent();
 
 		debugC(1, kDebugLoading, "Entry: %s offset %lX (%ld) tag %s size %d", path.toString().c_str(), long(stream->pos() - 8), long(stream->pos() - 8), tag2str(tag), size);
 




More information about the Scummvm-git-logs mailing list