Skip to content

SultansOfCode/Starpatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starpatch

Simple file patcher made in Zig using raylib

It is the last tool from a set created for ROM hacking (any file in reality). The other two are:

  • Stardust: a simple hexadecimal editor with extra features like symbols' table and relative search
  • Startile: a simple tile editor

Raylib was not entirely needed in this project, but I wanted to use its helper functionalities

All these projects were developed to better learn Zig and raylib, while fulfilling some nostalgia from the early 2000's

Building

Simply clone/download this repository and run:

$ zig build

Using

Create a patch

To create a patch file, run:

$ Starpatch create <original file> <patched file> <patch file>

It will create the patch file with all patches needed to make original file become the patched file. This file can later be applied with the other commands

Patch a file

To patch a file, run:

$ Starpatch patch <original file> <patch file> <patched file>

It will create the patched file with all patches contained in patch file applied to the original file

Unpatch a file

To unpatch a file, run:

$ Starpatch unpatch <patched file> <patch file> <original file>

It will create the original file with all patches contained in patch file unapplied to the patched file

Examples

You can check the run.bat, resources/bigger.txt and resources/smaller.txt to see how it works and in action

Thanks

People from Twitch for watching me and supporting me while developing it

All of my LivePix donators


Sources and licenses

raylib - Source - Zlib license

Zig - Source - MIT license

About

Patcher written in Zig with Raylib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published