summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-18 01:57:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-19 00:31:16 +0300
commit804154afbee8843dde358837ec18ab7bfb785088 (patch)
treed0b58bea9b13e37dc44c7bf9487d3cde2a7991f6 /src/utils
parentf35d6cd35d92ad16a55bf49f61f19153949497c0 (diff)
downloadmv-804154afbee8843dde358837ec18ab7bfb785088.tar.gz
mv-804154afbee8843dde358837ec18ab7bfb785088.tar.bz2
mv-804154afbee8843dde358837ec18ab7bfb785088.tar.xz
mv-804154afbee8843dde358837ec18ab7bfb785088.zip
Add button "detect best video mode" in video settings (windows only).
Diffstat (limited to 'src/utils')
-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