[Scummvm-git-logs] scummvm branch-3-0 -> aa8ee14a436add66687955f7e84ffd427c4ff702

BLooperZ noreply at scummvm.org
Fri Nov 21 09:56:15 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:
aa8ee14a43 TOON: Load subtitles by base file name


Commit: aa8ee14a436add66687955f7e84ffd427c4ff702
    https://github.com/scummvm/scummvm/commit/aa8ee14a436add66687955f7e84ffd427c4ff702
Author: BLooperZ (blooperz at users.noreply.github.com)
Date: 2025-11-21T11:56:02+02:00

Commit Message:
TOON: Load subtitles by base file name

Changed paths:
    engines/toon/subtitles.cpp


diff --git a/engines/toon/subtitles.cpp b/engines/toon/subtitles.cpp
index 012d6e9a1db..ecce25d05d5 100644
--- a/engines/toon/subtitles.cpp
+++ b/engines/toon/subtitles.cpp
@@ -82,7 +82,7 @@ bool SubtitleRenderer::load(const Common::Path &video) {
 	Common::String ext("tss");
 	subfile.replace(subfile.size() - ext.size(), ext.size(), ext);
 
-	Common::ScopedPtr<Common::SeekableReadStream> subsStream(_vm->resources()->openFile(video.getParent().appendComponent(subfile)));
+	Common::ScopedPtr<Common::SeekableReadStream> subsStream(_vm->resources()->openFile(Common::Path(subfile)));
 	if (subsStream == nullptr) {
 		return false;
 	}




More information about the Scummvm-git-logs mailing list