Merge pull request #328 from yapb/issue-327

fix: use memfile to use engines search paths for veryfying chatter file (resolves #327)
This commit is contained in:
jeefo 2022-04-14 15:48:25 +03:00 committed by GitHub
commit dc6678ed67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,9 +286,9 @@ public:
}; };
float Game::getWaveLen (const char *fileName) { 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? // we're got valid handle?
if (!fp) { if (!fp) {