From 023103612eeeb8681b65ec5e9114d206b2d9a1dc Mon Sep 17 00:00:00 2001 From: untir_l <87096069+untir-l@users.noreply.github.com> Date: Sat, 11 Jun 2022 21:45:23 +0530 Subject: Add screenshot of web UI to README.md, add back download button, misc. Added assert(0) to the end of main() in hitomezashi_web.c indicating that it is unreachable. --- README.md | 2 ++ screenshot_web.png | Bin 0 -> 32137 bytes web/hitomezashi_web.c | 3 ++- web/hitomezashi_web_shell.html | 4 +++- 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 screenshot_web.png diff --git a/README.md b/README.md index a780310..abc4526 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ To build, first run `make clean` if you previously built to native code, then (w You will need to serve, from a web server: `hitomezashi_web.html`, `hitomezashi_web.js`, `hitomezashi_web.wasm` in order for it to work; the `file://` protocol may not be sufficient. + + ## Technical and copyright information Written in C11 with SDL2. Code style: `make format-code` will run `clang-format` with the correct parameters. diff --git a/screenshot_web.png b/screenshot_web.png new file mode 100644 index 0000000..4a6c0ba Binary files /dev/null and b/screenshot_web.png differ diff --git a/web/hitomezashi_web.c b/web/hitomezashi_web.c index 994eaa5..7e756ff 100644 --- a/web/hitomezashi_web.c +++ b/web/hitomezashi_web.c @@ -3,6 +3,7 @@ #include "emscripten.h" #include "hitomezashi.h" #include "hitomezashi_utils.h" +#include #include #include #include @@ -21,7 +22,7 @@ int EMSCRIPTEN_KEEPALIVE main(void) { emscripten_set_main_loop(main_loop, -1, true); - return EXIT_SUCCESS; + assert(0); // This should never be reached } void EMSCRIPTEN_KEEPALIVE main_loop(void) { diff --git a/web/hitomezashi_web_shell.html b/web/hitomezashi_web_shell.html index e0e23d4..8e53afe 100644 --- a/web/hitomezashi_web_shell.html +++ b/web/hitomezashi_web_shell.html @@ -58,8 +58,10 @@

- +
+
+