From 43e41ea9a11970bef478bfc17f3c136b7680e6ef Mon Sep 17 00:00:00 2001 From: Kirill Zhumarin Date: Sat, 16 Nov 2024 16:43:51 +0000 Subject: [PATCH] fix shit --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 3e01a8f..b82f3fd 100755 --- a/build.sh +++ b/build.sh @@ -16,8 +16,10 @@ else for model in ${MODELS[*]}; do wine $IAR drawhook.ewp -make $model - if [[ -f ../elfloader3/ff/$model.bin ]]; then - wine postbuild/elf2vkp.exe VKP/$model/drawhook.elf VKP/$model/drawhook.vkp.tmp ../elfloader3/ff/$model.bin + ff="${model/v/sw}" + + if [[ -f ../elfloader3/ff/$ff.bin ]]; then + wine postbuild/elf2vkp.exe VKP/$model/drawhook.elf VKP/$model/drawhook.vkp.tmp ../elfloader3/ff/$ff.bin else wine postbuild/elf2vkp.exe VKP/$model/drawhook.elf VKP/$model/drawhook.vkp.tmp fi