• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisión6f5b10cc8b82003ce66ffe144027318be50d0095 (tree)
Tiempo2020-03-29 20:52:29
Autorshimitei <shimitei@gmai...>
Commitershimitei

Log Message

refactoring

Cambiar Resumen

Diferencia incremental

--- a/src/h-system.h
+++ b/src/h-system.h
@@ -118,4 +118,8 @@
118118
119119 #include <stdarg.h>
120120
121+#ifdef __EMSCRIPTEN__
122+#include <emscripten.h>
123+#endif
124+
121125 #endif /* INCLUDED_H_SYSTEM_H */
--- a/src/main-wasm-term.c
+++ b/src/main-wasm-term.c
@@ -1,6 +1,5 @@
11 /* File: main-wasm-term.c */
22
3-#include <emscripten.h>
43 #include "angband.h"
54
65 /*
@@ -106,19 +105,11 @@ static errr Term_curs_wasm(int x, int y)
106105 }
107106
108107 /*
109- * Process an event
110- */
111-static errr Term_xtra_wasm_event(int v)
112-{
113- /* Success */
114- return (0);
115-}
116-
117-/*
118108 * Handle a "special request"
119109 */
120110 static errr Term_xtra_wasm(int n, int v)
121111 {
112+ emscripten_sleep(10);
122113 /* Not parsed */
123114 return (1);
124115 }
--- a/src/main-wasm.c
+++ b/src/main-wasm.c
@@ -8,7 +8,6 @@
88 * are included in all such copies.
99 */
1010
11-#include <emscripten.h>
1211 #include "angband.h"
1312
1413 /*
--- a/src/util.c
+++ b/src/util.c
@@ -12,9 +12,6 @@
1212
1313 #include "angband.h"
1414 #include "monsterrace-hook.h"
15-#ifdef __EMSCRIPTEN__
16-#include <emscripten.h>
17-#endif
1815
1916
2017 static int num_more = 0;
@@ -2117,8 +2114,6 @@ char inkey(void)
21172114 /* Get a key */
21182115 while (!ch)
21192116 {
2120- emscripten_sleep(10);
2121-
21222117 /* Hack -- Handle "inkey_scan" */
21232118 if (!inkey_base && inkey_scan &&
21242119 (0 != Term_inkey(&kk, FALSE, FALSE)))