From 82bc6f6cc5a1dd8ebfe150409b17cc9956e9dc51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 14 Jul 2020 13:47:07 +0200 Subject: [PATCH] Windows ARM fix, cleanup --- Common/MachineContext.h | 6 ++++++ GPU/Common/ShaderTranslation.cpp | 5 +++++ UI/UI.vcxproj | 10 +++++----- Windows/PPSSPP.vcxproj | 5 +---- ext/native/native.vcxproj | 1 - headless/Headless.vcxproj | 4 ---- 6 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Common/MachineContext.h b/Common/MachineContext.h index 5fca7a3204..f6aa42d7ea 100644 --- a/Common/MachineContext.h +++ b/Common/MachineContext.h @@ -56,6 +56,12 @@ typedef CONTEXT SContext; #define CTX_SP Sp #define CTX_PC Pc +#elif PPSSPP_ARCH(ARM) + +//#define CTX_REG(x) R##x +#define CTX_SP Sp +#define CTX_PC Pc + #endif #elif PPSSPP_PLATFORM(MACOS) diff --git a/GPU/Common/ShaderTranslation.cpp b/GPU/Common/ShaderTranslation.cpp index 2361ba9e11..3693e2393d 100644 --- a/GPU/Common/ShaderTranslation.cpp +++ b/GPU/Common/ShaderTranslation.cpp @@ -29,6 +29,11 @@ #undef realloc #endif +// Weird issue +#if PPSSPP_PLATFORM(WINDOWS) && PPSSPP_ARCH(ARM) +#undef free +#endif + #include "base/logging.h" #include "base/basictypes.h" #include "base/stringutil.h" diff --git a/UI/UI.vcxproj b/UI/UI.vcxproj index 2ea403dff0..132b9b9640 100644 --- a/UI/UI.vcxproj +++ b/UI/UI.vcxproj @@ -248,7 +248,7 @@ Level3 _CRTDBG_MAP_ALLOC;USING_WIN_UI;_CRT_SECURE_NO_WARNINGS;_ARCH_64=1;WIN32;_DEBUG;_LIB;_UNICODE;UNICODE;%(PreprocessorDefinitions) - ../common;..;../ext/native;../ext/glew;../ext/snappy;../ext/zlib;../ext/native/ext + ..\ffmpeg\WindowsInclude;..\ffmpeg\Windows\aarch64\include;../common;..;../ext/native;../ext/glew;../ext/snappy;../ext/zlib;../ext/native/ext true false false @@ -269,7 +269,7 @@ Level3 _CRTDBG_MAP_ALLOC;USING_WIN_UI;_CRT_SECURE_NO_WARNINGS;_ARCH_32=1;WIN32;_DEBUG;_LIB;_UNICODE;UNICODE;%(PreprocessorDefinitions) - ..\ffmpeg\WindowsInclude;..\ffmpeg\Windows\x86_64\include;../common;..;../ext/native;../ext/glew;../ext/snappy;../ext/zlib;../ext/native/ext + ..\ffmpeg\WindowsInclude;..\ffmpeg\Windows\arm\include;../common;..;../ext/native;../ext/glew;../ext/snappy;../ext/zlib;../ext/native/ext true false false @@ -346,7 +346,7 @@ true true USING_WIN_UI;_CRT_SECURE_NO_WARNINGS;_ARCH_64=1;WIN32;NDEBUG;_LIB;_UNICODE;UNICODE;%(PreprocessorDefinitions) - ../common;..;../ext/native;../ext/glew;../ext/snappy;../ext/zlib;../ext/native/ext + ..\ffmpeg\WindowsInclude;..\ffmpeg\Windows\aarch64\include;../common;..;../ext/native;../ext/glew;../ext/snappy;../ext/zlib;../ext/native/ext false true false @@ -373,7 +373,7 @@ true true USING_WIN_UI;_CRT_SECURE_NO_WARNINGS;_ARCH_32=1;WIN32;NDEBUG;_LIB;_UNICODE;UNICODE;%(PreprocessorDefinitions) - ..\ffmpeg\WindowsInclude;..\ffmpeg\Windows\x86_64\include;../common;..;../ext/native;../ext/glew;../ext/snappy;../ext/zlib;../ext/native/ext + ..\ffmpeg\WindowsInclude;..\ffmpeg\Windows\arm\include;../common;..;../ext/native;../ext/glew;../ext/snappy;../ext/zlib;../ext/native/ext false true false @@ -394,4 +394,4 @@ - + \ No newline at end of file diff --git a/Windows/PPSSPP.vcxproj b/Windows/PPSSPP.vcxproj index aed4bc4e16..ed8abc3a30 100644 --- a/Windows/PPSSPP.vcxproj +++ b/Windows/PPSSPP.vcxproj @@ -119,7 +119,6 @@ Application Unicode $(DefaultPlatformToolset) - Spectre true @@ -349,7 +348,6 @@ stdafx.h MultiThreadedDebug false - NotSet Precise true false @@ -513,7 +511,6 @@ Sync MultiThreaded false - NotSet Precise Use Level3 @@ -1720,4 +1717,4 @@ - + \ No newline at end of file diff --git a/ext/native/native.vcxproj b/ext/native/native.vcxproj index 919ce1166b..d13049e3e9 100644 --- a/ext/native/native.vcxproj +++ b/ext/native/native.vcxproj @@ -310,7 +310,6 @@ true _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) ..\..\ext;..\..;..\..\dx9sdk\Include;..\..\dx9sdk\Include\DX11;..\native\ext\libpng17;..\zlib;..\ext\zlib;..\native;..\RollerballGL;..\glew;..\SDL\include;..\native\ext;%(AdditionalIncludeDirectories); - NotSet Precise true false diff --git a/headless/Headless.vcxproj b/headless/Headless.vcxproj index 13618da2af..8702c8a511 100644 --- a/headless/Headless.vcxproj +++ b/headless/Headless.vcxproj @@ -243,7 +243,6 @@ Level3 _CRTDBG_MAP_ALLOC;USING_WIN_UI;GLEW_STATIC;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_ARCH_64=1;_CONSOLE;_UNICODE;UNICODE;%(PreprocessorDefinitions) ../ffmpeg/Windows/aarch64/include;../dx9sdk/Include/DX11;../Common;..;../Core;../ext/glew;../ext/native - NotSet Precise false true @@ -273,7 +272,6 @@ Level3 _CRTDBG_MAP_ALLOC;USING_WIN_UI;GLEW_STATIC;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_ARCH_32=1;_CONSOLE;_UNICODE;UNICODE;%(PreprocessorDefinitions) ../ffmpeg/Windows/arm/include;../dx9sdk/Include/DX11;../Common;..;../Core;../ext/glew;../ext/native - NotSet Precise false true @@ -381,7 +379,6 @@ USING_WIN_UI;GLEW_STATIC;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_ARCH_64=1;_CONSOLE;_UNICODE;UNICODE;%(PreprocessorDefinitions) ../ffmpeg/Windows/aarch64/include;../dx9sdk/Include/DX11;../Common;..;../Core;../ext/glew;../ext/native false - NotSet Precise Speed false @@ -416,7 +413,6 @@ USING_WIN_UI;GLEW_STATIC;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_ARCH_32=1;_CONSOLE;_UNICODE;UNICODE;%(PreprocessorDefinitions) ../ffmpeg/Windows/arm/include;../dx9sdk/Include/DX11;../Common;..;../Core;../ext/glew;../ext/native false - NotSet Precise Speed false