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:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-31 09:17:04 +01:00
1 parent 00382b2e6b
commit 87636d5132
1 file changed
+3 -1
+3 -1
View File
@@ -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);