-
Notifications
You must be signed in to change notification settings - Fork 0
/
Write.bat
44 lines (32 loc) · 1.6 KB
/
Write.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
::Folders
set projectFolder=%cd%
set spiroFolder=%projectFolder%\tools\spiro
set extractedAssetsFolder=%projectFolder%\saydos
set extractedFileAssetsFolder=%extractedAssetsFolder%\files
set armipsFolder=%projectFolder%\tools\armips
set saydosToolFolder=%projectFolder%\tools\saydos
set compressionToolFolder=%projectFolder%\tools\compression
set saydosFiles=%extractedAssetsFolder%\files
::Compression
set uncompressedOldPath=%projectFolder%\graphics\uncompressed (original)
set uncompressedNewPath=%projectFolder%\graphics\uncompressed (new)
set compressedNewPath=%projectFolder%\graphics\compressed (new)
::Roms
set baseImage=%projectFolder%\roms\Final Fantasy (1989)(Micro Cabin)(jp)(Disk 1 of 2)(Game Disk).dsk
set newImage=%projectFolder%\roms\Final Fantasy (NEW).dsk
cd "%projectFolder%"
del "%newImage%"
copy "%baseImage%" "%newImage%"
::Extract file and sectors from disk image
"%saydosToolFolder%\SayDos.exe" "Dump" "%baseImage%" "%extractedAssetsFolder%"
::Write script
"%spiroFolder%\Spiro.exe" /ProjectDirectory "%projectFolder%" /Write /Verbose
::Add compressed graphics
"%compressionToolFolder%\FF MSX GFX.exe" Write "%uncompressedNewPath%\FONT.bin" "%saydosFiles%\FONT.PIC"
"%compressionToolFolder%\FF MSX GFX.exe" Write "%uncompressedNewPath%\OPMSG.bin" "%saydosFiles%\OPMSG.PIC"
"%compressionToolFolder%\FF MSX GFX.exe" Write "%uncompressedNewPath%\OPENGRP.bin" "%saydosFiles%\OPENGRP.PIC"
::Armips scripts
"%armipsFolder%\armips.exe" "%projectFolder%\asm\main.asm"
"%saydosToolFolder%\SayDos.exe" "Write" "%newImage%" "%extractedAssetsFolder%"
"%newImage%"
@pause