mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-04 10:13:02 +05:00
Compare commits
11 commits
2bc1d9e6c9
...
d87b934004
Author | SHA1 | Date | |
---|---|---|---|
|
d87b934004 | ||
|
a48e81a296 | ||
|
b742b73ad4 | ||
|
9ab93cd79e | ||
|
0d1694aeee | ||
|
8ed97f0e7f | ||
|
055a319374 | ||
|
5459cbf037 | ||
|
a3f946b30f | ||
|
0c377ae10e | ||
|
47ac4d7f2d |
7 changed files with 12 additions and 10 deletions
|
@ -1,3 +1,3 @@
|
||||||
LIBRARY DDRAW
|
LIBRARY DDRAW
|
||||||
EXPORTS
|
EXPORTS
|
||||||
DirectDrawCreateEx = DirectDrawCreateEx@16
|
DirectDrawCreateEx=DirectDrawCreateEx@16 @10
|
||||||
|
|
|
@ -83,6 +83,7 @@
|
||||||
<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>
|
||||||
|
@ -112,6 +113,7 @@
|
||||||
<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>
|
||||||
|
@ -141,6 +143,7 @@
|
||||||
<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>
|
||||||
|
@ -169,4 +172,4 @@
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -14,7 +14,6 @@
|
||||||
#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,6 +9,10 @@
|
||||||
#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,10 +3,6 @@
|
||||||
#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
|
||||||
{
|
{
|
||||||
|
@ -72,4 +68,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 _MSC_VER
|
#ifndef _stricmp
|
||||||
#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 WorldRemove
|
call offset WorldRemove
|
||||||
add esp, 4
|
add esp, 4
|
||||||
|
|
||||||
// Call dtor
|
// Call dtor
|
||||||
|
|
Loading…
Reference in a new issue