summaryrefslogtreecommitdiffstats
path: root/tools/dump_payload
blob: e03beb6878511e65007483aedee8935279852abb (plain)
1
2
3
4
#! /bin/bash

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