Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+GNU Lesser General Public License for more details.
-You should have received a copy of the GNU General Public License along
+You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#define PORTING_HEADER
#include <string>
-// Included for u32 and such
-#include "common_irrlicht.h"
+#include "irrlichttypes.h" // u32
#include "debug.h"
#include "constants.h"
/*
Path of static data directory.
*/
-extern std::string path_data;
+extern std::string path_share;
/*
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;
+extern std::string path_user;
/*
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.
+ Initialize path_share and path_user.
*/
void initializePaths();