i am trying to get Dictionary , and its value is a class. I hope the value is like an address (void * or uint64_t), but the value goes to another address.
//......
//monoDictionary<monoString*,/*SkinData*/void*>
// public class SkinData {
// public byte skinID; // 0xC
// ...
auto skins = GetSkins(thiz);
LOGI("=== SkinKeys");
for(auto key : skins->getKeys()){
// ok
LOGI("Skin Name: %s",key->c_str());
}
LOGI("=== SkinValues");
for(auto data : skins->getValues()){
// here the game crashed
uint8_t skin_Id = *(uint8_t *)((uint64_t) data + 0xC);
LOGI("SkinData.Id: %d",(int)skin_id);
}
//......
i am trying to get Dictionary , and its value is a class. I hope the value is like an address (
void *
oruint64_t
), but the value goes to another address.