]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Utils/Folders.cpp
Cleaned up Objects handling
[lugaru.git] / Source / Utils / Folders.cpp
index b667daa933a5d22bc59b1779ea086550d70ad9d6..8de69db5098383ec1cb47db41401ba38d2226da9 100644 (file)
@@ -18,17 +18,22 @@ You should have received a copy of the GNU General Public License
 along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "Folders.h"
+#include "Folders.hpp"
+
 #include <cstring>
+#include <cstdlib>
+#include <cerrno>
 #include <unistd.h>
+
 #if PLATFORM_UNIX
+#include <pwd.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <pwd.h>
 #endif
+
 #if _WIN32
-#include <windows.h>
 #include <shlobj.h> // to get paths related functions
+#include <windows.h>
 #endif
 
 const std::string Folders::dataDir = DATA_DIR;
@@ -40,11 +45,6 @@ std::string Folders::getScreenshotDir()
     return screenshotDir;
 }
 
-std::string Folders::getResourcePath(std::string filepath)
-{
-    return dataDir + '/' + filepath;
-}
-
 std::string Folders::getUserDataPath()
 {
     std::string userDataPath;