KP22YYHA64P5DZKGDLYZKTDRGL7CKHRA3HYS3AZJC74F7VSAJW4AC
CWL5COBGVVKVMWCOLG7GQX4QE5RPJ3R6CC7SM5FR7E4HKNDCE3UQC
QAPYL6SQYUGBYN7EXAUTLJQALCAMAMDM3KKWIP2JGDQRMMLIQS7QC
X77YGIW45J5MFZSKQQOE6P3IZBQDIQRBTA2QA4PVUTOL4HAXDPNAC
2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC
R2ASHK5CEE3PTRLS37GP4PXJ7HIGJ6UD72KKBI57UDJI7VRROQGQC
WLWNS6FBT6D3HKOFWDPBKLK7KS73LJJLWLHNWX3YJ723OHJBZGDQC
LNUHQOGHIOFGJXNGA3DZLYEASLYYDGLN2I3EDZY5ANASQAHCG3YQC
P4763IPDNYZAEV47U3ZDJ3CGMKKGUACABKBFPGNNIJSHQ7RAAP4AC
5HBC66CSFQ257TO3DJYBUNKE5RKR47CUJNMYP6Y4F7T6W7LNRV4AC
XBOQIWITIRSZWIS2UKUFR6L45GLKTIZAXY4SEBS2OWBF6Q5CHRBQC
OV6FE23R76E357CRUDGHKSXYF5N3KO5NE62QL6OECX5SV3V4JCYQC
schedule_save(State)
schedule_save(State)
schedule_save(State)
schedule_save(State)
schedule_save(State)
-- make sure to save before quitting
if State.next_save then
save_to_disk(State)
end
if State.next_save and State.next_save < Current_time then
save_to_disk(State)
State.next_save = nil
end
end
function schedule_save(State)
if State.next_save == nil then
State.next_save = Current_time + 3 -- short enough that you're likely to still remember what you did
end