Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-free committed Feb 23, 2024
1 parent f699942 commit 8c9bf83
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 32 deletions.
44 changes: 26 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# lcp GNUMakefile by Alex Free
PROGRAM=lcp
VERSION=1.0.2
CC=gcc
C_FLAGS=-Wall -Werror -Os -static -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
VER=1.0.1
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

$(PROGRAM): clean
Expand All @@ -12,7 +12,7 @@ clean:
rm -rf $(PROGRAM).exe $(PROGRAM)

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

linux-x86_64:
make $(PROGRAM)
Expand All @@ -24,34 +24,42 @@ windows-x86_64:
make $(PROGRAM) CC="x86_64-w64-mingw32-gcc"

linux-release:
rm -rf $(PROGRAM)-v$(VER)-$(PLATFORM) $(PROGRAM)-v$(VER)-$(PLATFORM).zip
mkdir $(PROGRAM)-v$(VER)-$(PLATFORM)
cp -rv $(PROGRAM) $(RELEASE_FILES) $(PROGRAM)-v$(VER)-$(PLATFORM)
chmod -R 777 $(PROGRAM)-v$(VER)-$(PLATFORM)
zip -r $(PROGRAM)-v$(VER)-$(PLATFORM).zip $(PROGRAM)-v$(VER)-$(PLATFORM)
rm -rf $(PROGRAM)-v$(VER)-$(PLATFORM)
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)

windows-release:
rm -rf $(PROGRAM)-v$(VER)-$(PLATFORM) $(PROGRAM)-v$(VER)-$(PLATFORM).zip
mkdir $(PROGRAM)-v$(VER)-$(PLATFORM)
cp -rv $(PROGRAM).exe $(RELEASE_FILES) $(PROGRAM)-v$(VER)-$(PLATFORM)
chmod -R 777 $(PROGRAM)-v$(VER)-$(PLATFORM)
zip -r $(PROGRAM)-v$(VER)-$(PLATFORM).zip $(PROGRAM)-v$(VER)-$(PLATFORM)
rm -rf $(PROGRAM)-v$(VER)-$(PLATFORM)
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)

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

linux-x86_64-release: linux-x86_64
make linux-release PLATFORM=linux-x86_64_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

windows-x86-release: windows-x86
make windows-release PLATFORM=windows-x86

windows-x86_64-release: windows-x86_64
make windows-release PLATFORM=windows-x86_64

clean-zip: clean
rm -rf *.zip
clean-build: clean
rm -rf *.zip libcrypt-patcher-1.0.2-amd64 libcrypt-patcher-1.0.2-amd64.deb

all: linux-x86-release linux-x86_64-release windows-x86-release windows-x86_64-release
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
16 changes: 16 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## Version 1.0.1 (11/01/2023)

Changes:

* Made new Galerians (Europe) patches to replace the ones from back in the day which contained a cracktro. The goal of this patcher is to not only support every LibCrypt game, but to also be as stealth in defeating the protection as possible.

* A total of 234 different LibCrypt protected game discs are now supported. A significant amount of work has been put into the compatibility list (which links/uses redump titles/ids for maximum clarity).

* Added version detection for Mánager de Liga (Spain) and Mánager de Liga (Spain) (Preproduction). Only (Spain) (Preproduction) has LibCrypt protection so now the official release without LibCrypt protection will be identified and not patched.

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

## Version 1.0 (10/28/2023)

* [libcrypt-patcher-v1.0-windows\_x86](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0/lcp-v1.0-windows-x86.zip) _For Windows 95 OSR 2.5 Or Newer (32-bit Windows)_
Expand Down
6 changes: 6 additions & 0 deletions control
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Package: libcrypt-patcher
Version: 1.0.2
Maintainer: Alex Free
Architecture: amd64
Homepage: https://alex-free.github.io/libcrypt-patcher
Description: The ultimate all in one libcrypt disc image patcher.
4 changes: 1 addition & 3 deletions lcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
//#include "test-ppf3-without-undo.h"
//#include "test-ppf3-with-undo.h"

#define VER "1.0.1"

unsigned char sectors[0x1800]; // 0x800 * 3

unsigned char ver_check_val; // for games that have the same bootfile we use the first different byte to detect different revisions/versions
Expand All @@ -23,7 +21,7 @@ const unsigned char SLES[] = {

int main (int argc, const char * argv[])
{
printf("LibCrypt Patcher v%s By Alex Free (C)2023 (3-BSD)\nhttps://alex-free.github.io/libcrypt-patcher\n\n", VER);
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");
Expand Down
2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BSD 3-Clause License
Copyright (c) 2023, Alex Free
Copyright (c) 2023-2024, Alex Free
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
20 changes: 10 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ If you know of a game/revision this patcher does not yet support, can supply a b

## Downloads

### Version 1.0.1 (11/01/2023)
### Version 1.0.2 (2/22/2024)

Changes:

* Made new Galerians (Europe) patches to replace the ones from back in the day which contained a cracktro. The goal of this patcher is to not only support every LibCrypt game, but to also be as stealth in defeating the protection as possible.
* 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)).

* A total of 234 different LibCrypt protected game discs are now supported. A significant amount of work has been put into the compatibility list (which links/uses redump titles/ids for maximum clarity).
* Now available as a `.deb` package for x86_64 Linux systems.

* Added version detection for Mánager de Liga (Spain) and Mánager de Liga (Spain) (Preproduction). Only (Spain) (Preproduction) has LibCrypt protection so now the official release without LibCrypt protection will be identified and not patched.
* Build system now passses version number as a `CFLAG` variable.


* [libcrypt-patcher-v1.0.1-windows\_x86](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.1/lcp-v1.0.1-windows-x86.zip) _For Windows 95 OSR 2.5 Or Newer (32-bit Windows)_
* [libcrypt-patcher-v1.0.1-windows-x86\_64](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.1/lcp-v1.0.1-windows-x86_64.zip) _For 64-bit Windows_
* [libcrypt-patcher-v1.0.1-linux-x86](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.1/lcp-v1.0.1-linux-x86_static.zip) _For x86 Linux Distros_
* [libcrypt-patcher-v1.0.1-linux-x86\_64](https://github.com/alex-free/libcrypt-patcher/releases/download/v1.0.1/lcp-v1.0.1-linux-x86_64_static.zip) _For x86_64 Linux Distros_
* [libcrypt-patcher-v1.0.1-source](https://github.com/alex-free/libcrypt-patcher/archive/refs/tags/v1.0.1.zip)
* [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)

[About Previous Versions](changelog.md)

Expand Down

0 comments on commit 8c9bf83

Please sign in to comment.