add ApplyPatch macro

This commit is contained in:
slore 2025-01-05 23:41:48 +08:00
parent be0dbe8cb5
commit 6e65715175

View File

@ -0,0 +1,9 @@
rem MACRO:ApplyPatch
set "_applypatch_entryfile=%~2"
if "x%~2"=="x" set _applypatch_entryfile=main.bat
echo Applying Patch: %~1\%_applypatch_entryfile%
pushd "%~1"
call %_applypatch_entryfile%
set _applypatch_entryfile=
popd