diff options
| author | JosJuice <josjuice@gmail.com> | 2016-11-24 20:57:27 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2016-11-26 15:50:28 +0100 |
| commit | de355a8521d47e8c86dffab0470a8acead1af746 (patch) | |
| tree | 21d702d18fdc97d450d7d15e744a6fd0be38629e /Source/Core/Common/FileUtil.cpp | |
| parent | c84ab13e813acc0fbbb4ec9bc70171598ab24d5d (diff) | |
Revert "IOS HLE: Prevent accessing host file system"
This reverts commit 141f3bfb3acee73569486258c21e4ed34fc32327.
The implementation of getting absolute paths wasn't working
on non-Windows systems, which is a huge problem for IOS HLE.
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/FileUtil.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index acf154f81a..e761f3ade1 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -5,7 +5,6 @@ #include <algorithm> #include <cstddef> #include <cstdio> -#include <cstdlib> #include <cstring> #include <fcntl.h> #include <limits.h> @@ -31,6 +30,7 @@ #include <dirent.h> #include <errno.h> #include <libgen.h> +#include <stdlib.h> #include <unistd.h> #endif @@ -712,19 +712,6 @@ std::string GetBundleDirectory() } #endif -std::string GetAbsolutePath(const std::string& path) -{ -#ifdef _WIN32 - wchar_t absolute_path[_MAX_PATH]; - wchar_t* result = _wfullpath(absolute_path, UTF8ToTStr(path).c_str(), _MAX_PATH); - return result ? TStrToUTF8(result) : ""; -#else - char absolute_path[MAX_PATH + 1]; - char* result = realpath(path.c_str(), absolute_path); - return result ? result : ""; -#endif -} - std::string& GetExeDirectory() { static std::string DolphinPath; |
