mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
Instance sync: Leave it out of UWP
UWP has no CreateFileW, and no headless build to run the ad hoc tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
00382b2e6b
commit
87636d5132
1 file changed
+3
-1
+3
-1
@@ -238,7 +238,9 @@ bool InitInstanceSync(const std::string &path, int index, int count) {
|
||||
return false;
|
||||
}
|
||||
void *mem = nullptr;
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
#if PPSSPP_PLATFORM(UWP)
|
||||
// Not there: UWP has no CreateFileW, and no headless build to run the tests.
|
||||
#elif PPSSPP_PLATFORM(WINDOWS)
|
||||
syncFile = CreateFileW(ConvertUTF8ToWString(path).c_str(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, nullptr, OPEN_EXISTING, 0, nullptr);
|
||||
if (syncFile != INVALID_HANDLE_VALUE) {
|
||||
syncMapping = CreateFileMappingW(syncFile, nullptr, PAGE_READWRITE, 0, INSTANCE_SYNC_FILE_SIZE, nullptr);
|
||||
|
||||
Reference in new issue
Block a user