summaryrefslogtreecommitdiff
path: root/makeNewerAll
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-07-08 02:46:59 +0200
committerTreeki <treeki@gmail.com>2012-07-08 02:46:59 +0200
commit613e30a894cddcdc11c8da140bae35090247c8ec (patch)
tree274cbfccc9e1795d13e1f2fe69d172d4b469877a /makeNewerAll
parent1c3e5a0b1c62829d78960c4d99e4928ccf73625f (diff)
downloadkamek-613e30a894cddcdc11c8da140bae35090247c8ec.tar.gz
kamek-613e30a894cddcdc11c8da140bae35090247c8ec.zip
added PALv2, made Kamek link all regions at the same time
Diffstat (limited to '')
-rwxr-xr-xmakeNewerAll20
-rwxr-xr-xmakeNewerAllCodehandler15
2 files changed, 12 insertions, 23 deletions
diff --git a/makeNewerAll b/makeNewerAll
deleted file mode 100755
index cceea26..0000000
--- a/makeNewerAll
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-python2 tools/mapfile_tool.py
-python2 tools/kamek.py NewerProject.yaml --no-rels --use-mw --use-wine --gcc-type=/opt/wiidev/bin/powerpc-elf --mw-path=tools
-if [ "$?" = "0" ]; then
- echo "compile successful"
-else
- exit 1
-fi
-
-cp NewerASM/pal_loader.bin ~/Games/Newer/DolphinPatch/NewerRes/SystemEU_1.bin
-cp NewerASM/pal_dlcode.bin ~/Games/Newer/DolphinPatch/NewerRes/DLCodeEU_1.bin
-cp NewerASM/pal_dlrelocs.bin ~/Games/Newer/DolphinPatch/NewerRes/DLRelocsEU_1.bin
-cp NewerASM/ntsc_loader.bin ~/Games/Newer/DolphinPatch/NewerRes/SystemUS_1.bin
-cp NewerASM/ntsc_dlcode.bin ~/Games/Newer/DolphinPatch/NewerRes/DLCodeUS_1.bin
-cp NewerASM/ntsc_dlrelocs.bin ~/Games/Newer/DolphinPatch/NewerRes/DLRelocsUS_1.bin
-cp NewerASM/ntsc2_loader.bin ~/Games/Newer/DolphinPatch/NewerRes/SystemUS_2.bin
-cp NewerASM/ntsc2_dlcode.bin ~/Games/Newer/DolphinPatch/NewerRes/DLCodeUS_2.bin
-cp NewerASM/ntsc2_dlrelocs.bin ~/Games/Newer/DolphinPatch/NewerRes/DLRelocsUS_2.bin
-echo Built all!
-
diff --git a/makeNewerAllCodehandler b/makeNewerAllCodehandler
index dffb254..638bc71 100755
--- a/makeNewerAllCodehandler
+++ b/makeNewerAllCodehandler
@@ -7,8 +7,17 @@ else
exit 1
fi
-cp NewerASM/pal_loader.bin ~/Games/Newer/DolphinPatch/NewerRes/SystemEU_1.bin
-cp NewerASM/ntsc_loader.bin ~/Games/Newer/DolphinPatch/NewerRes/SystemUS_1.bin
-cp NewerASM/ntsc2_loader.bin ~/Games/Newer/DolphinPatch/NewerRes/SystemUS_2.bin
+copy_files() {
+ cp NewerASM/n_$1_loader.bin ~/Games/Newer/DolphinPatch/NewerRes/System$2.bin
+ cp NewerASM/n_$1_dlcode.bin ~/Games/Newer/DolphinPatch/NewerRes/DLCode$2.bin
+ cp NewerASM/n_$1_dlrelocs.bin ~/Games/Newer/DolphinPatch/NewerRes/DLRelocs$2.bin
+}
+
+copy_files pal EU_1
+copy_files pal2 EU_2
+copy_files ntsc US_1
+copy_files ntsc2 US_2
+copy_files jpn JP_1
+
echo Built all!