From ab74f660dd0301995d2b71be27e89764e1ee4b5e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 25 May 2023 20:52:06 +0200 Subject: Remove stale stuff. --- tools/readgame.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/readgame.sh (limited to 'tools/readgame.sh') diff --git a/tools/readgame.sh b/tools/readgame.sh new file mode 100644 index 0000000..4a8fdbd --- /dev/null +++ b/tools/readgame.sh @@ -0,0 +1,10 @@ +#!/bin/bash +if [ -n "$1" -a -n "$2" ] +then + sqlite3 db "select writefile('$2',state) from game_state where game_id = $1" +elif [ -n "$1" ] +then + sqlite3 db "select state from game_state where game_id = $1" +else + echo "usage: bash tools/readgame.sh GAME [ state.json ]" +fi -- cgit v1.2.3