Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-free committed Mar 1, 2024
1 parent 8c9bf83 commit 0e8fcf8
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 43 deletions.
65 changes: 38 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# lcp GNUMakefile by Alex Free
PROGRAM=lcp
VERSION=1.0.2
RELEASE_NAME=libcrypt-patcher
VERSION=v1.0.3
CC=gcc
C_FLAGS=-Wall -Werror -Os -static -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DVERSION=\"$(VERSION)\"
RELEASE_FILES=images readme.md changelog.md license.txt
Expand All @@ -11,47 +12,57 @@ $(PROGRAM): clean
clean:
rm -rf $(PROGRAM).exe $(PROGRAM)

linux-x86:
linux-x86: clean
make $(PROGRAM) C_FLAGS='-m32 $(C_FLAGS)'

linux-x86_64:
linux-x86_64: clean
make $(PROGRAM)

windows-x86:
windows-x86: clean
make $(PROGRAM) CC="i686-w64-mingw32-gcc"

windows-x86_64:
windows-x86_64: clean
make $(PROGRAM) CC="x86_64-w64-mingw32-gcc"

linux-release:
rm -rf $(PROGRAM)-v$(VERSION)-$(PLATFORM) $(PROGRAM)-v$(VERSION)-$(PLATFORM).zip
mkdir $(PROGRAM)-v$(VERSION)-$(PLATFORM)
cp -rv $(PROGRAM) $(RELEASE_FILES) $(PROGRAM)-v$(VERSION)-$(PLATFORM)
chmod -R 777 $(PROGRAM)-v$(VERSION)-$(PLATFORM)
zip -r $(PROGRAM)-v$(VERSION)-$(PLATFORM).zip $(PROGRAM)-v$(VERSION)-$(PLATFORM)
rm -rf $(PROGRAM)-v$(VERSION)-$(PLATFORM)
rm -rf $(RELEASE_NAME)-$(VERSION)-$(PLATFORM) $(PROGRAM)-$(VERSION)-$(PLATFORM).zip
mkdir $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)
cp -rv $(PROGRAM) $(RELEASE_FILES) $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)
chmod -R 777 $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)
zip -r $(RELEASE_NAME)-$(VERSION)-$(PLATFORM).zip $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)
rm -rf $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)

windows-release:
rm -rf $(PROGRAM)-v$(VERSION)-$(PLATFORM) $(PROGRAM)-v$(VERSION)-$(PLATFORM).zip
mkdir $(PROGRAM)-v$(VERSION)-$(PLATFORM)
cp -rv $(PROGRAM).exe $(RELEASE_FILES) $(PROGRAM)-v$(VERSION)-$(PLATFORM)
chmod -R 777 $(PROGRAM)-v$(VERSION)-$(PLATFORM)
zip -r $(PROGRAM)-v$(VERSION)-$(PLATFORM).zip $(PROGRAM)-v$(VERSION)-$(PLATFORM)
rm -rf $(PROGRAM)-v$(VERSION)-$(PLATFORM)
rm -rf $(RELEASE_NAME)-$(VERSION)-$(PLATFORM) $(PROGRAM)-$(VERSION)-$(PLATFORM).zip
mkdir $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)
cp -rv $(PROGRAM).exe $(RELEASE_FILES) $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)
chmod -R 777 $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)
zip -r $(RELEASE_NAME)-$(VERSION)-$(PLATFORM).zip $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)
rm -rf $(RELEASE_NAME)-$(VERSION)-$(PLATFORM)

linux-x86-release: linux-x86
make linux-release PLATFORM=linux-x86_static
make linux-release PLATFORM=linux-x86-static

linux-x86_64-release: linux-x86_64
make linux-release PLATFORM=linux-x86_64_static
make linux-release PLATFORM=linux-x86_64-static

linux-x86-deb: linux-x86
rm -rf $(RELEASE_NAME)-$(VERSION)-linux-x86-static
mkdir -p $(RELEASE_NAME)-$(VERSION)-linux-x86-static/usr/bin
mkdir -p $(RELEASE_NAME)-$(VERSION)-linux-x86-static/DEBIAN
cp lcp $(RELEASE_NAME)-$(VERSION)-linux-x86-static/usr/bin
cp control-x86 $(RELEASE_NAME)-$(VERSION)-linux-x86-static/DEBIAN/control
dpkg-deb --build $(RELEASE_NAME)-$(VERSION)-linux-x86-static
rm -rf $(RELEASE_NAME)-$(VERSION)-linux-x86-static

