fix: use memfile to use engines search paths for veryfying chatter files.

This commit is contained in:
dmitry 2022-04-14 11:55:37 +03:00
commit a49f95f506
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37

View file

@ -286,9 +286,9 @@ public:
};
float Game::getWaveLen (const char *fileName) {
auto filePath = strings.format ("%s/%s/%s.wav", getRunningModName (), cv_chatter_path.str (), fileName);
auto filePath = strings.format ("%s/%s.wav", cv_chatter_path.str (), fileName);
File fp (filePath, "rb");
MemFile fp (filePath);
// we're got valid handle?
if (!fp) {