Drop ".exe" from log dir name on windows
This commit is contained in:
1 parent
e2a101eb20
commit
b4e26d2fbe
1 file changed
+5
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user