Patch by Matt McCutchen to find levels in current directory when selected from comman...
authorwolfgangb <wolfgangb@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sun, 30 Aug 2009 10:55:54 +0000 (10:55 +0000)
committerwolfgangb <wolfgangb@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Sun, 30 Aug 2009 10:55:54 +0000 (10:55 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@5909 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/file_system.cpp

index 5f5be1d..be39082 100644 (file)
@@ -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);
 }