mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Common: Remove OpenCPPFile().
This commit is contained in:
parent
9d8f22efd0
commit
f947aa4844
@ -103,16 +103,6 @@ FILE *OpenCFile(const std::string &filename, const char *mode)
|
||||
#endif
|
||||
}
|
||||
|
||||
bool OpenCPPFile(std::fstream & stream, const std::string &filename, std::ios::openmode mode)
|
||||
{
|
||||
#if defined(_WIN32) && defined(UNICODE) && !defined(__MINGW32__)
|
||||
stream.open(ConvertUTF8ToWString(filename), mode);
|
||||
#else
|
||||
stream.open(filename.c_str(), mode);
|
||||
#endif
|
||||
return stream.is_open();
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
static bool ResolvePathVista(const std::wstring &path, wchar_t *buf, DWORD bufSize) {
|
||||
typedef DWORD(WINAPI *getFinalPathNameByHandleW_f)(HANDLE hFile, LPWSTR lpszFilePath, DWORD cchFilePath, DWORD dwFlags);
|
||||
|
@ -38,7 +38,6 @@ namespace File {
|
||||
|
||||
// Mostly to handle UTF-8 filenames better on Windows.
|
||||
FILE *OpenCFile(const std::string &filename, const char *mode);
|
||||
bool OpenCPPFile(std::fstream & stream, const std::string &filename, std::ios::openmode mode);
|
||||
|
||||
// Resolves symlinks and similar.
|
||||
std::string ResolvePath(const std::string &path);
|
||||
|
Loading…
Reference in New Issue
Block a user