Major update

This commit is contained in:
Bashar Astifan committed 2023-04-30 08:54:54 +04:00
1 parent cb5d18cb03
commit 05776ee6af
41 files changed
+396 -3885

No files matched your search

-18
View File
@@ -52,10 +52,6 @@
#include <sys/stat.h>
#if PPSSPP_PLATFORM(UWP)
#include <fileapifromapp.h>
#if !defined(__LIBRETRO__)
#include "UWP/UWPHelpers/StorageManager.h"
#include "UWP/UWPHelpers/PPSSPPTypesHelpers.h"
#endif
#endif
#undef FILE_OPEN
#else
@@ -175,13 +171,6 @@ bool DirectoryFileHandle::Open(const Path &basePath, std::string &fileName, File
hFile = CreateFile(fullName.ToWString().c_str(), desired, sharemode, 0, openmode, 0, 0);
#endif
bool success = hFile != INVALID_HANDLE_VALUE;
#if PPSSPP_PLATFORM(UWP) && !defined(__LIBRETRO__)
if (!success) {
//Use UWP StorageManager to get handle
hFile = CreateFileUWP(fullName.ToString(), desired, sharemode, openmode);
success = hFile != INVALID_HANDLE_VALUE;
}
#endif
if (!success) {
DWORD w32err = GetLastError();
@@ -194,13 +183,6 @@ bool DirectoryFileHandle::Open(const Path &basePath, std::string &fileName, File
hFile = CreateFile(fullName.ToWString().c_str(), desired, sharemode, 0, openmode, 0, 0);
#endif
success = hFile != INVALID_HANDLE_VALUE;
#if PPSSPP_PLATFORM(UWP) && !defined(__LIBRETRO__)
if (!success) {
//Use UWP StorageManager to get handle
hFile = CreateFileUWP(fullName.ToString(), desired, sharemode, openmode);
success = hFile != INVALID_HANDLE_VALUE;
}
#endif
if (!success) {
w32err = GetLastError();
}