News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: making xdelta patcher for multiple files  (Read 233 times)

froid_san

  • Newbie
  • *
  • Posts: 1
    • View Profile
making xdelta patcher for multiple files
« on: July 02, 2019, 11:49:13 am »
as files some for ps3 contains multiple files. How would one approach making a multiple file patcher using xdelta? or a batch file patcher?


normally I usually use this method, but recently I've found out that some people having problems with this batch file. not really sure if its an windows version thing or permissions on desktop/drive


just an example:
Code: [Select]
@ECHO OFF

CHCP 65001
cls
echo.
echo ╔══════════════════════════════════════════════════════════════╗
echo ║                  Game patcher name here                      ║
echo ╚══════════════════════════════════════════════════════════════╝

:choice
set /P c=Are you sure you want to continue[Y/N]?
if /I "%c%" EQU "Y" goto :YES
if /I "%c%" EQU "N" goto :NO
goto :choice


:YES

set XDELTA_EXE="xdelta3.exe"

%XDELTA_EXE% -d -vfs orig\100.fad data\1.vcdiff mod\100.fad
%XDELTA_EXE% -d -vfs orig\10000.fad data\2.vcdiff mod\10000.fad
%XDELTA_EXE% -d -vfs orig\Collection.dat data\3.vcdiff mod\Collection.dat
%XDELTA_EXE% -d -vfs orig\Demo.dat_ data\4.vcdiff mod\Demo.dat_
%XDELTA_EXE% -d -vfs orig\Flower.dat data\5.vcdiff mod\Flower.dat
%XDELTA_EXE% -d -vfs orig\Font.dat data\6.vcdiff mod\Font.dat
%XDELTA_EXE% -d -vfs orig\StringList.dat data\8.vcdiff mod\StringList.dat
%XDELTA_EXE% -d -vfs orig\StringListDemo.dat data\9.vcdiff mod\StringListDemo.dat
%XDELTA_EXE% -d -vfs orig\font0.bin data\10.vcdiff mod\font0.bin

:NO
cls
echo.
echo "You've cancelled, exiting..."
timeout 5
exit
« Last Edit: July 02, 2019, 12:04:25 pm by froid_san »