TheAssemblyArmada / Vanilla-Conquer

Vanilla Conquer provides clean, cross-platform builds of the C&C Remastered Collection and the standalone legacy games.
Other
351 stars 53 forks source link

Remove ADVAPI32.dll dependency from Red Alert remaster dll #113

Closed TobiasKarnat closed 4 years ago

TobiasKarnat commented 4 years ago

To remove the dependency to ADVAPI32.dll.

diff -urN a/redalert/init.cpp b/redalert/init.cpp
--- a/redalert/init.cpp 2020-08-10 18:34:52.240247730 +0200
+++ b/redalert/init.cpp 2020-08-10 18:36:42.375571959 +0200
@@ -3371,6 +3371,8 @@

 bool bUsingDVD = false;

+#ifndef REMASTER_BUILD
+
 const char* Game_Registry_Key();

 //***********************************************************************************************
@@ -3411,6 +3413,8 @@
     return bUsingDVD;
 }

+#endif
+
 //***********************************************************************************************
 bool Using_DVD()
 {
OmniBlade commented 4 years ago

I've taken the liberty of turning this patch into a PR for you.