From 721119e4a61cbb261b456dfd134811d7beb5ce98 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 5 Sep 2017 20:48:42 +0100 Subject: Support for loading games in Javascript puzzles. This is done by showing a dialog containing an through which the user can 'upload' a save file - though, of course, the 'upload' doesn't go to any HTTP server, but only into the mind of the Javascript running in the same browser. It would be even nicer to support drag-and-drop as an alternative UI for getting the save file into the browser, but that isn't critical to getting the first version of this feature out of the door. --- emccx.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emccx.json') diff --git a/emccx.json b/emccx.json index 25d08fe..bdab346 100644 --- a/emccx.json +++ b/emccx.json @@ -18,9 +18,10 @@ '_timer_callback', // Callback from button presses in the UI outside the canvas '_command', - // Game-saving functions + // Game-saving and game-loading functions '_get_save_file', '_free_save_file', + '_load_game', // Callbacks to return values from dialog boxes '_dlg_return_sval', '_dlg_return_ival', -- cgit v1.1