From ed602a3319b02efa283f160b2571ceb7f07fefe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 11 Oct 2017 14:27:50 +0200 Subject: [PATCH] UWP buildfix. See comments in #9575 --- .gitignore | 1 + UWP/CommonUWP/CommonUWP.vcxproj | 20 ++++++++++---------- UWP/CoreUWP/CoreUWP.vcxproj | 22 ++++++++++++---------- UWP/CoreUWP/CoreUWP.vcxproj.filters | 6 ++++++ UWP/GPU_UWP/GPU_UWP.vcxproj | 20 ++++++++++---------- UWP/NativeUWP/NativeUWP.vcxproj | 23 ++++++++++++----------- UWP/NativeUWP/NativeUWP.vcxproj.filters | 5 ++++- UWP/SPIRVCross_UWP/SPIRVCross_UWP.vcxproj | 20 ++++++++++---------- UWP/StorageFileLoader.cpp | 12 ------------ UWP/StorageFileLoader.h | 4 +--- UWP/UI_UWP/UI_UWP.vcxproj | 20 ++++++++++---------- UWP/UWP.vcxproj | 20 ++++++++++---------- UWP/UWPHost.cpp | 4 ---- UWP/UWPHost.h | 2 -- UWP/glslang_UWP/glslang_UWP.vcxproj | 20 ++++++++++---------- UWP/libkirk_UWP/libkirk_UWP.vcxproj | 20 ++++++++++---------- UWP/zlib_UWP/zlib_UWP.vcxproj | 20 ++++++++++---------- ext/native/gfx_es2/gpu_features.cpp | 4 ++++ 18 files changed, 120 insertions(+), 123 deletions(-) diff --git a/.gitignore b/.gitignore index 5b59310999..10ecce6bab 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ PPSSPPDebug64.exe.manifest PPSSPPDebug.exe.manifest assets/flash0 UWP/icph +UWP/.vs # For Mac .DS_Store diff --git a/UWP/CommonUWP/CommonUWP.vcxproj b/UWP/CommonUWP/CommonUWP.vcxproj index f79045110f..828b6b150d 100644 --- a/UWP/CommonUWP/CommonUWP.vcxproj +++ b/UWP/CommonUWP/CommonUWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 diff --git a/UWP/CoreUWP/CoreUWP.vcxproj b/UWP/CoreUWP/CoreUWP.vcxproj index 9bb7322606..b4e4bb6ea9 100644 --- a/UWP/CoreUWP/CoreUWP.vcxproj +++ b/UWP/CoreUWP/CoreUWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 @@ -405,6 +405,7 @@ + @@ -596,6 +597,7 @@ + diff --git a/UWP/CoreUWP/CoreUWP.vcxproj.filters b/UWP/CoreUWP/CoreUWP.vcxproj.filters index 0d7268912a..119ffa5bc1 100644 --- a/UWP/CoreUWP/CoreUWP.vcxproj.filters +++ b/UWP/CoreUWP/CoreUWP.vcxproj.filters @@ -617,6 +617,9 @@ MIPS\IR + + HLE + @@ -1152,5 +1155,8 @@ MIPS\IR + + HLE + \ No newline at end of file diff --git a/UWP/GPU_UWP/GPU_UWP.vcxproj b/UWP/GPU_UWP/GPU_UWP.vcxproj index b78ee46e09..b7d1f40921 100644 --- a/UWP/GPU_UWP/GPU_UWP.vcxproj +++ b/UWP/GPU_UWP/GPU_UWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 diff --git a/UWP/NativeUWP/NativeUWP.vcxproj b/UWP/NativeUWP/NativeUWP.vcxproj index 9c2153302f..f107dbabb7 100644 --- a/UWP/NativeUWP/NativeUWP.vcxproj +++ b/UWP/NativeUWP/NativeUWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 @@ -1180,6 +1180,7 @@ + NotUsing @@ -1315,4 +1316,4 @@ - + \ No newline at end of file diff --git a/UWP/NativeUWP/NativeUWP.vcxproj.filters b/UWP/NativeUWP/NativeUWP.vcxproj.filters index b009776eec..c7e48c5f7a 100644 --- a/UWP/NativeUWP/NativeUWP.vcxproj.filters +++ b/UWP/NativeUWP/NativeUWP.vcxproj.filters @@ -454,6 +454,9 @@ base + + math + @@ -720,4 +723,4 @@ gfx - + \ No newline at end of file diff --git a/UWP/SPIRVCross_UWP/SPIRVCross_UWP.vcxproj b/UWP/SPIRVCross_UWP/SPIRVCross_UWP.vcxproj index 8acb031408..d36a6fec45 100644 --- a/UWP/SPIRVCross_UWP/SPIRVCross_UWP.vcxproj +++ b/UWP/SPIRVCross_UWP/SPIRVCross_UWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 diff --git a/UWP/StorageFileLoader.cpp b/UWP/StorageFileLoader.cpp index 9e90b8b2ef..f758912460 100644 --- a/UWP/StorageFileLoader.cpp +++ b/UWP/StorageFileLoader.cpp @@ -137,18 +137,6 @@ void StorageFileLoader::EnsureOpen() { Sleep(100); } -// Note that multithreaded use could wreak havoc with this... -void StorageFileLoader::Seek(s64 absolutePos) { - EnsureOpen(); - seekPos_ = absolutePos; -} - -size_t StorageFileLoader::Read(size_t bytes, size_t count, void *data, Flags flags) { - size_t bytesRead = ReadAt(seekPos_, bytes, count, data, flags); - seekPos_ += bytesRead; - return bytesRead; -} - size_t StorageFileLoader::ReadAt(s64 absolutePos, size_t bytes, size_t count, void *data, Flags flags) { EnsureOpen(); if (operationRequested_ || responseAvailable_) diff --git a/UWP/StorageFileLoader.h b/UWP/StorageFileLoader.h index 11b35ecb0e..0a85a533bd 100644 --- a/UWP/StorageFileLoader.h +++ b/UWP/StorageFileLoader.h @@ -26,9 +26,7 @@ public: s64 FileSize() override; std::string Path() const override; std::string Extension() override; - void Seek(s64 absolutePos) override; - size_t Read(size_t bytes, size_t count, void *data, Flags flags = Flags::NONE) override; size_t ReadAt(s64 absolutePos, size_t bytes, size_t count, void *data, Flags flags = Flags::NONE) override; private: @@ -87,4 +85,4 @@ private: class StorageDirectoryWrapper { private: std::thread thread_; -}; \ No newline at end of file +}; diff --git a/UWP/UI_UWP/UI_UWP.vcxproj b/UWP/UI_UWP/UI_UWP.vcxproj index eada47b3b6..377dff98d5 100644 --- a/UWP/UI_UWP/UI_UWP.vcxproj +++ b/UWP/UI_UWP/UI_UWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 diff --git a/UWP/UWP.vcxproj b/UWP/UWP.vcxproj index 4be8a7258b..16f370ea04 100644 --- a/UWP/UWP.vcxproj +++ b/UWP/UWP.vcxproj @@ -46,67 +46,67 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 PPSSPP_UWP + 10.0.15063.0 Application true - v140 + v141 Application true - v140 + v141 Application true - v140 + v141 Application false true - v140 + v141 true Application false true - v140 + v141 true Application false false - v140 + v141 true Application false false - v140 + v141 true Application false true - v140 + v141 true Application false true - v140 + v141 true diff --git a/UWP/UWPHost.cpp b/UWP/UWPHost.cpp index b7281b95ad..72dd263857 100644 --- a/UWP/UWPHost.cpp +++ b/UWP/UWPHost.cpp @@ -176,10 +176,6 @@ bool UWPHost::CreateDesktopShortcut(std::string argumentPath, std::string gameTi return false; } -void UWPHost::GoFullscreen(bool viewFullscreen) { - // TODO -} - void UWPHost::ToggleDebugConsoleVisibility() { // N/A } diff --git a/UWP/UWPHost.h b/UWP/UWPHost.h index 75353b5cc3..635e37bccc 100644 --- a/UWP/UWPHost.h +++ b/UWP/UWPHost.h @@ -44,8 +44,6 @@ public: void NotifyUserMessage(const std::string &message, float duration = 1.0f, u32 color = 0x00FFFFFF, const char *id = nullptr) override; - void GoFullscreen(bool) override; - GraphicsContext *GetGraphicsContext() { return nullptr; } private: diff --git a/UWP/glslang_UWP/glslang_UWP.vcxproj b/UWP/glslang_UWP/glslang_UWP.vcxproj index 44b73b2814..5673b2a5be 100644 --- a/UWP/glslang_UWP/glslang_UWP.vcxproj +++ b/UWP/glslang_UWP/glslang_UWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 diff --git a/UWP/libkirk_UWP/libkirk_UWP.vcxproj b/UWP/libkirk_UWP/libkirk_UWP.vcxproj index 48113e0c0b..49ecaec065 100644 --- a/UWP/libkirk_UWP/libkirk_UWP.vcxproj +++ b/UWP/libkirk_UWP/libkirk_UWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 diff --git a/UWP/zlib_UWP/zlib_UWP.vcxproj b/UWP/zlib_UWP/zlib_UWP.vcxproj index 7d858a7cc5..ce7b30285c 100644 --- a/UWP/zlib_UWP/zlib_UWP.vcxproj +++ b/UWP/zlib_UWP/zlib_UWP.vcxproj @@ -46,61 +46,61 @@ 14.0 true Windows Store - 10.0.10586.0 10.0.10240.0 10.0 + 10.0.15063.0 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false false - v140 + v141 StaticLibrary false true - v140 + v141 StaticLibrary false true - v140 + v141 diff --git a/ext/native/gfx_es2/gpu_features.cpp b/ext/native/gfx_es2/gpu_features.cpp index aa96d648ca..56711f541a 100644 --- a/ext/native/gfx_es2/gpu_features.cpp +++ b/ext/native/gfx_es2/gpu_features.cpp @@ -492,6 +492,7 @@ static const char *glsl_fragment_prelude = "#endif\n"; std::string ApplyGLSLPrelude(const std::string &source, uint32_t stage) { +#if !PPSSPP_PLATFORM(UWP) std::string temp; std::string version = ""; if (!gl_extensions.IsGLES && gl_extensions.IsCoreContext) { @@ -512,4 +513,7 @@ std::string ApplyGLSLPrelude(const std::string &source, uint32_t stage) { temp = version + source; } return temp; +#else + return source; +#endif }