From 1ad3450cab80a948a665cec9984b51f7222f430a Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Windows)" <rob@synchro.net>
Date: Mon, 25 Sep 2023 19:01:16 -0700
Subject: [PATCH] Use the new MSVS 2022 "common tools" environment variable:
 VS170COMNTOOLS

to find VsMSBuildCmd.bat

This means you can't use MSVS 2019 with this build.bat any longer.
---
 src/sbbs3/build.bat    | 4 ++--
 src/sexpots/build.bat  | 4 ++--
 src/syncterm/build.bat | 4 ++--
 src/vdmodem/build.bat  | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/sbbs3/build.bat b/src/sbbs3/build.bat
index dd8dde46a9..9d4a612608 100755
--- a/src/sbbs3/build.bat
+++ b/src/sbbs3/build.bat
@@ -1,6 +1,6 @@
 @echo off
 setlocal
-rem *** Requires Microsoft Visual C++ 2019 ***
-call "%VS160COMNTOOLS%\VsMSBuildCmd.bat"
+rem *** Requires Microsoft Visual C++ 2022 ***
+call "%VS170COMNTOOLS%\VsMSBuildCmd.bat"
 msbuild sbbs3.sln /p:Platform="Win32" %*
 if errorlevel 1 echo. & echo !ERROR(s) occurred & exit /b 1
\ No newline at end of file
diff --git a/src/sexpots/build.bat b/src/sexpots/build.bat
index 8df41786d0..9bd3944f67 100644
--- a/src/sexpots/build.bat
+++ b/src/sexpots/build.bat
@@ -1,6 +1,6 @@
 @echo off
 setlocal
-rem *** Requires Microsoft Visual C++ 2019 ***
-call "%VS160COMNTOOLS%\VsMSBuildCmd.bat"
+rem *** Requires Microsoft Visual C++ 2022 ***
+call "%VS170COMNTOOLS%\VsMSBuildCmd.bat"
 msbuild sexpots.sln /p:Platform="Win32" %*
 if errorlevel 1 echo. & echo !ERROR(s) occurred & exit /b 1
\ No newline at end of file
diff --git a/src/syncterm/build.bat b/src/syncterm/build.bat
index db5e9239c6..8d6f91cbe9 100644
--- a/src/syncterm/build.bat
+++ b/src/syncterm/build.bat
@@ -1,6 +1,6 @@
 @echo off
 setlocal
-rem *** Requires Microsoft Visual C++ 2019 ***
-call "%VS160COMNTOOLS%\VsMSBuildCmd.bat"
+rem *** Requires Microsoft Visual C++ 2022 ***
+call "%VS170COMNTOOLS%\VsMSBuildCmd.bat"
 msbuild syncterm.sln /p:Platform="Win32" %*
 if errorlevel 1 echo. & echo !ERROR(s) occurred & exit /b 1
\ No newline at end of file
diff --git a/src/vdmodem/build.bat b/src/vdmodem/build.bat
index 69c6640592..36fec70ab3 100644
--- a/src/vdmodem/build.bat
+++ b/src/vdmodem/build.bat
@@ -1,6 +1,6 @@
 @echo off
 setlocal
-rem *** Requires Microsoft Visual C++ 2019 ***
-call "%VS160COMNTOOLS%\VsMSBuildCmd.bat"
+rem *** Requires Microsoft Visual C++ 2022 ***
+call "%VS170COMNTOOLS%\VsMSBuildCmd.bat"
 msbuild vdmodem.sln /p:Platform="Win32" %*
 if errorlevel 1 echo. & echo !ERROR(s) occurred & exit /b 1
\ No newline at end of file
-- 
GitLab