Re-added missing lunar64 to resources

This commit is contained in:
Silent 2017-12-30 12:37:30 +01:00
parent 482686151e
commit 88664b2279
6 changed files with 19 additions and 5 deletions

View File

@ -23,6 +23,7 @@
#include "ModuleList.hpp" #include "ModuleList.hpp"
#include "debugmenu_public.h" #include "debugmenu_public.h"
#include "resource.h"
// ============= Mod compatibility stuff ============= // ============= Mod compatibility stuff =============
@ -619,7 +620,7 @@ void DrawMoonWithPhases(uint8_t moonColor, float* screenPos, float sizeX, float
} }
// Load from memory // 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) ); void* pMoonMask = LockResource( LoadResource(hDLLModule, resource) );
return CPNGFile::ReadFromMemory(pMoonMask, SizeofResource(hDLLModule, resource)); return CPNGFile::ReadFromMemory(pMoonMask, SizeofResource(hDLLModule, resource));

Binary file not shown.

View File

@ -244,6 +244,10 @@ copy /y "$(TargetPath)" "D:\gry\GTA San Andreas clean\scripts\newsteam_r2_lowvio
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ResourceCompile Include="..\SilentPatch\SilentPatch.rc" /> <ResourceCompile Include="..\SilentPatch\SilentPatch.rc" />
<ResourceCompile Include="SilentPatchSA.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="lunar64.png" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">

View File

@ -160,5 +160,13 @@
<ResourceCompile Include="..\SilentPatch\SilentPatch.rc"> <ResourceCompile Include="..\SilentPatch\SilentPatch.rc">
<Filter>Resource Files</Filter> <Filter>Resource Files</Filter>
</ResourceCompile> </ResourceCompile>
<ResourceCompile Include="SilentPatchSA.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<Image Include="lunar64.png">
<Filter>Resource Files</Filter>
</Image>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -17,8 +17,6 @@
#include <rphanim.h> #include <rphanim.h>
#include <rtpng.h> #include <rtpng.h>
#include "resource.h"
#include "MemoryMgr.h" #include "MemoryMgr.h"
#include "Maths.h" #include "Maths.h"
#include "rwpred.hpp" #include "rwpred.hpp"

View File

@ -1,2 +1,5 @@
#define IDR_NVCSHADER 101 //{{NO_DEPENDENCIES}}
#define IDR_LUNAR64 102 // Microsoft Visual C++ generated include file.
// Used by SilentPatchSA.rc
//
#define IDB_LUNAR64 101