From a8fe315be6b70358b6a0ba2bdb1519e916f8f38e Mon Sep 17 00:00:00 2001 From: ink-soul Date: Mon, 12 Jun 2023 11:10:07 +0800 Subject: [PATCH] bug fix : allow directory defined in cmakelist --- base/VulkanTools.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/base/VulkanTools.cpp b/base/VulkanTools.cpp index 148a1b5..8368d50 100644 --- a/base/VulkanTools.cpp +++ b/base/VulkanTools.cpp @@ -9,9 +9,7 @@ const std::string getAssetPath() #if defined(VK_USE_PLATFORM_ANDROID_KHR) return ""; #elif defined(VK_EXAMPLE_DATA_DIR) - return VK_EXAMPLE_DATA_DIR; -#else - + if (_access("./../data/", 0) != -1) { @@ -30,7 +28,7 @@ const std::string getAssetPath() else { - return "./../../../data"; + return VK_EXAMPLE_DATA_DIR; } #endif