mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
WinUpdater: Check OS and VC++ Redist versions.
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
#include "MacUpdater/ViewController.h"
|
||||
|
||||
#include "UpdaterCommon/Platform.h"
|
||||
#include "UpdaterCommon/UI.h"
|
||||
|
||||
#include <Cocoa/Cocoa.h>
|
||||
@ -136,3 +137,21 @@ void UI::Stop()
|
||||
void UI::Init()
|
||||
{
|
||||
}
|
||||
|
||||
Platform::BuildInfo::BuildInfo(const std::string& content)
|
||||
{
|
||||
map = {{"OSMinimumVersionMacOS", ""}};
|
||||
Parse(content);
|
||||
}
|
||||
|
||||
bool Platform::VersionCheck(const BuildInfo& this_build_info, const BuildInfo& next_build_info)
|
||||
{
|
||||
// TODO implement OS Minimum Version check
|
||||
// It should go something like this:
|
||||
// auto target_version = next_build_info.GetVersion("OSMinimumVersionMacOS");
|
||||
// if (!target_version.has_value() || current_version >= target_version)
|
||||
// return true;
|
||||
// show error
|
||||
// return false;
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user