Commit Graph

1844 Commits

Author SHA1 Message Date
Adam Powers
ac4649e63f add globals, constants, and helpers 2020-10-04 14:03:04 -07: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
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
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
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
14084dc50c fix arg order 2020-08-29 14:48:22 -07:00
Adam Powers
22bc4ecfc0 initial docs 2020-08-29 11:10:52 -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
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
nhmall
e191e6bc8f build warning fix on g++ >= 9 and Qt
../win/Qt/qt_menu.cpp: In member function ‘virtual void nethack_qt_::NetHackQtTextWindow::UseRIP(int, time_t)’:
../win/Qt/qt_menu.cpp:680:54: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 17 [-Wformat-truncation=]
  680 |     snprintf(rip_line[NAME_LINE], STONE_LINE_LEN+1, "%s", g.plname);
      |                                                      ^~   ~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../include/global.h:9,
                 from ../include/config.h:608,
                 from ../include/hack.h:10,
                 from ../win/Qt/qt_menu.cpp:8:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin_snprintf’ output between 1 and 32 bytes into a destination of size 17
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~../win/Qt/qt_menu.cpp: In member function ‘virtual void nethack_qt_::NetHackQtTextWindow::UseRIP(int, time_t)’:
../win/Qt/qt_menu.cpp:680:54: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 17 [-Wformat-truncation=]
  680 |     snprintf(rip_line[NAME_LINE], STONE_LINE_LEN+1, "%s", g.plname);
      |                                                      ^~   ~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../include/global.h:9,
                 from ../include/config.h:608,
                 from ../include/hack.h:10,
                 from ../win/Qt/qt_menu.cpp:8:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin_snprintf’ output between 1 and 32 bytes into a destination of size 17
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-08-20 11:18:32 -04:00
nhmall
d86dd4bb1b comment out what appears to be an obsolete bit in windows Makefile.gcc 2020-08-18 10:36:15 -04:00
nhmall
960f5d82b9 mirror recent make depends update in some other Makefiles 2020-08-18 10:26:24 -04:00
PatR
0438dfe5a3 Qt install dependencies
Playground setup:  Qt does not use external files pet_mark.xbm and
pilemark.xbm, it has pixmaps for those compiled in via qt_xpms.h.
Presumably because the pet mark heart has two sizes there.
2020-08-17 15:53:18 -07:00
PatR
276477e953 win/Qt/* dependencies update
A couple of qt_*.h headers now include other qt_*.h headers,
adding a bunch of new dependencies for the qt_*.cpp sources.
This is from 'make depend'.
2020-08-17 15:44:16 -07:00
nhmall
14d55c5bdb make sys/msdos/msdos-cross-compile.sh build msdos NetHack entirely
- should work on linux or MacOS to build an msdos zipfile distribution
- no longer requires env variables be set ahead of it because it will set some
  defaults within
- you must have zip and unzip on your system though
- you have to "make fetch-lua" first if you haven't already done that
- script takes care of obtaining the djgpp-cross-compiler etc, then
  uses it to build msdos NetHack
- to clean and rebuild from scratch:
  make -f sys/msdos/Makefile1.cross clean
2020-08-14 18:23:31 -04:00
nhmall
83f8da2a17 msdos cross-compile djggp build now with gcc 10
Also updates the travis build to Ubuntu focal because of an
ar libfl.so.2 shared library load error on xenial that was
easier to just get away from by moving to focal.
2020-08-14 17:25:05 -04:00
nhmall
3e9eb0d784 another typo 2020-08-13 13:48:33 -04:00
nhmall
39b30acb56 wording bit 2020-08-13 13:42:40 -04:00
nhmall
3592604b9c minor typo bit in NewInstall.unx
missing closing bracket ')' and wording change
2020-08-13 13:39:17 -04:00
nhmall
59fb03f004 Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7 2020-08-13 13:35:37 -04:00
nhmall
c67ef6acf8 update bottom of NewInstall.unx document with WANT_WIN_ build steps 2020-08-13 13:34:18 -04:00
nhmall
410b46678b comment bit
name had evolved but the comment had not been updated
2020-08-13 11:57:14 -04:00
nhmall
674021428d macosx.h Info.plist bit 2020-08-13 11:35:26 -04:00
nhmall
bdbf8f19cc update some hints mechanics for 2020
Allow sharing of common code between different hints files
through use of: #-INCLUDE

new folder created: sys/unix/hints/include
new hints include files:
    sys/unix/hints/include/multiw-1.2020
    sys/unix/hints/include/multiw-2.2020

structure the early parts of sys/unix/hints/linux.2020 and
sys/unix/hints/macOS.2020 consistently, and utilize #-INCLUDE multiw-1.2020
and #-INCLUDE multiw-2.2020 in them. That will allow the Makefile lines
that they contain to be maintained in a single place.
2020-08-13 11:34:23 -04:00
nhmall
0500aae0c0 another linux.2020 tweak
Leave CC alone; we've already determined whether it invoked gcc or clang
2020-08-10 21:39:00 -04:00
nhmall
ed46d5db08 detect the compiler available
test if CC invokes clang. If not, then assume it is gcc.
2020-08-10 21:27:05 -04:00
nhmall
8dca9b4f8a add compiler detection so warnings adjusted appropriately 2020-08-10 11:13:16 -04:00
nhmall
ef9caca4da distinguish compiler version before adding new -Wno option 2020-08-10 10:03:12 -04:00