From 2a8081d6d46d8086fd0ee63e5659d575d4ab5388 Mon Sep 17 00:00:00 2001
From: Bud <75859057+bud3699@users.noreply.github.com>
Date: Wed, 16 Oct 2024 01:02:37 +0100
Subject: [PATCH] Added ARM64 Support
- Properly added ARM64 Support
---
.../MttVDD/Driver.cpp | 7 ++--
.../MttVDD/MttVDD.vcxproj | 34 +++++++++++++++++--
2 files changed, 35 insertions(+), 6 deletions(-)
diff --git a/Virtual Display Driver (HDR)/MttVDD/Driver.cpp b/Virtual Display Driver (HDR)/MttVDD/Driver.cpp
index b4b4fae..df442ec 100644
--- a/Virtual Display Driver (HDR)/MttVDD/Driver.cpp
+++ b/Virtual Display Driver (HDR)/MttVDD/Driver.cpp
@@ -323,7 +323,7 @@ void vddlog(const char* type, const char* message) {
return;
}
- string narrow_logPath = WStringToString(logPath); // Convert to narrow string
+ string narrow_logPath = WStringToString(logPath);
const char* mode = "a";
errno_t err = fopen_s(&logFile, narrow_logPath.c_str(), mode);
if (err == 0 && logFile != nullptr) {
@@ -1231,10 +1231,9 @@ void loadSettings() {
tie(width, height, refreshRate) = mode;
int vsync_num, vsync_den;
- float_to_vsync(refreshRate, vsync_num, vsync_den); // Convert refresh rate to vsync_num and vsync_den
+ float_to_vsync(refreshRate, vsync_num, vsync_den);
- // Use the correct type for vsync_num and vsync_den (int, int)
- res.push_back(make_tuple(width, height, vsync_num, vsync_den)); // Add the tuple with vsync values
+ res.push_back(make_tuple(width, height, vsync_num, vsync_den));
stringstream ss;
ss << "Resolution: " << width << "x" << height << " @ " << vsync_num << "/" << vsync_den << "Hz";
diff --git a/Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj b/Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj
index de451b9..ea85878 100644
--- a/Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj
+++ b/Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj
@@ -156,7 +156,9 @@
2
true
1
- 0
+ 10
+ Spectre
+ 25
Windows10
@@ -164,7 +166,10 @@
2
true
1
- 0
+ 10
+ Spectre
+ 25
+ 25
@@ -203,10 +208,12 @@
DbgengRemoteDebugger
true
+ true
DbgengRemoteDebugger
true
+ true
@@ -306,10 +313,22 @@
trace.h
Async
true
+ /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=4 /DIDDCX_MINIMUM_VERSION_REQUIRED=4 %(AdditionalOptions)
+ $(ProjectDir)..\..\Common\Include;%(AdditionalIncludeDirectories)
+ stdcpp17
%(AdditionalDependencies);OneCoreUAP.lib;avrt.lib
+
+ SHA1
+
+
+ copy "$(ProjectDir)..\vdd_settings.xml" "$(TargetDir)\MttVDD"
+
+
+ 10/16/2024
+
@@ -318,10 +337,21 @@
trace.h
Async
true
+ /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=10 /DIDDCX_MINIMUM_VERSION_REQUIRED=3 %(AdditionalOptions)
+ $(ProjectDir)..\..\Common\Include;%(AdditionalIncludeDirectories)
%(AdditionalDependencies);OneCoreUAP.lib;avrt.lib
+
+ SHA256
+
+
+ copy "$(ProjectDir)..\vdd_settings.xml" "$(TargetDir)\MttVDD"
+
+
+ 10/16/2024
+