Move tool stuff to tool.{h,cpp}
[oweals/minetest.git] / src / porting.h
index 3cf8df594b82d66f5710c6c24c50317d29cf914d..4970a84787856d24a4b3e82ff6ce37206d50fd58 100644 (file)
@@ -63,9 +63,9 @@ extern std::string path_data;
 
 /*
        Directory for storing user data. Examples:
-       Windows: "C:\Documents and Settings\user\Application Data\<APPNAME>"
-       Linux: "~/.<APPNAME>"
-       Mac: "~/Library/Application Support/<APPNAME>"
+       Windows: "C:\Documents and Settings\user\Application Data\<PROJECT_NAME>"
+       Linux: "~/.<PROJECT_NAME>"
+       Mac: "~/Library/Application Support/<PROJECT_NAME>"
 */
 extern std::string path_userdata;
 
@@ -73,10 +73,7 @@ extern std::string path_userdata;
        Get full path of stuff in data directory.
        Example: "stone.png" -> "../data/stone.png"
 */
-inline std::string getDataPath(const char *subpath)
-{
-       return path_data + "/" + subpath;
-}
+std::string getDataPath(const char *subpath);
 
 /*
        Initialize path_data and path_userdata.