bug fix : allow directory defined in cmakelist

pull/2/head
ink-soul 2023-06-12 11:10:07 +08:00
parent 5665ff4105
commit a8fe315be6
1 changed files with 2 additions and 4 deletions

View File

@ -9,8 +9,6 @@ const std::string getAssetPath()
#if defined(VK_USE_PLATFORM_ANDROID_KHR) #if defined(VK_USE_PLATFORM_ANDROID_KHR)
return ""; return "";
#elif defined(VK_EXAMPLE_DATA_DIR) #elif defined(VK_EXAMPLE_DATA_DIR)
return VK_EXAMPLE_DATA_DIR;
#else
if (_access("./../data/", 0) != -1) if (_access("./../data/", 0) != -1)
{ {
@ -30,7 +28,7 @@ const std::string getAssetPath()
else else
{ {
return "./../../../data"; return VK_EXAMPLE_DATA_DIR;
} }
#endif #endif