add create directory api for iOS and macOS

This commit is contained in:
2019-09-17 11:09:26 +02:00
parent 6aa4339230
commit 882a516455
3 changed files with 18 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
#ifdef __APPLE__
#include <Foundation/Foundation.h>
#include "objc_utils.h"
#endif
#ifdef __ANDROID__
@@ -141,6 +142,8 @@ bool Asset::create_dir(const std::string& path)
return PathFileExistsA(path.c_str()) ? true : CreateDirectoryA(path.c_str(), NULL);
#elif __ANDROID__
return android_create_dir(path);
#elif __IOS__ || __OSX__
return apple_create_dir(path);
#endif
}