fix: Make lip-sync archive optional when loading modules

This makes it easier to add new areas.
This commit is contained in:
Vsevolod Kremianskii 2021-03-07 17:32:41 +07:00
parent 4e4f7400e1
commit 36ddbabe64

View file

@ -227,8 +227,10 @@ void Resources::loadModule(const string &name) {
indexTransientRimFile(moduleRimPath);
indexTransientRimFile(moduleRimSPath);
indexTransientErfFile(lipModPath);
if (fs::exists(lipModPath)) {
indexTransientErfFile(lipModPath);
}
if (_gameId == GameID::TSL) {
fs::path dlgPath(getPathIgnoreCase(modulesPath, name + "_dlg.erf"));
indexTransientErfFile(dlgPath);