We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfd9033 commit 79c89c6Copy full SHA for 79c89c6
1 file changed
libs/openFrameworks/utils/ofFileUtils.h
@@ -452,7 +452,11 @@ class ofFilePath {
452
/// \returns the App name as native string
453
static const auto getAppName(bool strip_debug = true) {
454
auto name = ofFilePath::getCurrentExePathFS().filename().native();
455
+#if defined(TARGET_OSX)
456
auto debug_suffix = std::filesystem::path("Debug").native();
457
+#else
458
+ auto debug_suffix = std::filesystem::path("_debug").native();
459
+#endif
460
auto dbsize = debug_suffix.size();
461
if (strip_debug) {
462
if (name.size() > dbsize && name.compare(name.size() -dbsize , dbsize, debug_suffix) == 0) {
0 commit comments