summaryrefslogtreecommitdiff
path: root/src/utils/paths.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/paths.cpp')
-rw-r--r--src/utils/paths.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/utils/paths.cpp b/src/utils/paths.cpp
index 306955cb3..c00a3f39d 100644
--- a/src/utils/paths.cpp
+++ b/src/utils/paths.cpp
@@ -96,14 +96,13 @@ std::string removeLast(std::string str)
#ifdef WIN32
std::string getSelfName()
{
- // GetModuleFileName(nullptr)
- return "";
+ return "manaplus.exe";
}
#elif defined(__APPLE__)
std::string getSelfName()
{
- return "";
+ return "manaplus.exe";
}
#elif defined __linux__ || defined __linux
@@ -124,4 +123,10 @@ std::string getSelfName()
}
}
+#else
+std::string getSelfName()
+{
+ return "";
+}
+
#endif