Opened 3 years ago

Last modified 3 years ago

#12713 new feature request

STARTREK enable alternative path for voc files

Reported by: Retro64 Owned by:
Priority: normal Component: Engine: Startrek
Version: Keywords:
Cc: Game:

Description (last modified by Retro64)

When installing the GOG version or browsing the CD version, the voc folder is on the same level as the language folders. All localizations access this parent folder in order to use use the same voc files. Currently the engine searches - naturally - for the voc files in the root folder of each language. For sure the files can be copied redundant into each folder or a symlink might be used within *NIX systems to get rid of the redundant files, but an option to search the parent folder for voc folder or a config options to configure the path to the voc folders might be a useful feature for multi-language game support.

One - hacky - way would be a change in
https://github.com/scummvm/scummvm/blob/cbe20d11553f8ca2f83084aa0fcf0547022dc5fb/engines/startrek/sound.cpp

else if (!SearchMan.hasFile("voc/speech.mrk")) {
->
// Defined in namespace
var vocPath = "voc";
...

else if (!SearchMan.hasFile("voc/speech.mrk" && !SearchMan.hasFile("../voc/speech.mrk"))) {
...
}

if (SearchMan.hasFile("../voc/speech.mrk")) {
  vocPath = "../voc";
}

// All absolute paths "voc" need to be replaced by vocPath

Paths to be adjusted:

https://github.com/scummvm/scummvm/blob/cbe20d11553f8ca2f83084aa0fcf0547022dc5fb/engines/startrek/sound.cpp#L217

https://github.com/scummvm/scummvm/blob/cbe20d11553f8ca2f83084aa0fcf0547022dc5fb/engines/startrek/sound.cpp#L252

Change History (4)

comment:1 by Retro64, 3 years ago

Description: modified (diff)

comment:2 by Retro64, 3 years ago

Description: modified (diff)

comment:3 by Retro64, 3 years ago

Description: modified (diff)

comment:4 by Retro64, 3 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.