Skip to content

Commit

Permalink
Nickel patching (closes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Apr 26, 2018
1 parent aaec027 commit 63087c7
Show file tree
Hide file tree
Showing 6 changed files with 1,466 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ An improved alternative to patch32lsb. WIP.
- Optional improved patch format (coming soon)
- Save and restore lists of enabled patches (coming soon)
- more (coming soon)
- Zlib support (coming soon)
- Zlib support (coming soon)

**Testing:**
- Requires Linux and icdiff
- Unit tests (automatically run by Travis CI): `go test -v ./...`
- Real tests (compares original and new): `./testalllibnickel.sh` and `./testallnickel.sh`
2 changes: 1 addition & 1 deletion patch32lsb/patch32lsb.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
fataln(i+1, "Could not find equals # instruction")
case eqRegexp.MatchString(l):
spl := eqRegexp.Split(l, 2)
switch spl[0] {
switch strings.ToLower(spl[0]) {
case "patch_name":
patchName, err = unescape(spl[1])
checkErrn(i+1, err, "Error unescaping patch_name")
Expand Down
Binary file added patchlib/testdata/nickel
Binary file not shown.
Loading

0 comments on commit 63087c7

Please # to comment.