
19.08.2021, 05:19
|
|
Флудер
Регистрация: 06.11.2017
Сообщений: 2,759
С нами:
4483143
Репутация:
183
|
|
Сообщение от Cake_
Код:
Код:
#define __RwD3DDevice 0x00C97C28
#define DIRECTX_VT_FUNC(offset) (reinterpret_cast(*reinterpret_cast(*reinterpret_cast(__RwD3DDevice)))[offset])
C++:
Код:
constexpr
auto
__RwD3DDevice
=
0x00C97C28
;
void
*
DIRECTX_VT_FUNC
(
unsigned
int
offset
)
{
unsigned
long
Device
=
*
reinterpret_cast
(
__RwD3DDevice
)
;
return
*
reinterpret_cast
(
Device
)
[
offset
]
;
}
UPD:
C++20:
C++:
Код:
constinit
auto
__RwD3DDevice
=
0x00C97C28
;
void
*
DIRECTX_VT_FUNC
(
unsigned
int
offset
)
{
unsigned
long
Device
=
*
reinterpret_cast
(
__RwD3DDevice
)
;
return
*
reinterpret_cast
(
Device
)
[
offset
]
;
}
|
|
|