Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/storage_apple.mm
| Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | @autoreleasepool { | ||||
| } | } | ||||
| if (is_offline) { | if (is_offline) { | ||||
| ret |= FILE_ATTR_OFFLINE; | ret |= FILE_ATTR_OFFLINE; | ||||
| } | } | ||||
| } | } | ||||
| return (eFileAttributes)ret; | return (eFileAttributes)ret; | ||||
| } | } | ||||
| const char *BLI_expand_tilde(const char *path_with_tilde) | |||||
| { | |||||
| static char expanded_path[FILE_MAX]; | |||||
| @autoreleasepool { | |||||
| const NSString *const expanded = [[[NSString alloc] initWithCString:path_with_tilde | |||||
| encoding:NSUTF8StringEncoding] | |||||
| stringByExpandingTildeInPath]; | |||||
| [expanded getCString:expanded_path | |||||
| maxLength:sizeof(expanded_path) | |||||
| encoding:NSUTF8StringEncoding]; | |||||
| } | |||||
| return expanded_path; | |||||
| } | |||||