From 88664b2279695c5311a877159d326ac0accfb86c Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 30 Dec 2017 12:37:30 +0100 Subject: [PATCH] Re-added missing lunar64 to resources --- SilentPatchSA/SilentPatchSA.cpp | 3 ++- SilentPatchSA/SilentPatchSA.rc | Bin 0 -> 292 bytes SilentPatchSA/SilentPatchSA.vcxproj | 4 ++++ SilentPatchSA/SilentPatchSA.vcxproj.filters | 8 ++++++++ SilentPatchSA/StdAfxSA.h | 2 -- SilentPatchSA/resource.h | 7 +++++-- 6 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 SilentPatchSA/SilentPatchSA.rc diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 1f6f862..3e50b02 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -23,6 +23,7 @@ #include "ModuleList.hpp" #include "debugmenu_public.h" +#include "resource.h" // ============= Mod compatibility stuff ============= @@ -619,7 +620,7 @@ void DrawMoonWithPhases(uint8_t moonColor, float* screenPos, float sizeX, float } // Load from memory - HRSRC resource = FindResourceW(hDLLModule, MAKEINTRESOURCE(IDR_LUNAR64), RT_RCDATA); + HRSRC resource = FindResource(hDLLModule, MAKEINTRESOURCE(IDB_LUNAR64), RT_RCDATA); void* pMoonMask = LockResource( LoadResource(hDLLModule, resource) ); return CPNGFile::ReadFromMemory(pMoonMask, SizeofResource(hDLLModule, resource)); diff --git a/SilentPatchSA/SilentPatchSA.rc b/SilentPatchSA/SilentPatchSA.rc new file mode 100644 index 0000000000000000000000000000000000000000..0b5f878e351a50ca91af87cdab1540fedd87842a GIT binary patch literal 292 zcmZ{fI}5@<5QM*4@IM@9DdZZlSJMR4BB-rM;v*1Fxg>vIox3)KW!c@?nSK1e4u|1D zLq*_CCx6fjy9nzTxY4TGv6LB}-0|`tyjQG+1;wZvlvT=&syMCTBTmMgnYOqT7ec+d zt=M(q+L1ovg-z_JEXdh%WzU%-8%ox!v}4Lj-I|Mcl238QxJ?&%eHGIDOt*V|Yxx5z C7bz$J literal 0 HcmV?d00001 diff --git a/SilentPatchSA/SilentPatchSA.vcxproj b/SilentPatchSA/SilentPatchSA.vcxproj index 84ed7c4..31e5b8b 100644 --- a/SilentPatchSA/SilentPatchSA.vcxproj +++ b/SilentPatchSA/SilentPatchSA.vcxproj @@ -244,6 +244,10 @@ copy /y "$(TargetPath)" "D:\gry\GTA San Andreas clean\scripts\newsteam_r2_lowvio + + + + diff --git a/SilentPatchSA/SilentPatchSA.vcxproj.filters b/SilentPatchSA/SilentPatchSA.vcxproj.filters index 517844c..52c8ac6 100644 --- a/SilentPatchSA/SilentPatchSA.vcxproj.filters +++ b/SilentPatchSA/SilentPatchSA.vcxproj.filters @@ -160,5 +160,13 @@ Resource Files + + Resource Files + + + + + Resource Files + \ No newline at end of file diff --git a/SilentPatchSA/StdAfxSA.h b/SilentPatchSA/StdAfxSA.h index bfc8b11..22f989e 100644 --- a/SilentPatchSA/StdAfxSA.h +++ b/SilentPatchSA/StdAfxSA.h @@ -17,8 +17,6 @@ #include #include -#include "resource.h" - #include "MemoryMgr.h" #include "Maths.h" #include "rwpred.hpp" diff --git a/SilentPatchSA/resource.h b/SilentPatchSA/resource.h index 5448397..e262f95 100644 --- a/SilentPatchSA/resource.h +++ b/SilentPatchSA/resource.h @@ -1,2 +1,5 @@ -#define IDR_NVCSHADER 101 -#define IDR_LUNAR64 102 +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by SilentPatchSA.rc +// +#define IDB_LUNAR64 101