@echo off set source=DynaCrcHack.c @cd /D "%~d1%~p1" > nul if not exist tcc\tcc.exe ( echo. echo Missing ^\tcc\tcc.exe echo. echo Please download TCC 0.9.25 for windows from http://bellard.org/tcc/ echo and extract the package to ^\tcc echo. pause goto end ) if not exist utils\waitForChange.exe tcc\tcc utils\waitForChange.c -o utils\waitForChange.exe if not exist utils\ding.exe tcc\tcc utils\ding.c -luser32 -o utils\ding.exe :start echo Compiling ... echo. tcc\tcc -shared -Wall %source% if %errorlevel% == 0 ( echo -^> OK utils\ding 2 ) else ( echo -^> ERROR utils\ding 1 utils\ding 1 ) if exist *.def del /Q *.def echo Waiting ... utils\waitForChange %source% echo. goto start :end