From 6cae2df12dffc3f540eed4ea6f13835523f81b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 2 Jan 2025 19:52:51 +0100 Subject: [PATCH] UWP buildfix --- Core/FileSystems/DirectoryFileSystem.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/FileSystems/DirectoryFileSystem.cpp b/Core/FileSystems/DirectoryFileSystem.cpp index 82c9cebbc0..323e237d02 100644 --- a/Core/FileSystems/DirectoryFileSystem.cpp +++ b/Core/FileSystems/DirectoryFileSystem.cpp @@ -284,7 +284,9 @@ bool DirectoryFileHandle::Open(const Path &basePath, std::string &fileName, File DEBUG_LOG(Log::FileSystem, "Case may have been incorrect, second try opening %s (%s)", fullName.c_str(), fileName.c_str()); // And try again with the correct case this time -#ifdef _WIN32 +#if PPSSPP_PLATFORM(UWP) + // Should never get here. +#elif PPSSPP_PLATFORM(WINDOWS) // Unlikely to get here, heh. hFile = CreateFile(fullName.ToWString().c_str(), desired, sharemode, 0, openmode, 0, 0); success = hFile != INVALID_HANDLE_VALUE; @@ -295,7 +297,7 @@ bool DirectoryFileHandle::Open(const Path &basePath, std::string &fileName, File } } -#ifndef _WIN32 +#if !PPSSPP_PLATFORM(WINDOWS) if (success) { // Reject directories, even if we succeed in opening them. // TODO: Might want to do this stat first...