GRIM: Fix .ogv player regression... sort of

After discussing with lephilousophe, the .ogv player (used by the
remastered version of Grim Fandango) once again finds the movie it's
looking for. Unfortunately, the player doesn't work at all for me,
making the game less playable than before. But it's how 2.8 behaves, so
there's that.
This commit is contained in:
Torbjörn Andersson 2024-02-10 10:35:37 +01:00
parent b9b305844f
commit d4c91352eb

View File

@ -60,15 +60,11 @@ bool SmushPlayer::loadFile(const Common::String &filename) {
if (!success) {
#if defined (USE_THEORADEC)
Common::Path theoraFilename(filename);
Common::String baseName(theoraFilename.baseName());
Common::String baseName(filename);
baseName.erase(baseName.size() - 4);
baseName += ".ogv";
theoraFilename = "MoviesHD";
theoraFilename.join(theoraFilename.getParent());
theoraFilename.appendComponent(baseName);
Common::Path theoraFilename(Common::Path("MoviesHD").appendComponent(baseName));
debug(2, "Trying to open %s", theoraFilename.toString().c_str());
success = _theoraDecoder->loadFile(theoraFilename);