diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-18 01:57:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-19 00:31:16 +0300 |
commit | 804154afbee8843dde358837ec18ab7bfb785088 (patch) | |
tree | d0b58bea9b13e37dc44c7bf9487d3cde2a7991f6 /src/utils | |
parent | f35d6cd35d92ad16a55bf49f61f19153949497c0 (diff) | |
download | manaplus-804154afbee8843dde358837ec18ab7bfb785088.tar.gz manaplus-804154afbee8843dde358837ec18ab7bfb785088.tar.bz2 manaplus-804154afbee8843dde358837ec18ab7bfb785088.tar.xz manaplus-804154afbee8843dde358837ec18ab7bfb785088.zip |
Add button "detect best video mode" in video settings (windows only).
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/paths.cpp | 11 |
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 |