move commonly used scripts to specific folders (#325)

* move commonly used scripts to specific folders

* fixes

* Update test.sh

* Update test.sh

* Fix file permission
This commit is contained in:
ManDude 2021-03-18 20:43:37 +00:00 committed by GitHub
parent 4262145c99
commit 8e1c147ad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 26 additions and 22 deletions

View file

@ -1,8 +0,0 @@
@echo off
:: The caret ^ acts as a line break but does not make the next line a different command.
out\build\Release\bin\decompiler decompiler\config\jak1_ntsc_black_label.jsonc iso_data\jak1 ^
decompiler_out\jak1
:: The pause command makes the batch operation halt with a "Press any key to continue..." message.
:: Useful for example if the decompiler failed and exited for whatever reason, or for verifying its
:: success.
pause

View file

@ -1,6 +0,0 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/decompiler/decompiler $DIR/decompiler/config/jak1_ntsc_black_label.jsonc $DIR/iso_data $DIR/decompiler_out

View file

@ -2616,15 +2616,15 @@
(define-extern cpad-set-buzz! (function cpad-info int int int none))
(define-extern *cpad-debug* symbol) ;; unknown type
(define-extern *cpad-debug* symbol)
(define-extern analog-input (function int float float float float float))
(define-extern buzz-stop! (function int none))
;;(define-extern cpad-info object) ;; unknown type
;;(define-extern hw-cpad object) ;; unknown type
(define-extern cpad-invalid! (function cpad-info cpad-info))
;;(define-extern cpad-list object) ;; unknown type
;;(define-extern *cheat-mode* object) ;; unknown type
(define-extern *cpad-list* cpad-list) ;; unknown type
(define-extern *cheat-mode* symbol) ;; bool
(define-extern *cpad-list* cpad-list)
(define-extern service-cpads (function cpad-list))
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;

View file

@ -463,6 +463,10 @@
"vars":{"gp-0":"pad-list", "s5-0":"pad-idx", "s4-0":"pad", "s3-0":"buzz-idx", "v1-29":"current-button0"}
},
"buzz-stop!":{
"args":["idx"]
},
"default-buffer-init":{
"args":["buff"],
"vars":{"v1-0":"buff", "v1-1":"buff", "v1-3":"buff", "v1-4":"buff", "a1-4":"tag", "a1-6":"tag2", "a1-8":"data", "a0-1":"tag3", "v1-2":"buff"}

View file

@ -0,0 +1,4 @@
@echo off
cd ..\..
out\build\Release\bin\decompiler decompiler\config\jak1_ntsc_black_label.jsonc iso_data\jak1 decompiler_out\jak1
pause

View file

@ -1,2 +1,3 @@
@echo off
cd ..\..
out\build\Release\bin\goalc -v

View file

@ -1,2 +1,3 @@
@echo off
cd ..\..
out\build\Release\bin\gk -fakeiso -debug -v

View file

@ -1,3 +1,4 @@
@echo off
cd ..\..
out\build\Release\bin\goalc-test
pause

2
boot_game.sh → scripts/shell/boot_game.sh Executable file → Normal file
View file

@ -3,4 +3,4 @@
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/game/gk -boot -fakeiso -debug "$@"
"${DIR}"/../../build/game/gk -boot -fakeiso -debug "$@"

2
boot_kernel.sh → scripts/shell/boot_kernel.sh Executable file → Normal file
View file

@ -3,4 +3,4 @@
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/game/gk -fakeiso -debug -nodisplay"$@"
"${DIR}"/../../build/game/gk -fakeiso -debug -nodisplay"$@"

2
check.sh → scripts/shell/check.sh Executable file → Normal file
View file

@ -2,5 +2,5 @@
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd ${DIR}/out
cd "${DIR}"/../../out
md5sum --check hash.md5

6
scripts/shell/decomp.sh Normal file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"${DIR}"/../../build/decompiler/decompiler "${DIR}"/../../decompiler/config/jak1_ntsc_black_label.jsonc "${DIR}"/../../iso_data "${DIR}"/../../decompiler_out

2
gc.sh → scripts/shell/gc.sh Executable file → Normal file
View file

@ -3,4 +3,4 @@
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/goalc/goalc "$@"
"${DIR}"/../../build/goalc/goalc "$@"

2
gk.sh → scripts/shell/gk.sh Executable file → Normal file
View file

@ -3,4 +3,4 @@
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/game/gk -fakeiso -debug -nokernel -nodisplay "$@"
"${DIR}"/../../build/game/gk -fakeiso -debug -nokernel -nodisplay "$@"

View file

@ -8,6 +8,7 @@ echo "======================================="
echo ""
echo " ================= Cloning..."
cd ../..
ISO_DATA_PATH=${1}
BRANCH_NAME=${2:-master}
# Provide a default location to bind the ISO_DATA_PATH