• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 1151 1152 1153 1154 1155 ... 1189 Next »

Convert u32 to Hex string
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Convert u32 to Hex string
08-15-2009, 06:23 AM
#1
CacoFFF Offline
Member
****
Posts: 722
Threads: 15
Joined: Mar 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.
ASRock Conroe 1333-D667
Intel Pentium Dual Core E2180 2.00GHZ
2GB ram
Windows XP x64
Ati Radeon HD3650 256mb GDDR3
[Image: bugwk7.gif]
[Image: 338184.jpg]
Find
Reply
08-15-2009, 07:24 AM
#2
omegadox Offline
Senior Member
****
Posts: 401
Threads: 17
Joined: Mar 2009
well, you can use sprintf(char *, ...)
Code:
string text = "";
u32 val = "1255";
char* pChar =  &(text[0]);
sprintf(pChar, "%08x", val);

or use std:Confusedtring StringFromFormat(const char* format, ...)
Code:
u32 val = "1255";
string text = StringFromFormat("%08x", val);
:: System Specs ::
Operating System: Windows 7 Professional x64
Video Card: ATI Radeon HD 5770
CPU: AMD Phenom I X4 9550
RAM: 6GB DDR2
EXP Index: 999999.999999
Find
Reply
08-15-2009, 07:43 AM (This post was last modified: 08-15-2009, 07:45 AM by CacoFFF.)
#3
CacoFFF Offline
Member
****
Posts: 722
Threads: 15
Joined: Mar 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.
ASRock Conroe 1333-D667
Intel Pentium Dual Core E2180 2.00GHZ
2GB ram
Windows XP x64
Ati Radeon HD3650 256mb GDDR3
[Image: bugwk7.gif]
[Image: 338184.jpg]
Find
Reply
08-15-2009, 08:10 AM
#4
omegadox Offline
Senior Member
****
Posts: 401
Threads: 17
Joined: Mar 2009
Well, Action Reply was only made for Gamecube, there isn't an AR for Wii, except codesaves junk.
:: System Specs ::
Operating System: Windows 7 Professional x64
Video Card: ATI Radeon HD 5770
CPU: AMD Phenom I X4 9550
RAM: 6GB DDR2
EXP Index: 999999.999999
Find
Reply
08-15-2009, 08:43 AM (This post was last modified: 08-15-2009, 08:45 AM by CacoFFF.)
#5
CacoFFF Offline
Member
****
Posts: 722
Threads: 15
Joined: Mar 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)?
ASRock Conroe 1333-D667
Intel Pentium Dual Core E2180 2.00GHZ
2GB ram
Windows XP x64
Ati Radeon HD3650 256mb GDDR3
[Image: bugwk7.gif]
[Image: 338184.jpg]
Find
Reply
08-15-2009, 09:08 AM
#6
omegadox Offline
Senior Member
****
Posts: 401
Threads: 17
Joined: Mar 2009
Idk, maybe Wii has a different memory setup than GCN.
:: System Specs ::
Operating System: Windows 7 Professional x64
Video Card: ATI Radeon HD 5770
CPU: AMD Phenom I X4 9550
RAM: 6GB DDR2
EXP Index: 999999.999999
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode