File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed
libnethack_client/include
libnethack_common/include Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 17
17
18
18
# include <jansson.h>
19
19
20
- # define DEFAULT_PORT 53430
21
-
22
20
extern struct nh_window_procs client_windowprocs ;
23
21
extern int current_game ;
24
22
extern jmp_buf ex_jmp_buf ;
Original file line number Diff line number Diff line change 7
7
8
8
# include "nethack_types.h"
9
9
10
+ # define DEFAULT_PORT 53430
11
+
10
12
# ifdef NETHACK_CLIENT_H_IN_LIBNETHACK_CLIENT
11
13
# define EXPORT (x ) AIMAKE_EXPORT(x)
12
14
# else
Original file line number Diff line number Diff line change @@ -713,7 +713,8 @@ netgame(void)
713
713
if (ui_flags .connection_only ) {
714
714
servlist = NULL ;
715
715
server = & localserver ;
716
- localserver .hostname = strdup ("::1" );
716
+ localserver .hostname = strdup ("localhost" );
717
+ localserver .port = DEFAULT_PORT ;
717
718
if (!get_username_password (& localserver ))
718
719
goto finally ;
719
720
} else {
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ struct { const char *const name; size_t offset; } settings_map[] = {
39
39
SETTINGS_MAP_ENTRY (dbport ),
40
40
SETTINGS_MAP_ENTRY (dbuser ),
41
41
SETTINGS_MAP_ENTRY (dbpass ),
42
- SETTINGS_MAP_ENTRY (dbname )
42
+ SETTINGS_MAP_ENTRY (dbname ),
43
+ SETTINGS_MAP_ENTRY (dboptions )
43
44
};
44
45
45
46
static int
Original file line number Diff line number Diff line change 2
2
set -e
3
3
# set -x
4
4
5
- mkdir build
5
+ mkdir -p build
6
6
cd build
7
7
8
8
if [[ -z " $BUILD_SYSTEM " ]]; then
@@ -16,7 +16,7 @@ elif [[ "$BUILD_SYSTEM" == aimake ]]; then
16
16
tempfile=" $( mktemp) "
17
17
trap " rm -f \" $tempfile \" " EXIT ERR
18
18
19
- ../aimake -i /tmp/bingehack4 2>&1 | tee " $tempfile "
19
+ ../aimake --with=server - i /tmp/bingehack4 2>&1 | tee " $tempfile "
20
20
grep -qi " fail" " $tempfile " && exit 1
21
21
else
22
22
echo " Unsupported build system $BUILD_SYSTEM " >&2
You can’t perform that action at this time.
0 commit comments