mirror of
https://github.com/sfall-team/Fallout_DAT2.git
synced 2026-07-27 16:53:05 -07:00
Fixed packdat.bat for dat2.exe not in PATH but in the same folder
This commit is contained in:
+5
-1
@@ -18,11 +18,15 @@ set "datpath=%~dp1"
|
|||||||
if "%~2" == "" (
|
if "%~2" == "" (
|
||||||
set "datfile=%~nx1.dat"
|
set "datfile=%~nx1.dat"
|
||||||
) else (
|
) else (
|
||||||
set "datfile=%~nx2"
|
set "datfile=%~nx2.dat"
|
||||||
)
|
)
|
||||||
|
|
||||||
del "%~dp1%datfile%.bak" 2>nul
|
del "%~dp1%datfile%.bak" 2>nul
|
||||||
ren "%~dp1%datfile%" "%datfile%.bak" 2>nul
|
ren "%~dp1%datfile%" "%datfile%.bak" 2>nul
|
||||||
cd /d "%~dpnx1"
|
cd /d "%~dpnx1"
|
||||||
|
if exist "%retdir%\dat2.exe" (
|
||||||
|
"%retdir%\dat2.exe" a -r "..\%datfile%" *
|
||||||
|
) else (
|
||||||
dat2.exe a -r "..\%datfile%" *
|
dat2.exe a -r "..\%datfile%" *
|
||||||
|
)
|
||||||
cd /d "%retdir%"
|
cd /d "%retdir%"
|
||||||
|
|||||||
Reference in New Issue
Block a user