DK22Pac / plugin-sdk

An SDK for developing ASI/CLEO plugins for GTA San Andreas, GTA Vice City and GTA III
zlib License
431 stars 114 forks source link

GetD3DDevice not work correct #166

Closed GeTechG closed 9 months ago

GeTechG commented 9 months ago

Visual Studio 2022 plugin_sa

An error appears during build:

1>C:\Users\User\Documents\plugin-sdk\shared\extensions\Shader.cpp (164,25): error C2672: "GetD3DDevice": the corresponding overloaded function was not found
1>C:\Users\User\Documents\plugin-sdk\plugin_sa\game_sa\RenderWare.h (31,4): message : could be "T *GetD3DDevice(void)"

As I found out, it is due to a call in the Shader.cpp file without specifying the type, but maybe I'm wrong, at least until the ffa9b1d commit changes, the assembly is being assembled.

P.s Yes, I was right, I fixed it #167