simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Fri Oct 21 00:48:41 BST 2022
TL;DR:
47905e9 Revert "WASM: move save file encoding from JS into C."
a46f0c2 js: Read save files as text rather than binary strings
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2022-10-21 00:48:41
commit 47905e954726ff95ce5e4493def91b9107668c94
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=47905e954726ff95ce5e4493def91b9107668c94;hp=12491021d0541ded9f8f160a15b886a36e5aa8ac
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Fri Oct 21 00:25:34 2022 +0100
Revert "WASM: move save file encoding from JS into C."
Now that save files are (even more) officially ASCII, it's perfectly
safe to pass them to JavaScript as UTF-8 strings.
This means that the form in which save files are shipped from C to
JavaScript is the same is the form in which they're shipped from
JavaScript to C. That allows for doing new things with them, like
writing them to local storage.
This reverts commit f729f51e475ff98d0caf529f0723ef810b1c88ef.
emcc.c | 49 ++++---------------------------------------------
emccpre.js | 3 ++-
2 files changed, 6 insertions(+), 46 deletions(-)
commit a46f0c2ba9537d91944b3734f18a3fbfb822c9f8
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=a46f0c2ba9537d91944b3734f18a3fbfb822c9f8;hp=47905e954726ff95ce5e4493def91b9107668c94
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Thu Oct 13 10:29:29 2022 +0100
js: Read save files as text rather than binary strings
If I'm going to insist they're text I should be consistent about it.
emccpre.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the tartarus-commits
mailing list