瀏覽代碼

* BugFix: When loading sound assets, don't resolve the absolute path.

Robert MacGregor 3 年之前
父節點
當前提交
2a865d387a
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Engine/source/sfx/sfxProfile.cpp

+ 1 - 4
Engine/source/sfx/sfxProfile.cpp

@@ -284,10 +284,7 @@ bool SFXProfile::_preloadBuffer()
 
 Resource<SFXResource>& SFXProfile::getResource()
 {
-   char buf[1024];
-   FileName fullFilename = String(Platform::makeFullPathName(mFilename, buf, sizeof(buf)));
-
-   if (!mResource && SFXResource::exists(fullFilename))
+   if (!mResource && SFXResource::exists(mFilename))
       mResource = SFXResource::load(mFilename);
    else
       mResource = NULL;