aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorOrfeas <38209077+0xfea5@users.noreply.github.com>2024-04-23 19:38:50 +0300
committerOrfeas <38209077+0xfea5@users.noreply.github.com>2024-04-23 19:38:50 +0300
commit6bf809731abfd1893e73f6c6b35d0a22dacd6fb2 (patch)
tree2badb20131925d49384ae4f81924f02bcff58617 /scripts
parentAdded the presentation (diff)
downloadlinux-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.sh2
-rw-r--r--scripts/scan.sh2
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
9scanfile=${SCANFILE:-/tmp/scanfile} 9scanfile=${SCANFILE:-/tmp/scanfile}
10pid="$1" 10pid="$1"
11watch -d -n 1 "xargs -r -a ${scanfile} ./hack.out ${pid} read 8 > /tmp/out 2> /dev/null && pr -t -m ${scanfile} /tmp/out" 11watch -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
25do 25do
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}