Sign in to follow this  
Followers 0
VNS

Patch File

6 posts in this topic

What i want is:

When i click Button3, turn1.dll in destination folder is automatically moded inside (can be by decimal offset or hexadecimal)

Example: Change 0D to 00 that is in 200300 Offset (Hexadecimal mod)

Share this post


Link to post
Share on other sites

What I want is:

Someone to do their homework?

Share this post


Link to post
Share on other sites

nik louch if i know how do i dont ask for help.

Share this post


Link to post
Share on other sites

All right, so you'll need to write a program that does that using some programming language, compile and run it! :) What are you looking for help with exactly and what technologies (language, libraries, etc) are you using?

Share this post


Link to post
Share on other sites


const long offset = 200300;
const unsigned char to_write[] = { 0x00 };

FILE * f = fopen("turn1.dll", "rb");

fseek(f, offset, SEEK_SET);

fwrite(to_write, sizeof(unsigned char), sizeof(to_write) / sizeof(to_write[0]), f);

fclose(f);
[/CODE]

I've spent too long coding in C that it was the language I thought of for this, I need to go back to C# and Python!

Usually I wouldn't just give code, but this is such a trivial example in C that I may as well.

Also I'd like to point out this is untested, so make sure it writes the byte at the correct location in your test suite!

Also you will need to add a lot of error handling to this

Share this post


Link to post
Share on other sites

Someone posted something like this a while back. I wrote a quick patching app not sure where it is but it was uploaded to here with source.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.