diff options
| author | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-23 19:38:50 +0300 |
|---|---|---|
| committer | Orfeas <38209077+0xfea5@users.noreply.github.com> | 2024-04-23 19:38:50 +0300 |
| commit | 6bf809731abfd1893e73f6c6b35d0a22dacd6fb2 (patch) | |
| tree | 2badb20131925d49384ae4f81924f02bcff58617 /scripts | |
| parent | Added the presentation (diff) | |
| download | linux-game-trainer-6bf809731abfd1893e73f6c6b35d0a22dacd6fb2.tar.gz linux-game-trainer-6bf809731abfd1893e73f6c6b35d0a22dacd6fb2.zip | |
Small changes to the Makefile and the scripts
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/read.sh | 2 | ||||
| -rw-r--r-- | scripts/scan.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/read.sh b/scripts/read.sh index 38535e6..f26ba11 100644 --- a/scripts/read.sh +++ b/scripts/read.sh | |||
| @@ -8,4 +8,4 @@ fi | |||
| 8 | 8 | ||
| 9 | scanfile=${SCANFILE:-/tmp/scanfile} | 9 | scanfile=${SCANFILE:-/tmp/scanfile} |
| 10 | pid="$1" | 10 | pid="$1" |
| 11 | watch -d -n 1 "xargs -r -a ${scanfile} ./hack.out ${pid} read 8 > /tmp/out 2> /dev/null && pr -t -m ${scanfile} /tmp/out" | 11 | watch -d -n 1 "xargs -r -a ${scanfile} ./trainer ${pid} read 8 > /tmp/out 2> /dev/null && pr -t -m ${scanfile} /tmp/out" |
diff --git a/scripts/scan.sh b/scripts/scan.sh index c700011..bb4f77c 100644 --- a/scripts/scan.sh +++ b/scripts/scan.sh | |||
| @@ -25,7 +25,7 @@ while true | |||
| 25 | do | 25 | do |
| 26 | read -p "Scan pattern (hex): " pattern | 26 | read -p "Scan pattern (hex): " pattern |
| 27 | newscan=$(mktemp) | 27 | newscan=$(mktemp) |
| 28 | ./hack.out ${pid} scan ${pattern} > ${newscan} 2> /dev/null | 28 | ./trainer ${pid} scan ${pattern} > ${newscan} 2> /dev/null |
| 29 | if [ ! -f ${scanfile} ] | 29 | if [ ! -f ${scanfile} ] |
| 30 | then | 30 | then |
| 31 | mv ${newscan} ${scanfile} | 31 | mv ${newscan} ${scanfile} |
