mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53:01 +05:00
Compare commits
11 commits
a48e81a296
...
870e3d63a1
Author | SHA1 | Date | |
---|---|---|---|
|
870e3d63a1 | ||
|
3f26e0045e | ||
|
b7a08843be | ||
|
fd395f3c6a | ||
|
d9c3561d7b | ||
|
8a930e6e4b | ||
|
90e5ba15ab | ||
|
f9adddf0e1 | ||
|
d49e03e372 | ||
|
4445c9e24a | ||
|
23af8cd7ca |
7 changed files with 10 additions and 12 deletions
|
@ -1,3 +1,3 @@
|
||||||
LIBRARY DDRAW
|
LIBRARY DDRAW
|
||||||
EXPORTS
|
EXPORTS
|
||||||
DirectDrawCreateEx=DirectDrawCreateEx@16 @10
|
DirectDrawCreateEx = DirectDrawCreateEx@16
|
||||||
|
|
|
@ -83,7 +83,6 @@
|
||||||
<AdditionalOptions>/Zc:threadSafeInit- /Zc:strictStrings %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zc:threadSafeInit- /Zc:strictStrings %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<ModuleDefinitionFile>ddraw.def</ModuleDefinitionFile>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<DelayLoadDLLs>shell32.dll;shlwapi.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
|
<DelayLoadDLLs>shell32.dll;shlwapi.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
|
||||||
<LargeAddressAware>true</LargeAddressAware>
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
@ -113,7 +112,6 @@
|
||||||
<Link>
|
<Link>
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<ModuleDefinitionFile>ddraw.def</ModuleDefinitionFile>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<DelayLoadDLLs>shell32.dll;shlwapi.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
|
<DelayLoadDLLs>shell32.dll;shlwapi.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
|
||||||
<LargeAddressAware>true</LargeAddressAware>
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
@ -143,7 +141,6 @@
|
||||||
<Link>
|
<Link>
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<ModuleDefinitionFile>ddraw.def</ModuleDefinitionFile>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<DelayLoadDLLs>shell32.dll;shlwapi.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
|
<DelayLoadDLLs>shell32.dll;shlwapi.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
|
||||||
<LargeAddressAware>true</LargeAddressAware>
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
@ -172,4 +169,4 @@
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include "Desktop.h"
|
#include "Desktop.h"
|
||||||
|
|
||||||
#pragma comment(lib, "shlwapi.lib")
|
#pragma comment(lib, "shlwapi.lib")
|
||||||
|
#pragma comment(linker, "/EXPORT:DirectDrawCreateEx=_DirectDrawCreateEx@16")
|
||||||
|
|
||||||
extern "C" HRESULT WINAPI DirectDrawCreateEx(GUID FAR *lpGUID, LPVOID *lplpDD, REFIID iid, IUnknown FAR *pUnkOuter)
|
extern "C" HRESULT WINAPI DirectDrawCreateEx(GUID FAR *lpGUID, LPVOID *lplpDD, REFIID iid, IUnknown FAR *pUnkOuter)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
#define STATIC_INLINE static inline
|
#define STATIC_INLINE static inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RwEngineInstance (*rwengine)
|
|
||||||
|
|
||||||
extern "C" void** rwengine;
|
|
||||||
|
|
||||||
namespace ExtraCompSpecularity
|
namespace ExtraCompSpecularity
|
||||||
{
|
{
|
||||||
void ReadExtraCompSpecularityExceptions(const wchar_t* pPath);
|
void ReadExtraCompSpecularityExceptions(const wchar_t* pPath);
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
#include <rwcore.h>
|
#include <rwcore.h>
|
||||||
#include <rpworld.h>
|
#include <rpworld.h>
|
||||||
|
|
||||||
|
#define RwEngineInstance (*rwengine)
|
||||||
|
|
||||||
|
extern void** rwengine;
|
||||||
|
|
||||||
template<RwRenderState State>
|
template<RwRenderState State>
|
||||||
class RwScopedRenderState
|
class RwScopedRenderState
|
||||||
{
|
{
|
||||||
|
@ -68,4 +72,4 @@ Pred RpGeometryForAllMaterials(RpGeometry* geometry, Pred callback)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return callback;
|
return callback;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#ifndef _stricmp
|
#ifndef _MSC_VER
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#define _stricmp strcasecmp
|
#define _stricmp strcasecmp
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -978,7 +978,7 @@ namespace GenerateNewPickup_ReuseObjectFix
|
||||||
mov edi, eax
|
mov edi, eax
|
||||||
|
|
||||||
push edi
|
push edi
|
||||||
call offset WorldRemove
|
call WorldRemove
|
||||||
add esp, 4
|
add esp, 4
|
||||||
|
|
||||||
// Call dtor
|
// Call dtor
|
||||||
|
|
Loading…
Reference in a new issue