aboutsummaryrefslogtreecommitdiff
path: root/emcclib.js
diff options
context:
space:
mode:
Diffstat (limited to 'emcclib.js')
-rw-r--r--emcclib.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/emcclib.js b/emcclib.js
index 07cbf3b..80d17b9 100644
--- a/emcclib.js
+++ b/emcclib.js
@@ -783,5 +783,14 @@ mergeInto(LibraryManager.library, {
*/
js_focus_canvas: function() {
onscreen_canvas.focus();
+ },
+
+ /*
+ * bool js_savefile_read(void *buf, int len);
+ *
+ * Read len bytes from the save file that we're currently loading.
+ */
+ js_savefile_read: function(buf, len) {
+ return savefile_read_callback(buf, len);
}
});