linux-x86_64-deb: linux-x86_64
rm -rf libcrypt-patcher-$(VERSION)-amd64
mkdir -p libcrypt-patcher-$(VERSION)-amd64/usr/bin
mkdir -p libcrypt-patcher-$(VERSION)-amd64/DEBIAN
cp lcp libcrypt-patcher-$(VERSION)-amd64/usr/bin
cp control libcrypt-patcher-$(VERSION)-amd64/DEBIAN
dpkg-deb --build libcrypt-patcher-$(VERSION)-amd64
rm -rf $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static
mkdir -p $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static/usr/bin
mkdir -p $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static/DEBIAN
cp lcp $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static/usr/bin
cp control-x86_64 $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static/DEBIAN/control
dpkg-deb --build $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static
rm -rf $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static

windows-x86-release: windows-x86
make windows-release PLATFORM=windows-x86
Expand All @@ -60,6 +71,6 @@ windows-x86_64-release: windows-x86_64
make windows-release PLATFORM=windows-x86_64

clean-build: clean
rm -rf *.zip libcrypt-patcher-1.0.2-amd64 libcrypt-patcher-1.0.2-amd64.deb
rm -rf *.zip $(RELEASE_NAME)-$(VERSION)-linux-x86-static.deb $(RELEASE_NAME)-$(VERSION)-linux-x86-static $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static.deb $(RELEASE_NAME)-$(VERSION)-linux-x86_64-static

all: linux-x86-release linux-x86_64-release linux-x86_64-deb windows-x86-release windows-x86_64-release libcrypt-patcher-$(VERSION)-amd64 libcrypt-patcher-$(VERSION)-amd64.deb
all: clean-build linux-x86-release linux-x86-deb linux-x86_64-release linux-x86_64-deb windows-x86-release windows-x86_64-release
18 changes: 18 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## Version 1.0.2 (2/22/2024)

Changes:

