Skip to content

Commit

Permalink
Updater: Add VC Runtime check
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jun 9, 2024
1 parent 4f5562a commit ac38a35
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pcsx2-qt/VCRuntimeChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions updater/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions updater/updater.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
1 change: 1 addition & 0 deletions updater/updater.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ac38a35

Please sign in to comment.