set projectFolder=%cd%

set originalDiskImage=%projectFolder%\Shizuku.hdi
set newDiskImage=%projectFolder%\Shizuku_Eng.hdi
copy "%originalDiskImage%" "%newDiskImage%"

cd "%projectFolder%\SCN"

:: Insert scene scripts
for %%f in (*.DAT) do (
	"%projectFolder%/NDC.exe" D "%newDiskImage%" 0 "SIZUKU\SCN\%%f"
	"%projectFolder%/NDC.exe" P "%newDiskImage%" 0 "%%f" "SIZUKU\SCN"
)

cd "%projectFolder%\HVS"

:: Insert scene scripts
for %%f in (*.LFG) do (
	"%projectFolder%/NDC.exe" D "%newDiskImage%" 0 "SIZUKU\HVS\%%f"
	"%projectFolder%/NDC.exe" P "%newDiskImage%" 0 "%%f" "SIZUKU\HVS"
)

cd "%projectFolder%"

::Insert font
"%projectFolder%/NDC.exe" D "%newDiskImage%" 0 "SIZUKU\KNJ_ENG.KCD"
"%projectFolder%/NDC.exe" P "%newDiskImage%" 0 "%projectFolder%\KNJ_ENG.KCD" "SIZUKU"

::Insert patched EXE
"%projectFolder%/NDC.exe" D "%newDiskImage%" 0 "SIZUKU\MAX_ADV.EXE"
"%projectFolder%/NDC.exe" P "%newDiskImage%" 0 "%projectFolder%\MAX_ADV.EXE" "SIZUKU"

::Insert title logo
"%projectFolder%/NDC.exe" D "%newDiskImage%" 0 "SIZUKU\TITLE.LFG"
"%projectFolder%/NDC.exe" P "%newDiskImage%" 0 "%projectFolder%\TITLE.LFG" "SIZUKU"