DK22Pac/plugin-sdk

GPS example broken due to missing type on GetD3DDevice template function

likeawindrammer opened this issue · 1 comments

Related to #167 and #166
I get the same error building the GPS example with the use of GetD3DDevice
https://github.com/DK22Pac/plugin-sdk/blob/master/examples/GPS/Main.cpp#L97

However I'm unsure what would be the preferred way of fixing this. One way would be to do like in that PR and add the type IDirect3DDevice9 at every use of GetD3DDevice. Or another way would be to add a default type in the definition of the template such that it becomes template<typename T = IDirect3DDevice9>
here
https://github.com/DK22Pac/plugin-sdk/blob/915abf273607cad933cea729365adf22729ae7e7/plugin_sa/game_sa/RenderWare.h#L30C1-L30C1

These and other errors in the examples were fixed with eb990b7. Thank you gennariarmando!