Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off&cls
- set current_path=%~dp0
- set Script_path=%current_path:~0,-1%
- echo =====================================================================
- echo Don't forget to write the name of your FMDL in "fmdl_name"!
- echo =====================================================================
- echo.
- pause
- set "fmdl_name=ar00_main0_aw0"
- REM ===========================================================
- REM Cleaning the repacked FPK files
- REM ===========================================================
- title Cleaning the repacked FPK files
- echo Cleaning the repacked FPK files:
- for /r %%q in (*.fpk*) do (
- title %%~nxq
- del "%%q"
- )
- REM ===========================================================
- REM Replace all FMDLs by our custom
- REM ===========================================================
- title Replace all FMDLs by our custom
- echo Replace all FMDLs by our custom:
- for /r %Script_path%\Assets\ %%f in (*.fmdl*) do (
- if exist "%Script_path%\%fmdl_name%.fmdl" (
- xcopy "%Script_path%\%fmdl_name%.fmdl" "%%~dpf" /Y
- )
- )
- REM pause
- exit
Advertisement
Add Comment
Please, Sign In to add comment