remove vcCheck (#373)

This commit is contained in:
parhelia512 2025-04-20 09:49:56 -04:00 committed by GitHub
parent 9bdd55238c
commit cb87d0f07c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 1 additions and 23 deletions

View File

@ -204,7 +204,6 @@ set(PROJECT_SOURCES
include/stats/connections/connectionLister.hpp
src/stats/connectionLister/connectionLister.cpp
src/configs/proxy/Json2Bean.cpp
include/sys/windows/vcCheck.h
include/ui/utils/TrafficChart.h
include/ui/utils/CustomChartView.h
include/sys/windows/eventHandler.h

View File

@ -1,4 +1,4 @@
set(PLATFORM_SOURCES 3rdparty/WinCommander.cpp src/sys/windows/guihelper.cpp src/sys/windows/MiniDump.cpp src/sys/windows/vcCheck.cpp src/sys/windows/eventHandler.cpp)
set(PLATFORM_SOURCES 3rdparty/WinCommander.cpp src/sys/windows/guihelper.cpp src/sys/windows/MiniDump.cpp src/sys/windows/eventHandler.cpp)
set(PLATFORM_LIBRARIES wininet wsock32 ws2_32 user32 rasapi32 iphlpapi)
include(cmake/windows/generate_product_version.cmake)

View File

@ -1,3 +0,0 @@
#pragma once
bool checkVCRedist();

View File

@ -68,14 +68,6 @@ int main(int argc, char* argv[]) {
QApplication::setQuitOnLastWindowClosed(false);
QApplication a(argc, argv);
#ifdef Q_OS_WIN
if (!checkVCRedist())
{
QMessageBox::critical(nullptr, "Cannot run Nekoray", "You need to install VC 2022 Redistributable.<br>Download it from <a href='https://aka.ms/vs/17/release/vc_redist.x64.exe'>here</a>.");
return 1;
}
#endif
// Clean
QDir::setCurrent(QApplication::applicationDirPath());
if (QFile::exists("updater.old")) {

View File

@ -1,10 +0,0 @@
#include <include/sys/windows/vcCheck.h>
#include <QSettings>
bool checkVCRedist()
{
QSettings settings("HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\x64", QSettings::NativeFormat);
return (settings.value("Installed").toInt() == 1 ? settings.value("Bld").toInt() >= 32919 : false);
}