Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


more mono fun

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
tympanicblock61
How do I cheat?
Reputation: 0

Joined: 17 Nov 2024
Posts: 8

PostPosted: Mon Nov 25, 2024 12:53 am    Post subject: more mono fun Reply with quote

i will be posting any mono functions or utils i make here

handle a System.Collections.Generic.List
takes a pointer to a System.Collections.Generic.List and returns a table list of pointers to items
Code:

function getListPointers(listPointer)
    local size = readInteger(listPointer + 0x18)
    local itemsArrayPointer = readPointer(listPointer + 0x10)
    local items = {}
    local offset = 0x18+0x08 -- first item (Count) + index offset
    for i = 0, size-1 do
        local itemPointer = readPointer(itemsArrayPointer + offset)
        table.insert(items, itemPointer)
        offset=offset+0x08
    end
    return items
end
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites