fixes on xcode

This commit is contained in:
2017-08-11 08:29:13 +01:00
parent 9be2e8e147
commit c2c046f77e
3 changed files with 4 additions and 2 deletions

View File

@@ -45,11 +45,12 @@ std::vector<std::string> Asset::list_files(std::string folder, bool is_asset, co
}
#else
std::string abs_path = folder;
if (is_asset)
{
NSString* bundle_path = [[NSBundle mainBundle] resourcePath];
std::string base = [bundle_path cStringUsingEncoding : 1];
std::string abs_path = base + "/" + folder;
abs_path = base + "/" + folder;
}
DIR *dp;