Adam Powers
37361001f4
pre-fix @PatR 'SHELLERS on VMS' change
2020-11-17 23:58:12 -08:00
Adam Powers
c021293983
remove unnecesssary JavaScript code
2020-11-17 21:10:27 -08:00
Adam Powers
8c06dccd92
allow repeated running
2020-11-17 21:06:58 -08:00
Adam Powers
beb189e6cb
delinting
2020-11-07 16:13:14 -08:00
Adam Powers
9fa0c9cfd2
bump version
2020-11-01 16:41:38 -08:00
Adam Powers
d6d0e6dc60
fix bug due to fancy logic
2020-11-01 16:36:19 -08:00
Adam Powers
9275fc2428
return string for msg history
2020-11-01 16:35:44 -08:00
Adam Powers
b43b035321
fix wasm runtime errors
2020-10-19 13:22:02 -07:00
Adam Powers
6863730b63
remove wasm
2020-10-19 13:21:40 -07:00
Adam Powers
03e9eb6dd6
fix NO_SIGNAL
2020-10-19 13:21:07 -07:00
Adam Powers
5e5324c25b
fix build flags
2020-10-19 11:55:04 -07:00
Adam Powers
6598b3d2d0
wasm requires HACKDIR for embedded files
2020-10-19 11:54:42 -07:00
Adam Powers
c91ec0068f
update to new build system
2020-10-19 11:49:34 -07:00
Adam Powers
69264684bd
fix build path
2020-10-19 11:47:56 -07:00
Adam Powers
8fcc02fb81
fix stash merge conflict
2020-10-19 11:45:22 -07:00
Adam Powers
dc1c85faa4
more friendly javascript arguments
2020-10-04 14:04:56 -07:00
Adam Powers
ac4649e63f
add globals, constants, and helpers
2020-10-04 14:03:04 -07:00
Adam Powers
dc2d757399
libnethack pr385
...
roll parts of pr385 into source tree
This does not take the PR as is.
Unlike the PR, this streamlines and minimizes the integration somewhat:
- use hints/include mechanism instead of creating alternative
Makefile.dat, Makefile.src, Makefile.top, Makefile.utl in sys/lib;
those would have been a maintenance nightmare.
- don't have alternative mkmkfile.sh and setup.sh in sys/lib.
- sys/lib/libnethackmain.c differed from sys/unix/unixmain.c by
very little, so just place a small bit of conditional code at the
top of sys/unix/unixmain.c instead.
- changed the conditional code bits from __EMSCRIPTEN__ to
CROSS_TO_WASM.
- You should be able to build the wasm result by:
cd sys/unix ; sh setup.sh hints/linux.2020 ; cd ../..
make fetch-lua (<-one time)
make WANT_LIBNH all
- You should be able to build LIBNBH by:
cd sys/unix ; sh setup.sh hints/linux.2020 ; cd ../..
make fetch-lua (<-one time)
make CROSS_TO_WASM=1 all
As it is currently coded, winshim.c requires C99.
2020-10-04 14:46:32 -04:00
Adam Powers
741e6fd5b7
initial shim graphics
2020-10-04 14:46:31 -04:00
Adam Powers
5462072ceb
bump version for minor improvements
2020-09-12 12:49:10 -07:00
Adam Powers
1c23434de6
update docs
2020-09-12 12:48:28 -07:00
Adam Powers
176f553b6e
remove stray debug message
2020-09-12 12:48:13 -07:00
Adam Powers
d2fdc6f582
add new exports, cleaner debugging options
2020-09-12 12:40:04 -07:00
Adam Powers
6fcb7c3db3
fix ignored files
2020-09-12 12:35:01 -07:00
Adam Powers
34e4b1fae9
js test code
2020-09-12 12:34:45 -07:00
Adam Powers
c602ecc5a2
default is a permenant inventory window
2020-09-12 12:27:29 -07:00
Adam Powers
4e38d8f329
fix reentry and types, enhance debugging, delinting
2020-09-12 12:27:04 -07:00
Adam Powers
233c683912
add keywords
2020-09-12 12:24:12 -07:00
Adam Powers
fc2e6b0b6d
initial commit
2020-09-12 12:24:06 -07:00
Adam Powers
c36b948b21
add helpers and constants
2020-09-12 12:23:13 -07:00
Adam Powers
2e7e0c2325
change package name
2020-09-06 23:19:22 -07:00
Adam Powers
7b46e3d12c
update lib tests
2020-09-06 17:35:03 -07:00
Adam Powers
96cf11ad71
fix JS event loop blocking
2020-09-06 17:32:08 -07:00
Adam Powers
045a5879f1
npm doesn't allow 'hack' in package names
2020-09-02 07:42:29 -07:00
Adam Powers
a8373f2224
move package to npm organization
2020-09-02 07:28:01 -07:00
Adam Powers
caaa9b0588
remove stray printfs
2020-09-02 07:27:29 -07:00
Adam Powers
490b260454
remove stray console.log
2020-09-01 13:11:09 -07:00
Adam Powers
0c8e4e555e
complete API documentation
2020-08-30 12:09:42 -07:00
Adam Powers
b0e77f7729
initial npm package
2020-08-30 12:00:39 -07:00
Adam Powers
356e7432e7
ignore libnethack build files
2020-08-30 12:00:12 -07:00
Adam Powers
ffa5e319af
ignore libnethack dev files
2020-08-30 11:59:23 -07:00
Adam Powers
efae5590e5
completed shim graphics callbacks
2020-08-30 11:01:34 -07:00
Adam Powers
4ffb8c9ce3
fix naming
2020-08-30 10:46:55 -07:00
Adam Powers
85108bf7ef
add build section, fix naming
2020-08-30 10:45:54 -07:00
Adam Powers
42f948018d
initial helpers
2020-08-30 10:31:17 -07:00
Adam Powers
ca9d1c5b97
update build notes
2020-08-30 10:30:03 -07:00
Adam Powers
863f914337
added void functions
2020-08-29 15:50:42 -07:00
Adam Powers
14084dc50c
fix arg order
2020-08-29 14:48:22 -07:00
Adam Powers
4ef48ca49a
fix syntax errors for libnethack.a
2020-08-29 14:48:02 -07:00
Adam Powers
22bc4ecfc0
initial docs
2020-08-29 11:10:52 -07:00
Adam Powers
1a70f77b2a
more sensible arg order for callback
2020-08-29 11:10:09 -07:00
Adam Powers
e04b17911a
delinting
2020-08-29 10:27:51 -07:00
Adam Powers
97a14eebbe
functional shim graphics
2020-08-29 10:26:58 -07:00
Adam Powers
c9f5bb9ac4
replace -DWASM with compiler internal __EMSCRIPTEN__
2020-08-27 22:15:12 -07:00
Adam Powers
18254eb291
make system cleanup
2020-08-27 21:38:21 -07:00
Adam Powers
e5604d575f
fix undefined symbol in nhlib
2020-08-27 21:37:16 -07:00
Adam Powers
d3bbf02d2e
fix 'spotless' bug noticed during cross-compile
2020-08-27 21:12:51 -07:00
Adam Powers
1aa053d1d8
initial libnethack
2020-08-26 19:22:00 -07:00
Adam Powers
5939773971
initial shim graphics
2020-08-26 19:17:40 -07:00