Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Hey robinsch, have another question about vmt.

[DiscordArchive] Hey robinsch, have another question about vmt.

[DiscordArchive] Hey robinsch, have another question about vmt.

Pages (10): Previous 1 2 3 4 5 10 Next  
rektbyfaith
Administrator
0
06-06-2025, 12:32 PM
#21
Archived author: Deamon • Posted: 2025-06-06T12:32:30.021000+00:00
Original source

`virtual table`'s intent is to have same class behave differently depending on what class has inherited this base class.
It's achieved by rewriting the `virtual table` pointer, which usually is at `0x0` offset of the class
rektbyfaith
06-06-2025, 12:32 PM #21

Archived author: Deamon • Posted: 2025-06-06T12:32:30.021000+00:00
Original source

`virtual table`'s intent is to have same class behave differently depending on what class has inherited this base class.
It's achieved by rewriting the `virtual table` pointer, which usually is at `0x0` offset of the class

rektbyfaith
Administrator
0
06-06-2025, 12:33 PM
#22
Archived author: Deamon • Posted: 2025-06-06T12:33:27.880000+00:00
Original source

`virtual table` from descendent class would be similar to `base class` except the functions it overriden
rektbyfaith
06-06-2025, 12:33 PM #22

Archived author: Deamon • Posted: 2025-06-06T12:33:27.880000+00:00
Original source

`virtual table` from descendent class would be similar to `base class` except the functions it overriden

rektbyfaith
Administrator
0
06-06-2025, 12:33 PM
#23
Archived author: robinsch • Posted: 2025-06-06T12:33:43.718000+00:00
Original source

but we have multiple inheritance
rektbyfaith
06-06-2025, 12:33 PM #23

Archived author: robinsch • Posted: 2025-06-06T12:33:43.718000+00:00
Original source

but we have multiple inheritance

rektbyfaith
Administrator
0
06-06-2025, 12:33 PM
#24
Archived author: robinsch • Posted: 2025-06-06T12:33:52.644000+00:00
Original source

therefore there can be multiple vtables
rektbyfaith
06-06-2025, 12:33 PM #24

Archived author: robinsch • Posted: 2025-06-06T12:33:52.644000+00:00
Original source

therefore there can be multiple vtables

rektbyfaith
Administrator
0
06-06-2025, 12:34 PM
#25
Archived author: robinsch • Posted: 2025-06-06T12:34:16.549000+00:00
Original source

and thats exactly what you are seeing in `CSimpleFrame`
rektbyfaith
06-06-2025, 12:34 PM #25

Archived author: robinsch • Posted: 2025-06-06T12:34:16.549000+00:00
Original source

and thats exactly what you are seeing in `CSimpleFrame`

rektbyfaith
Administrator
0
06-06-2025, 12:35 PM
#26
Archived author: Deamon • Posted: 2025-06-06T12:35:35.045000+00:00
Original source

Multimple inheritance is the same as having two objects as class fields
rektbyfaith
06-06-2025, 12:35 PM #26

Archived author: Deamon • Posted: 2025-06-06T12:35:35.045000+00:00
Original source

Multimple inheritance is the same as having two objects as class fields

rektbyfaith
Administrator
0
06-06-2025, 12:36 PM
#27
Archived author: Deamon • Posted: 2025-06-06T12:36:35.122000+00:00
Original source

Anyway, from schlumpf's idb for WoD:
[Image: image.png?ex=690c9653&is=690b44d3&hm=41f...357311975&]

[Image: image.png?ex=690c9653&is=690b44d3&hm=7b5...ab3ca144a&]
rektbyfaith
06-06-2025, 12:36 PM #27

Archived author: Deamon • Posted: 2025-06-06T12:36:35.122000+00:00
Original source

Anyway, from schlumpf's idb for WoD:
[Image: image.png?ex=690c9653&is=690b44d3&hm=41f...357311975&]

[Image: image.png?ex=690c9653&is=690b44d3&hm=7b5...ab3ca144a&]

rektbyfaith
Administrator
0
06-06-2025, 12:37 PM
#28
Archived author: Deamon • Posted: 2025-06-06T12:37:09.993000+00:00
Original source


[Image: image.png?ex=690c9676&is=690b44f6&hm=981...df9e40bb7&]
rektbyfaith
06-06-2025, 12:37 PM #28

Archived author: Deamon • Posted: 2025-06-06T12:37:09.993000+00:00
Original source


[Image: image.png?ex=690c9676&is=690b44f6&hm=981...df9e40bb7&]

rektbyfaith
Administrator
0
06-06-2025, 12:40 PM
#29
Archived author: robinsch • Posted: 2025-06-06T12:40:39.449000+00:00
Original source

for memory layout you can do it if you generate the vmt in IDA structs; but for reimplemtation you should not do that
rektbyfaith
06-06-2025, 12:40 PM #29

Archived author: robinsch • Posted: 2025-06-06T12:40:39.449000+00:00
Original source

for memory layout you can do it if you generate the vmt in IDA structs; but for reimplemtation you should not do that

rektbyfaith
Administrator
0
06-06-2025, 12:42 PM
#30
Archived author: Deamon • Posted: 2025-06-06T12:42:50.907000+00:00
Original source

fair
rektbyfaith
06-06-2025, 12:42 PM #30

Archived author: Deamon • Posted: 2025-06-06T12:42:50.907000+00:00
Original source

fair

Pages (10): Previous 1 2 3 4 5 10 Next  
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)