Skip to content

Commit

Permalink
fixup! Minor refactoring in the path code
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Apr 14, 2024
1 parent 2763ac9 commit fb0b2ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ void Initialize_Paths()
CFURLRef dirURL;
mainBundle = CFBundleGetMainBundle();
if (!mainBundle) {
cout << "Not running from an .app bundle" << endl;
printf("Not running from an .app bundle\n");
return;
}

dirURL = CFBundleCopyBundleURL(mainBundle);

if (!CFURLGetFileSystemRepresentation(dirURL, TRUE, temp,
PATH_MAX)) {
cout << "Could not get file system representation" << endl;
printf("Could not get file system representation\n");
return;
}

Expand All @@ -114,7 +114,7 @@ void Initialize_Paths()
#else
SMW_Root_Data_Dir = "./";
#endif
cout << "Located data folder at: " << SMW_Root_Data_Dir << endl;
printf("Located data folder at: %s\n", SMW_Root_Data_Dir.c_str());
}
#endif

Expand Down

0 comments on commit fb0b2ab

Please sign in to comment.