add linux support

This commit is contained in:
2019-10-03 22:45:01 +02:00
parent c26a4d1e86
commit 96f8cb72d2
9 changed files with 310 additions and 11 deletions

View File

@@ -93,9 +93,7 @@ std::vector<std::string> Asset::list_files(std::string folder, const std::string
std::string abs_path = folder;
if (is_asset)
{
NSString* bundle_path = [[NSBundle mainBundle] resourcePath];
std::string base = [bundle_path cStringUsingEncoding : 1];
abs_path = base + "/" + folder;
abs_path = absolute(folder);
}
DIR *dp;