mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed nethash
This commit is contained in:
parent
0ec755ee74
commit
3c7adc6a7f
|
@ -31,6 +31,6 @@ for filename in sys.argv[1:]:
|
|||
hash = hashlib.md5(f).hexdigest().lower()[16:]
|
||||
# TODO: refactor hash that is equal to the 0.5 hash, remove when we
|
||||
# TODO: remove when we don't need it any more
|
||||
if hash == "c139dc3e0152dff6":
|
||||
if hash == "8755162e69711f98":
|
||||
hash = "b67d1f1a1eea234e"
|
||||
print('#define GAME_NETVERSION_HASH "%s"' % hash)
|
||||
|
|
|
@ -1340,12 +1340,14 @@ void gui_messagebox(const char *title, const char *message)
|
|||
RunStandardAlert(theItem, NULL, &itemIndex);
|
||||
#elif defined(CONF_FAMILY_UNIX)
|
||||
static char cmd[1024];
|
||||
int err;
|
||||
/* use xmessage which is available on nearly every X11 system */
|
||||
snprintf(cmd, sizeof(cmd), "xmessage -center -title '%s' '%s'",
|
||||
title,
|
||||
message);
|
||||
|
||||
int err = system(cmd);
|
||||
err = system(cmd);
|
||||
dbg_msg("gui/msgbox", "result = %i", err);
|
||||
#elif defined(CONF_FAMILY_WINDOWS)
|
||||
MessageBox(NULL,
|
||||
message,
|
||||
|
|
|
@ -1133,4 +1133,4 @@ void CGameContext::OnPostSnap()
|
|||
const char *CGameContext::Version() { return GAME_VERSION; }
|
||||
const char *CGameContext::NetVersion() { return GAME_NETVERSION; }
|
||||
|
||||
IGameServer *CreateGameServer() { return new CGameContext; }
|
||||
IGameServer *CreateGameServer() { return new CGameContext; }
|
||||
|
|
Loading…
Reference in a new issue