Match the coding style of the rest of the document.

This commit is contained in:
C.W. Betts 2018-08-23 21:29:03 -06:00
parent 9cfa12c0fe
commit 0c48d99d2b

View file

@ -227,10 +227,13 @@ bool PHYSFSX_init(int argc, char *argv[])
#if defined(__APPLE__) && defined(__MACH__) #if defined(__APPLE__) && defined(__MACH__)
{ {
CFBundleRef mainBundle = CFBundleGetMainBundle(); CFBundleRef mainBundle = CFBundleGetMainBundle();
if (mainBundle) { if (mainBundle)
{
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle); CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle);
if (resourcesURL) { if (resourcesURL)
if (CFURLGetFileSystemRepresentation(resourcesURL, TRUE, reinterpret_cast<uint8_t *>(fullPath), sizeof(fullPath))) { {
if (CFURLGetFileSystemRepresentation(resourcesURL, TRUE, reinterpret_cast<uint8_t *>(fullPath), sizeof(fullPath)))
{
fullPath[sizeof(fullPath) - 1] = '\0'; fullPath[sizeof(fullPath) - 1] = '\0';
con_printf(CON_DEBUG, "PHYSFS: append resources directory \"%s\" to search path", fullPath); con_printf(CON_DEBUG, "PHYSFS: append resources directory \"%s\" to search path", fullPath);
PHYSFS_addToSearchPath(fullPath, 1); PHYSFS_addToSearchPath(fullPath, 1);