* Fixed Final Fantasy VIII Spain Disc 2 bootfile match, patching this disc now works as intended (thanks [Novacrois](https://github.com/alex-free/libcrypt-patcher/pull/1)).

* Now available as a `.deb` package for x86_64 Linux systems.

* Build system now passses version number as a `CFLAG` variable.

* [libcrypt-patcher-v1.0.2-windows\_x86](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/lcp-v1.0.2-windows-x86.zip) _For Windows 95 OSR 2.5 Or Newer (32-bit Windows)_
* [libcrypt-patcher-v1.0.2-windows-x86\_64](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/lcp-v1.0.2-windows-x86_64.zip) _For 64-bit Windows_
* [libcrypt-patcher-v1.0.2-linux-x86](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/lcp-v1.0.2-linux-x86_static.zip) _For x86 Linux Distros_
* [libcrypt-patcher-v1.0.2-linux-x86\_64](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/lcp-v1.0.2-linux-x86_64_static.zip) _For x86_64 Linux Distros_
* [libcrypt-patcher-v1.0.2-linux-x86\_64.deb](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/libcrypt-patcher-1.0.2-amd64.deb) _Deb package file for x86_64 Linux Distros_
* [libcrypt-patcher-v1.0.2-source](https://github.com/alex-free/libcrypt-patcher/archive/refs/tags/v1.0.2.zip)


## Version 1.0.1 (11/01/2023)

Changes:
Expand Down
6 changes: 6 additions & 0 deletions control-x86
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Package: libcrypt-patcher
Version: 1.0.3
Maintainer: Alex Free
Architecture: i386
Homepage: https://alex-free.github.io/libcrypt-patcher
Description: The ultimate all in one libcrypt disc image patcher.
2 changes: 1 addition & 1 deletion control → control-x86_64
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: libcrypt-patcher
Version: 1.0.2
Version: 1.0.3
Maintainer: Alex Free
Architecture: amd64
Homepage: https://alex-free.github.io/libcrypt-patcher
Expand Down
2 changes: 1 addition & 1 deletion lcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main (int argc, const char * argv[])
printf("LibCrypt Patcher v%s By Alex Free (C)2023-2024 (3-BSD)\nhttps://alex-free.github.io/libcrypt-patcher\n\n", VERSION);

if(argc != 2) {
printf("incorrect number of arguments\n");
printf("incorrect number of arguments\n\nUsage:\n\nlcp <track 1 bin file of libcrypt protected game>\n");
return 1;
}
bin = fopen(argv[1], "rb+");
Expand Down
25 changes: 11 additions & 14 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# [alex-free.github.io](https://alex-free.github.io)

# LibCrypt Patcher

This patcher is capable of detecting and patching **234 different PSX game discs containing LibCrypt protection**. After using this patcher on a supported LibCrypt protected PSX disc image you can then:
Expand All @@ -26,22 +24,21 @@ If you know of a game/revision this patcher does not yet support, can supply a b

## Downloads

### Version 1.0.2 (2/22/2024)
### Version 1.0.3 (2/29/2024)

Changes:

* Fixed Final Fantasy VIII Spain Disc 2 bootfile match, patching this disc now works as intended (thanks [Novacrois](https://github.com/alex-free/libcrypt-patcher/pull/1)).

* Now available as a `.deb` package for x86_64 Linux systems.
* Now also available as a `.deb` package for x86 Linux systems.

* Build system now passses version number as a `CFLAG` variable.
* More helpful usage message when given no arguments.

* [libcrypt-patcher-v1.0.2-windows\_x86](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/lcp-v1.0.2-windows-x86.zip) _For Windows 95 OSR 2.5 Or Newer (32-bit Windows)_
* [libcrypt-patcher-v1.0.2-windows-x86\_64](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/lcp-v1.0.2-windows-x86_64.zip) _For 64-bit Windows_
* [libcrypt-patcher-v1.0.2-linux-x86](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/lcp-v1.0.2-linux-x86_static.zip) _For x86 Linux Distros_
* [libcrypt-patcher-v1.0.2-linux-x86\_64](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/lcp-v1.0.2-linux-x86_64_static.zip) _For x86_64 Linux Distros_
* [libcrypt-patcher-v1.0.2-linux-x86\_64.deb](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.2/libcrypt-patcher-1.0.2-amd64.deb) _Deb package file for x86_64 Linux Distros_
* [libcrypt-patcher-v1.0.2-source](https://github.com/alex-free/libcrypt-patcher/archive/refs/tags/v1.0.2.zip)
* [libcrypt-patcher-v1.0.3-windows\_x86](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.3/libcrypt-patcher-v1.0.3-windows-x86.zip) _Portable Release For Windows 95 OSR 2.5 Or Newer (32-bit Windows)_
* [libcrypt-patcher-v1.0.3-windows-x86\_64](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.3/libcrypt-patcher-v1.0.3-windows-x86_64.zip) _Portable Release For 64-bit Windows_
* [libcrypt-patcher-v1.0.3-linux-x86-static](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.3/libcrypt-patcher-v1.0.3-linux-x86-static.zip) _Portable Release For x86 Linux_
* [libcrypt-patcher-v1.0.3-linux-x86-static.deb](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.3/libcrypt-patcher-v1.0.3-linux-x86-static.deb) _Deb package file For x86 Linux_
* [libcrypt-patcher-v1.0.3-linux-x86\_64-static](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.3/libcrypt-patcher-v1.0.3-linux-x86_64-static.zip) _Portable Release For x86\_64 Linux_
* [libcrypt-patcher-v1.0.3-linux-x86\_64-static.deb](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.3/libcrypt-patcher-v1.0.3-linux-x86_64-static.deb) _Deb package file for x86_64 Linux_
* [libcrypt-patcher-v1.0.3-source](https://github.com/alex-free/libcrypt-patcher/archive/refs/tags/v1.0.3.zip)

[About Previous Versions](changelog.md)

Expand All @@ -61,7 +58,7 @@ Alternatively you may run `cmd.exe` or `command.com` and run `lcp.exe` with the

The easiest way to use this on Linux (If your desktop environment supports it that is) is to simply drag the first/only data track bin file of the LibCrypt protected CD image onto the `lcp` executable file.

Alternatively you may start your terminal and run `lcp` with the first/only data track bin file as the sole argument.
Alternatively you may start your terminal and run `lcp` with the first/only data track bin file as the sole argument. This usage method is recommended if you use the `.deb` package.

![lcp linux spyro](images/lcp-linux-spyro.png)

Expand Down

0 comments on commit 0e8fcf8

Please sign in to comment.