Updater: Add VC Runtime check

This commit is contained in:
refractionpcsx2 2024-06-09 15:57:09 +01:00
parent 4f5562ad3f
commit ac38a350a0
4 changed files with 7 additions and 4 deletions

View File

@ -7,10 +7,10 @@
#include "fmt/format.h"
// Minimum version is 14.38.33135.0.
static constexpr u32 MIN_VERSION_V0 = 14;
static constexpr u32 MIN_VERSION_V1 = 38;
static constexpr u32 MIN_VERSION_V2 = 33135;
static constexpr u32 MIN_VERSION_V3 = 0;
static constexpr DWORD MIN_VERSION_V0 = 14;
static constexpr DWORD MIN_VERSION_V1 = 38;
static constexpr DWORD MIN_VERSION_V2 = 33135;
static constexpr DWORD MIN_VERSION_V3 = 0;
static constexpr const char* DOWNLOAD_URL = "https://aka.ms/vs/17/release/vc_redist.x64.exe";
struct VCRuntimeCheckObject

View File

@ -9,6 +9,7 @@ target_link_libraries(updater PRIVATE common fmt::fmt)
target_include_directories(updater PRIVATE .)
if(WIN32)
target_sources(updater PRIVATE ../pcsx2-qt/VCRuntimeChecker.cpp)
target_link_libraries(updater PRIVATE
LZMA::LZMA
Comctl32.lib

View File

@ -53,6 +53,7 @@
<ItemGroup>
<ClCompile Include="Updater.cpp" />
<ClCompile Include="Windows\WindowsUpdater.cpp" />
<ClCompile Include="$(SolutionDir)pcsx2-qt\VCRuntimeChecker.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="SZErrors.h" />

View File

@ -3,6 +3,7 @@
<ItemGroup>
<ClCompile Include="Updater.cpp" />
<ClCompile Include="Windows\WindowsUpdater.cpp">
<ClCompile Include="$(SolutionDir)pcsx2-qt\VCRuntimeChecker.cpp" />
<Filter>Windows</Filter>
</ClCompile>
</ItemGroup>