From: wolfgangb Date: Sun, 30 Aug 2009 10:55:54 +0000 (+0000) Subject: Patch by Matt McCutchen to find levels in current directory when selected from comman... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7f56f61e20173a3c841dfaf87d0b9345ce5c520c;p=supertux.git Patch by Matt McCutchen to find levels in current directory when selected from command line. (Bug 485) git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@5909 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/src/file_system.cpp b/src/file_system.cpp index 5f5be1d72..be39082e7 100644 --- a/src/file_system.cpp +++ b/src/file_system.cpp @@ -35,7 +35,7 @@ std::string dirname(const std::string& filename) if(p == std::string::npos) p = filename.find_last_of('\\'); if(p == std::string::npos) - return ""; + return "./"; return filename.substr(0, p+1); }