Note
基于 https://github.com/ddnet/ddnet e7746435948e58ed36ab062dfad91019b86dfaac
diff --git a/src/sui/sui_window.c b/src/sui/sui_window.c | |
index 4289123..e23233d 100644 | |
--- a/src/sui/sui_window.c | |
+++ b/src/sui/sui_window.c | |
@@ -276,6 +276,7 @@ static void sui_window_constructed(GObject *object){ | |
SuiWindow *self; | |
self = SUI_WINDOW(object); | |
+ self->cfg->csd = FALSE; | |
if (!self->cfg->csd){ |
diff --git a/src/core/server_state.c b/src/core/server_state.c | |
index abfbe72..dcdb3be 100644 | |
--- a/src/core/server_state.c | |
+++ b/src/core/server_state.c | |
@@ -36,7 +36,6 @@ | |
static const char *server_state_to_string(ServerState state); | |
static const char *server_action_to_string(ServerAction action); | |
-static gboolean server_keepalive_timeout(gpointer user_data); | |
static gboolean server_reconnect_timeout(gpointer user_data); |
SrnRet server_state_machine(Server *srv, ServerAction act){ | |
ServerState cur_state; | |
ServerState next_state; | |
cur_state = srv->stat; | |
next_state = SERVER_STATE_UNKNOWN; | |
/* State machine starts */ | |
switch (srv->stat) { | |
case SERVER_STATE_UNKNOWN: |
--- libnotify-0.7.6/libnotify/Makefile.am 2018-01-14 17:47:50.120733900 +0800 | |
+++ libnotify-0.7.6/libnotify/Makefile.am 2018-01-14 17:50:06.243780700 +0800 | |
@@ -60,7 +60,7 @@ | |
s-enum-types-h: $(notify_headers) Makefile | |
$(AM_V_GEN) ( cd $(srcdir) && glib-mkenums \ | |
--fhead "#ifndef _NOTIFY_ENUM_TYPES_H_\n#define _NOTIFY_ENUM_TYPES_H_\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \ | |
- --fprod "/* enumerations from \"@filename@\" */\n" \ | |
+ --fprod "\n/* enumerations from \"@filename@\" */\n" \ | |
--vhead "GType @enum_name@_get_type(void);\n#define NOTIFY_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ | |
--ftail "G_END_DECLS\n\n#endif /* _NOTIFY_ENUM_TYPES_H_ */" \ |
Note
基于 https://github.com/ddnet/ddnet e7746435948e58ed36ab062dfad91019b86dfaac
sv_name Arch Linux CN Teeworlds Server | |
sv_motd "出问题请到 #archlinux-cn-game @ freenode pia VOID001." | |
# 最大游戏人数 | |
sv_max_clients 16 | |
sv_port 8303 | |
# 控制台密码 | |
# sv_rcon_password your_rcon_password | |
# sv_rcon_max_tries 5 | |
# 在索引服务器上注册 | |
sv_register 1 |
.. code-block:: python | |
:linenos | |
print('www') | |
prefix=/usr | |
exec_prefix=${prefix} | |
libdir=${exec_prefix}/lib | |
includedir=${prefix}/include | |
Name: libircclient | |
Description: Small but powerful library, which implements client-server IRC protocol | |
Version: 1.8 | |
Requires: | |
Libs: -L${libdir} -lircclient |
/* | |
File: linux/ext2_xattr.h | |
On-disk format of extended attributes for the ext2 filesystem. | |
(C) 2001 Andreas Gruenbacher, <[email protected]> | |
*/ | |
#include <linux/init.h> | |
#include <linux/xattr.h> |
TEST_NODE=~/test | |
EXT2FS_PATH=~/hurd/ext2fs | |
load() { | |
mv $EXT2FS_PATH/ext2fs $EXT2FS_PATH/_ext2fs | |
sudo settrans -a $TEST_NODE $EXT2FS_PATH/_ext2fs /dev/hd2 | |
} | |
unload() { | |
sudo settrans -g $TEST_NODE |