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 0000000..0b5f878 Binary files /dev/null and b/SilentPatchSA/SilentPatchSA.rc differ 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