Hi, i'm very new to programmation and i want to know more on patching: how can i retrieve a string of opcode from an edit and patch a file with em ? For instance i have offset 0x3f3c and retrieve 0x908e from the edit; so i want to apply 0x90 at offset 0x3f3c and so 0x8e at offset 3f3d How to do such a thing ? Thanks.
Yes thank you woot332 but i already know it. I don't want a patcher i want to know HOW to do it... I've already done a patecher but it can only patch a byte at a time and i want several...
I see, check out the offset patcher section http://arteam.accessroot.com/arteam/site/download.php?view.173
Still thanks for trying to help woot332 but that still not what i was searching thoough it is interesting... i'll past a part of code if it can help: <code> FILE *f=0; f=fopen(filePathName,"r+");//filePathName is retrieved by GetOpenFileName() fseek(f,getOffset,SEEK_SET);//getOffset is retrieved by GetWindowText() as it is an edit fprintf(f,"%c",getOpcode);//then i retrieved the patch code (getOpcode) and patch fclose(f); </code> the problem here: if we have several offset to patch it would be boring to do it one by one... thanks for helping
If the offsets are incremental maybe you could swap out "c" format with "s". http://www.cplusplus.com/reference/clibrary/cstdio/fprintf/