![]() |
|
Convert u32 to Hex string - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Support (https://forums.dolphin-emu.org/Forum-support) +--- Thread: Convert u32 to Hex string (/Thread-convert-u32-to-hex-string) |
Convert u32 to Hex string - CacoFFF - 08-15-2009 Can someone tell me how to? Trying to make a cheat search system, need to display an existing u32 integer into a box in hex format. RE: Convert u32 to Hex string - omegadox - 08-15-2009 well, you can use sprintf(char *, ...) Code: string text = "";or use std: tring StringFromFormat(const char* format, ...)Code: u32 val = "1255";RE: Convert u32 to Hex string - CacoFFF - 08-15-2009 Good, gonna try it. So far i've been able to perform a few comparisons with main ram dumps, now I need to output the first X results. Searches are slow as hell (over 25 millions if bytes) but get faster with each try, until reset (due to a way of jumping blocks of addresses discarded in previous searches) in the order of 3 min, 20 secs, 10 secs. I'll try to make it functional asap. EDIT: Is it possible that Dolphin isn't properly patching memory with the Action Replay in wii games? I already tried a code I figured out and nothing happens. RE: Convert u32 to Hex string - omegadox - 08-15-2009 Well, Action Reply was only made for Gamecube, there isn't an AR for Wii, except codesaves junk. RE: Convert u32 to Hex string - CacoFFF - 08-15-2009 So the ARPatcher I saw around the code isn't working with Wii games because of a limitation? Or was it done on purpose (since there were no codes around)? RE: Convert u32 to Hex string - omegadox - 08-15-2009 Idk, maybe Wii has a different memory setup than GCN. |