Skip to content

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrinzPlayer committed Sep 23, 2019
0 parents commit ba1a324
Show file tree
Hide file tree
Showing 14 changed files with 414 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# CheatEngineUpDeluxe

## Description
It will help to set up FreePascal/Lazarus environment needed for building [Cheat Engine 7.0](https://github.com/cheat-engine/cheat-engine)


## Instructions
Download [prepareLazarusEnvAndCE.zip](https://github.com/mgrinzPlayer/CheatEngineUpDeluxe/releases/latest)

Extract it. You will need at least 2.5GB free space. Installed SVN client is required, be it TortoiseSVN with command line client tools or SlikSVN.

Launch "prepare Lazarus Env.cmd"

You have several options to choose from. You can download files from original source or you can download heavily compressed (7zip) files from this repository.

There is also compiled FreePascal package: FPC 3.2.0, branch: fixes_3_2, revision 42444.


<p align="center">
<img src="https://github.com/mgrinzPlayer/CheatEngineUpDeluxe/raw/master/screenshot.png" />
</p>

Launch Lazarus at least once then launch "prepare CE.cmd"

You can edit some variables like buildmode (release or debug) or cpumode (i386 or x86_64).

By default it will compile 32 and 64bit CE. You can find executables inside CheatEngine\bin folder.

To compile other CE componens, launch Lazarus, open lpi file (e.g. vehdebug.lpi) and choose "compile many modes".
Binary file added bootstrap.7z
Binary file not shown.
Binary file added compiledFPC/compiled_fpc.7z.001
Binary file not shown.
Binary file added compiledFPC/compiled_fpc.7z.002
Binary file not shown.
Binary file added compiledFPC/compiled_fpc.7z.003
Binary file not shown.
2 changes: 2 additions & 0 deletions compiledFPC/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
compiled Free Pascal Compiler version 3.2.0
branch: fixes_3_2, revision 42444
Binary file added fpcsrc.7z
Binary file not shown.
Binary file added lazarus.7z
Binary file not shown.
Binary file added mingw.7z
Binary file not shown.
72 changes: 72 additions & 0 deletions prepare CE.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
@echo off

rem check if you have SVN client in path
svn --version 1>nul 2>nul
svn --version 1>nul 2>nul
if not "%errorlevel%"=="0" (
echo You don't have SVN client in PATH variable.
echo.
echo Suggestion: ^(re^)install TortoiseSVN with comand line client tools
echo or ^(re^)install Slik-Subversion
pause 1>nul 2>nul
goto :EOF
)

rem 1=32bit, 2=64bit, 3=both
set cpumode=3

rem 1=release, 2=debug
set buildmode=1

rem 1=clean lib
set clean=1

rem 1=fullClean
set fullClean=1

set prog=%cd%\lazarus\lazbuild.exe
echo Lazarus path: %prog%

svn.exe checkout --non-interactive --trust-server-cert -r HEAD "https://github.com/cheat-engine/cheat-engine/trunk/Cheat Engine" CheatEngine

cd CheatEngine

if "%fullClean%"=="1" (
svn revert -R .
svn cleanup --remove-unversioned
svn cleanup --remove-ignored
)

if "%clean%"=="1" ( rmdir /s /q "lib" 2>nul )

if "%buildmode%"=="1" ( set buildmodetext=Buildmode: Release) else ( set buildmodetext=Buildmode: Debug)
if "%clean%"=="1" ( set cleanmodetext=, CleanRelease)
if "%cpumode%"=="1" Title %buildmodetext%%cleanmodetext%, cpumode: Only 32bit
if "%cpumode%"=="2" Title %buildmodetext%%cleanmodetext%, cpumode: Only 64bit
if "%cpumode%"=="3" Title %buildmodetext%%cleanmodetext%, cpumode: 32bit and 64bit

if "%cpumode%"=="2" goto :cpumode64bit
ECHO.
del /f /q cheatengine.res 2>nul
echo Building project "CheatEngine 32bit"
if "%buildmode%"=="1" (
%prog% --build-mode="Release 64-Bit" --os=win32 --cpu=i386 cheatengine.lpi > %temp%\lazarusCEBuildLog_32bit.txt) else (
%prog% --build-mode="debug-nomt 64-bit" --os=win32 --cpu=i386 cheatengine.lpi > %temp%\lazarusCEBuildLog_32bit.txt )
if %errorlevel% == 0 ( echo Project "CheatEngine 32bit" successfully built & ECHO.) else type %temp%\lazarusCEBuildLog_32bit.txt
ECHO.
if "%cpumode%"=="1" goto :skip

:cpumode64bit
ECHO.
del /f /q cheatengine.res 2>nul
echo Building project "CheatEngine 64bit"
if "%buildmode%"=="1" (
%prog% --build-mode="Release 64-Bit" --os=win64 --cpu=x86_64 cheatengine.lpi > %temp%\lazarusCEBuildLog_64bit.txt) else (
%prog% --build-mode="debug-nomt 64-bit" --os=win64 --cpu=x86_64 cheatengine.lpi > %temp%\lazarusCEBuildLog_64bit.txt )
if %errorlevel% == 0 ( echo Project "CheatEngine 64bit" successfully built & ECHO.) else type %temp%\lazarusCEBuildLog_64bit.txt
ECHO.
:skip
del /f /q cheatengine.res 2>nul

pause
pause
Loading

0 comments on commit ba1a324

Please sign in to comment.