diff --git a/src/4cade.init.a b/src/4cade.init.a index 9b4b31626..abfec8874 100644 --- a/src/4cade.init.a +++ b/src/4cade.init.a @@ -205,6 +205,7 @@ Loader128KAndJoystick !byte 15 !text "joystick + 128K" +!ifndef RELEASE { PrintAsDecimal jsr $FF4A -- lda #$00 @@ -227,6 +228,7 @@ PrintAsDecimal pha bvs -- rts +} !source "src/hw.accel.a" !source "src/parse.games.a" diff --git a/winmake.bat b/winmake.bat index 9c2b915ba..15e953967 100644 --- a/winmake.bat +++ b/winmake.bat @@ -16,6 +16,9 @@ set ACME=acme rem https://www.brutaldeluxe.fr/products/crossdevtools/cadius/ rem https://github.com/mach-kernel/cadius set CADIUS=cadius +rem https://github.com/ +set GIT=git + if "%1" equ "asm" ( :asm @@ -131,9 +134,11 @@ goto :EOF goto :EOF :asmlauncher -2>build\relbase.log %ACME% src\4cade.a +1>build\buildnum.log git rev-list --count HEAD +for /f "tokens=*" %%q in (build\buildnum.log) do set _build=%%q +2>build\relbase.log %ACME% -DBUILDNUMBER=%_build% src\4cade.a for /f "tokens=*" %%q in (build\relbase.log) do set _make=%%q -%ACME% -DRELBASE=$!_make:~-5,4! -r build\4cade.lst src\4cade.a +%ACME% -DBUILDNUMBER=%_build% -DRELBASE=$!_make:~-5,4! -r build\4cade.lst src\4cade.a goto :EOF :asmfx