From fc1cec6a65c5567533557ef19d8f2ad5a80e0bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 29 Feb 2016 06:54:12 +0100 Subject: tools/dump_payload: dump state.json and turn.json --- tools/dump_payload | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/dump_payload b/tools/dump_payload index 11a8ee5..e03beb6 100755 --- a/tools/dump_payload +++ b/tools/dump_payload @@ -1,3 +1,4 @@ #! /bin/bash -sqlite3 android/assets/data/rustanddust.sqlite 'select payload from states where _g=1' > out.json +sqlite3 android/assets/data/rustanddust.sqlite 'select payload from states where _g=(select _id from games order by ts desc limit 1)' > state.json +sqlite3 android/assets/data/rustanddust.sqlite 'select payload from turns where _id=(select max(_id) from turns)' > turn.json -- cgit v1.1-2-g2b99