From 19f5010bd26e010746436766c05515dff85d7695 Mon Sep 17 00:00:00 2001
From: Amos <48657826+Mauler125@users.noreply.github.com>
Date: Sun, 9 Jan 2022 16:29:36 +0100
Subject: [PATCH] Fix compiler error + rename debug dll's
Rename for easier debugging and config separation
---
r5dev/dedicated.vcxproj | 2 +-
r5dev/dedicated.vcxproj.filters | 2 +-
r5dev/r5dev.vcxproj | 4 ++--
r5dev/sdklauncher/sdklauncher.cpp | 4 ++--
r5dev/tier0/IConVar.cpp | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/r5dev/dedicated.vcxproj b/r5dev/dedicated.vcxproj
index a65957fe..b3aef01a 100644
--- a/r5dev/dedicated.vcxproj
+++ b/r5dev/dedicated.vcxproj
@@ -374,7 +374,7 @@
-
+
diff --git a/r5dev/dedicated.vcxproj.filters b/r5dev/dedicated.vcxproj.filters
index 55f98901..11d9800b 100644
--- a/r5dev/dedicated.vcxproj.filters
+++ b/r5dev/dedicated.vcxproj.filters
@@ -860,7 +860,7 @@
thirdparty\lzham\lzhamdecomp
-
+
sdk\mathlib
diff --git a/r5dev/r5dev.vcxproj b/r5dev/r5dev.vcxproj
index 0f8ec856..a808b972 100644
--- a/r5dev/r5dev.vcxproj
+++ b/r5dev/r5dev.vcxproj
@@ -497,7 +497,7 @@
true
$(SolutionDir)r5dev\;$(IncludePath);$(DXSDK_DIR)Include
$(SolutionDir)r5dev\thirdparty\detours\libs;$(SolutionDir)r5dev\thirdparty\lzham\libs;$(LibraryPath);$(DXSDK_DIR)Lib\x64
- r5apexvtxd
+ r5apexsdkd
$(SolutionDir)bin\$(Configuration)\
$(SolutionDir)build\$(ProjectName)\$(Configuration)\
$(VC_ReferencesPath_x64);
@@ -568,7 +568,7 @@
d3d11.lib;bcrypt.lib;%(AdditionalDependencies)
- copy /Y "$(TargetPath)" "..\..\..\bin\$(TargetFileName)"
+ copy /Y "$(TargetPath)" "..\..\..\$(TargetFileName)" && del "..\..\..\r5apexsdkd64.dll" && rename "..\..\..\$(TargetFileName)" "r5apexsdkd64.dll"
diff --git a/r5dev/sdklauncher/sdklauncher.cpp b/r5dev/sdklauncher/sdklauncher.cpp
index 5f180795..b9f114e6 100644
--- a/r5dev/sdklauncher/sdklauncher.cpp
+++ b/r5dev/sdklauncher/sdklauncher.cpp
@@ -56,7 +56,7 @@ bool LaunchR5Apex(LAUNCHMODE lMode, LAUNCHSTATE lState)
}
cfgFile.close(); // Close cfg file.
- WorkerDll = currentDirectory + "\\bin\\r5apexvtxd.dll"; // Get path to worker dll.
+ WorkerDll = currentDirectory + "\\r5apexsdkd64.dll"; // Get path to worker dll.
GameDirectory = currentDirectory + "\\r5apex.exe"; // Get path to game executeable.
StartupCommandLine = currentDirectory + "\\r5apex.exe " + CommandLineArguments; // Setup startup command line string.
@@ -106,7 +106,7 @@ bool LaunchR5Apex(LAUNCHMODE lMode, LAUNCHSTATE lState)
}
cfgFile.close(); // Close cfg file.
- WorkerDll = currentDirectory + "\\dedicated.dll"; // Get path to worker dll.
+ WorkerDll = currentDirectory + "\\dedicated.dll"; // Get path to worker dll.
GameDirectory = currentDirectory + "\\r5apex_ds.exe"; // Get path to game executeable.
StartupCommandLine = currentDirectory + "\\r5apex_ds.exe " + CommandLineArguments; // Setup startup command line string.
diff --git a/r5dev/tier0/IConVar.cpp b/r5dev/tier0/IConVar.cpp
index 60771b4b..fa7b5520 100644
--- a/r5dev/tier0/IConVar.cpp
+++ b/r5dev/tier0/IConVar.cpp
@@ -417,7 +417,7 @@ void ConVar::SetDefault(const char* pszDefault)
//-----------------------------------------------------------------------------
void ConVar::ChangeStringValue(const char* pszTempVal, float flOldValue)
{
- assert(!(m_nFlags & FCVAR_NEVER_AS_STRING));
+ assert(!(m_ConCommandBase.m_nFlags & FCVAR_NEVER_AS_STRING));
char* pszOldValue = (char*)_malloca(m_iStringLength);
if (pszOldValue != NULL)