Author Topic: Had a bit of fun making this patcher  (Read 473 times)

0 Members and 1 Guest are viewing this topic.

Offline Raccoon

  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Had a bit of fun making this patcher
« on: March 16, 2018 »
The developer of the software that this patcher was created for passed away some time ago and there was no longer any way to buy or register the software, so a few friends and I went ahead and reversed the software and then released a patcher so that people can still use it.

The first patcher was just a plain CUI patcher, but then I decided to throw this one together for fun. It is written in PureBasic.  :)

I've disabled the patching functionality for sharing here.

Virus Scan (2/66)

« Last Edit: March 16, 2018 by Raccoon »

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 260
  • Karma: 16
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: Had a bit of fun making this patcher
« Reply #1 on: March 17, 2018 »
Congrats.
Do you write new registry keys while patching or is there more?
I did something similar in this one:
http://www.dbfinteractive.com/forum/index.php?topic=6732.msg84103#msg84103

Will have a look to yours later.
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline Raccoon

  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Had a bit of fun making this patcher
« Reply #2 on: March 17, 2018 »
Congrats.
Do you write new registry keys while patching or is there more?
I did something similiar in this one:
http://www.dbfinteractive.com/forum/index.php?topic=6732.msg84103#msg84103

Will have a look to yours later.
Nope, no registry keys. Just applies patches to the binary using the patch data that I created using a little binary diff tool I wrote to save time (nothing special, just the offsets, the size of the patches, and the bytes to be written).

It first checks the default installation directory, then the current directory, and finally will prompt the user to locate the file if it still can't find it. It will also restore from a backup of the original file if the patches aren't applied correctly. That shouldn't happen since I perform some SHA-1 comparisons both before and after patching, but I like to try to account for anything I can imagine potentially going wrong lol.  :)

I will open source it sometime soon, but there's some code I want to clean up and optimize first haha.

I actually saw your post about your patcher here in the Projects sub-forum earlier. I like it. ^^
I wasn't aware that you had released the source though.
« Last Edit: March 17, 2018 by Raccoon »

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2689
  • Karma: 483
    • View Profile
    • http://www.rbraz.com/
Re: Had a bit of fun making this patcher
« Reply #3 on: March 19, 2018 »
Nice music you got there, nice work.
Challenge Trophies Won: