Drop ".exe" from log dir name on windows

This commit is contained in:
John Colvin committed 2025-11-15 12:16:32 -05:00
1 parent e2a101eb20
commit b4e26d2fbe
1 file changed
+5
+5
View File
@@ -485,6 +485,11 @@ std::string get_application_name() {
size_t last = app_path.find_last_of("/\\");
if (last + 1 >= app_path.size())
return "";
#ifdef _WIN32
if (app_path.ends_with(".exe")) {
return app_path.substr(last + 1, app_path.size() - last - 4);
}
#endif
return app_path.substr(last + 1, app_path.size() - last);
}