From 804154afbee8843dde358837ec18ab7bfb785088 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 May 2012 01:57:27 +0300 Subject: Add button "detect best video mode" in video settings (windows only). --- src/utils/paths.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/utils/paths.cpp') 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 -- cgit v1.2.3-70-g09d2