fix: use memfile to use engines search paths for veryfying chatter files.
This commit is contained in:
parent
1eac0f8be8
commit
a49f95f506
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue