mirror of https://github.com/PCSX2/pcsx2.git
Updater: Add VC Runtime check
This commit is contained in:
parent
4f5562ad3f
commit
ac38a350a0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue