Qrox How do I cheat? Reputation: 0
Joined: 29 Aug 2014 Posts: 1
|
Posted: Fri Aug 29, 2014 11:46 pm Post subject: Custom Type with Lua: How to Return String? |
|
|
Searched the forums and didn't find anything helpful. I am reverse engineering some software and the software uses some kind of string of the following structure: (I think it's c++ stl string?)
Code: |
struct {
union {
char * pdata;
char cdata[16];
}
dword length;
dword capacity;
dword unknown;
}
|
If the text is less than 16 bytes, it will be stored in cdata, and if it exceeds 15 bytes, it will be stored in the additionally allocated memory pointed to by pdata. I want to use custom type and return the real text of the structure, but whatever string the lua script returns, the displayed value always becomes 0. So is custom string type supported? If not, consider this a feature suggestion . And thanks for the great software!
|
|