diff --git a/CMakeLists.txt b/CMakeLists.txt index 70d46202cd..fd40d84a34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -419,6 +419,7 @@ else() endif() set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_NDEBUG") + set(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:"libcmt.lib") endif() if(WIN32) @@ -2360,7 +2361,6 @@ set(WindowsFiles Windows/Debugger/Debugger_MemoryDlg.h Windows/Debugger/Debugger_Lists.cpp Windows/Debugger/Debugger_Lists.h - Windows/Debugger/Debugger_SymbolMap.h Windows/Debugger/Debugger_VFPUDlg.cpp Windows/Debugger/Debugger_VFPUDlg.h Windows/Debugger/WatchItemWindow.cpp @@ -2408,6 +2408,13 @@ set(WindowsFiles Windows/W32Util/ShellUtil.h Windows/W32Util/TabControl.cpp Windows/W32Util/TabControl.h + Windows/W32Util/IatHook.h + Windows/W32Util/ContextMenu.h + Windows/W32Util/ContextMenu.cpp + Windows/W32Util/DarkMode.h + Windows/W32Util/DarkMode.cpp + Windows/W32Util/UAHMenuBar.h + Windows/W32Util/UAHMenuBar.cpp Windows/WindowsHost.cpp Windows/WindowsHost.h Windows/MainWindow.cpp @@ -2431,7 +2438,7 @@ set(WindowsFiles list(APPEND LinkCommon ${CoreLibName} ${CMAKE_THREAD_LIBS_INIT}) if(WIN32) - list(APPEND LinkCommon kernel32 user32 gdi32 shell32 comctl32 dsound xinput d3d9 winmm dinput8 ole32 winspool ksuser mf mfplat mfreadwrite mfuuid shlwapi) + list(APPEND LinkCommon kernel32 user32 gdi32 shell32 comctl32 dsound xinput d3d9 winmm dinput8 ole32 winspool ksuser mf uxtheme mfplat mfreadwrite mfuuid shlwapi) #setup_target_project(${TargetBin} Windows) list(APPEND NativeAppSource ${WindowsFiles}) endif() diff --git a/Windows/GEDebugger/TabState.cpp b/Windows/GEDebugger/TabState.cpp index 0a50b4fd19..5719d2a347 100644 --- a/Windows/GEDebugger/TabState.cpp +++ b/Windows/GEDebugger/TabState.cpp @@ -15,6 +15,7 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. +#include "Common/CommonWindows.h" #include #include "Common/CommonFuncs.h" #include "Common/CommonTypes.h" diff --git a/Windows/GEDebugger/TabVertices.cpp b/Windows/GEDebugger/TabVertices.cpp index 35ab37e498..4304084a4d 100644 --- a/Windows/GEDebugger/TabVertices.cpp +++ b/Windows/GEDebugger/TabVertices.cpp @@ -15,6 +15,7 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. +#include "Common/CommonWindows.h" #include #include "Common/CommonTypes.h" #include "Common/Data/Encoding/Utf8.h" diff --git a/Windows/W32Util/DarkMode.h b/Windows/W32Util/DarkMode.h index 50ac9498db..0ad97a8771 100644 --- a/Windows/W32Util/DarkMode.h +++ b/Windows/W32Util/DarkMode.h @@ -1,9 +1,7 @@ #pragma once -#define WIN32_LEAN_AND_MEAN -#define NOMINMAX -#include -#include +#include "Common/CommonWindows.h" +#include #include #include #include diff --git a/Windows/W32Util/IatHook.h b/Windows/W32Util/IatHook.h index 1f259a5f20..2319e3ceac 100644 --- a/Windows/W32Util/IatHook.h +++ b/Windows/W32Util/IatHook.h @@ -5,6 +5,10 @@ #pragma once +#include "Common/CommonWindows.h" +#include +#include + template constexpr T RVA2VA(T1 base, T2 rva) {