bug fix : allow directory defined in cmakelist
parent
5665ff4105
commit
a8fe315be6
|
@ -9,9 +9,7 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue