[*] Untabify paths.cpp
This commit is contained in:
parent
d4a8c05509
commit
22d03229ae
@ -103,23 +103,23 @@ namespace Aurora::Process
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
|
||||
#elif defined(AURORA_PLATFORM_APPLE) || defined(AURORA_PLATFORM_IOS)
|
||||
|
||||
CFURLRef bundleURL = CFBundleCopyExecutableURL(CFBundleGetMainBundle());
|
||||
CFStringRef pathRef = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle);
|
||||
CFURLRef bundleURL = CFBundleCopyExecutableURL(CFBundleGetMainBundle());
|
||||
CFStringRef pathRef = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle);
|
||||
|
||||
auto utf16length = CFStringGetLength(pathRef);
|
||||
auto maxUtf8len = CFStringGetMaximumSizeForEncoding(utf16length, kCFStringEncodingUTF8);
|
||||
|
||||
path.resize(maxUtf8len);
|
||||
|
||||
if (!CFStringGetCString(pathRef, path.data(), maxUtf8len, kCFStringEncodingUTF8))
|
||||
if (!CFStringGetCString(pathRef, path.data(), maxUtf8len, kCFStringEncodingUTF8))
|
||||
{
|
||||
path.clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
path.resize(std::strlen(path.c_str()));
|
||||
splitter = '\\';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user