save code
This commit is contained in:
+5
-1
@@ -22,11 +22,15 @@ void VK_CHECK(VkResult ret)
|
||||
// return path;
|
||||
//}
|
||||
|
||||
std::vector<unsigned char> AppBase::readFileEx(const std::string& path)
|
||||
std::vector<unsigned char> AppBase::readFileUnsignedChar(const std::string& path, bool example)
|
||||
{
|
||||
std::vector<unsigned char> buffer;
|
||||
#ifdef _WIN32
|
||||
std::string enginePath = "app/src/main/assets/" + path;
|
||||
if (example)
|
||||
{
|
||||
enginePath = "example/src/main/assets/" + path;
|
||||
}
|
||||
std::ifstream file{ enginePath, std::ios::ate | std::ios::binary };
|
||||
|
||||
if (!file.is_open())
|
||||
|
||||
Reference in New Issue
Block a user