変愚蛮怒のメインリポジトリです
Revisión | 6f5b10cc8b82003ce66ffe144027318be50d0095 (tree) |
---|---|
Tiempo | 2020-03-29 20:52:29 |
Autor | shimitei <shimitei@gmai...> |
Commiter | shimitei |
refactoring
@@ -118,4 +118,8 @@ | ||
118 | 118 | |
119 | 119 | #include <stdarg.h> |
120 | 120 | |
121 | +#ifdef __EMSCRIPTEN__ | |
122 | +#include <emscripten.h> | |
123 | +#endif | |
124 | + | |
121 | 125 | #endif /* INCLUDED_H_SYSTEM_H */ |
@@ -1,6 +1,5 @@ | ||
1 | 1 | /* File: main-wasm-term.c */ |
2 | 2 | |
3 | -#include <emscripten.h> | |
4 | 3 | #include "angband.h" |
5 | 4 | |
6 | 5 | /* |
@@ -106,19 +105,11 @@ static errr Term_curs_wasm(int x, int y) | ||
106 | 105 | } |
107 | 106 | |
108 | 107 | /* |
109 | - * Process an event | |
110 | - */ | |
111 | -static errr Term_xtra_wasm_event(int v) | |
112 | -{ | |
113 | - /* Success */ | |
114 | - return (0); | |
115 | -} | |
116 | - | |
117 | -/* | |
118 | 108 | * Handle a "special request" |
119 | 109 | */ |
120 | 110 | static errr Term_xtra_wasm(int n, int v) |
121 | 111 | { |
112 | + emscripten_sleep(10); | |
122 | 113 | /* Not parsed */ |
123 | 114 | return (1); |
124 | 115 | } |
@@ -8,7 +8,6 @@ | ||
8 | 8 | * are included in all such copies. |
9 | 9 | */ |
10 | 10 | |
11 | -#include <emscripten.h> | |
12 | 11 | #include "angband.h" |
13 | 12 | |
14 | 13 | /* |
@@ -12,9 +12,6 @@ | ||
12 | 12 | |
13 | 13 | #include "angband.h" |
14 | 14 | #include "monsterrace-hook.h" |
15 | -#ifdef __EMSCRIPTEN__ | |
16 | -#include <emscripten.h> | |
17 | -#endif | |
18 | 15 | |
19 | 16 | |
20 | 17 | static int num_more = 0; |
@@ -2117,8 +2114,6 @@ char inkey(void) | ||
2117 | 2114 | /* Get a key */ |
2118 | 2115 | while (!ch) |
2119 | 2116 | { |
2120 | - emscripten_sleep(10); | |
2121 | - | |
2122 | 2117 | /* Hack -- Handle "inkey_scan" */ |
2123 | 2118 | if (!inkey_base && inkey_scan && |
2124 | 2119 | (0 != Term_inkey(&kk, FALSE, FALSE))) |