diff options
| author | Simon Tatham <anakin@pobox.com> | 2021-05-22 21:04:22 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2021-05-22 21:04:22 +0100 |
| commit | 1c760b2ee808ba68781a68a57292cc841b3df5a0 (patch) | |
| tree | d2f8176c0a84beb071361e02d7d68c8e62c1d75b | |
| parent | 20a85890d713d9a6b701eee08a76538f0a4334e4 (diff) | |
| download | puzzles-1c760b2ee808ba68781a68a57292cc841b3df5a0.zip puzzles-1c760b2ee808ba68781a68a57292cc841b3df5a0.tar.gz puzzles-1c760b2ee808ba68781a68a57292cc841b3df5a0.tar.bz2 puzzles-1c760b2ee808ba68781a68a57292cc841b3df5a0.tar.xz | |
WASM: fix save-file generation.
In commit f6434e84964d840 I said I had replaced all uses of
old-Emscripten's Pointer_stringify() function with new-Emscripten's
UTF8ToString(). In fact, I only replaced the ones in emcclib.js, but I
missed one in emccpre.js used in preparing downloadable save files.
Those were therefore broken, with a Javascript undefined-name error.
| -rw-r--r-- | emccpre.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -372,7 +372,7 @@ function initPuzzle() { document.getElementById("save").onclick = function(event) { if (dlg_dimmer === null) { var savefile_ptr = get_save_file(); - var savefile_text = Pointer_stringify(savefile_ptr); + var savefile_text = UTF8ToString(savefile_ptr); free_save_file(savefile_ptr); dialog_init("Download saved-game file"); dlg_form.appendChild(document.createTextNode( |