Skip to content

Commit

Permalink
add GUI menu item to Restart Lua Virtual Machine
Browse files Browse the repository at this point in the history
  • Loading branch information
HarpyWar committed Aug 7, 2014
1 parent 5a61c02 commit c2b838b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/bnetd/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2284,6 +2284,7 @@ namespace pvpgn
{
queue_clear(q);
conn_set_state(c, conn_state_destroy);
eventlog(eventlog_level_error, __FUNCTION__, "outqueue reached limit of 1000 packets (hack attempt?)");
return 0;
}

Expand Down
1 change: 1 addition & 0 deletions src/win32/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#define IDR_MENU 104
#define IDM_SAVE 105
#define IDM_RESTART 106
#define IDM_RESTART_LUA 101
#define IDM_SHUTDOWN 107
#define IDM_EXIT 108
#define IDM_CLEAR 109
Expand Down
6 changes: 4 additions & 2 deletions src/win32/resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ BEGIN
POPUP "&Server"
BEGIN
MENUITEM "&Save Accounts", IDM_SAVE
MENUITEM "&Restart Lua VM", IDM_RESTART_LUA
MENUITEM "&Restart", IDM_RESTART
MENUITEM "Sh&utdown", IDM_SHUTDOWN
MENUITEM SEPARATOR
Expand Down Expand Up @@ -146,7 +147,7 @@ FONT 8, "MS Sans Serif", 0, 0
BEGIN
DEFPUSHBUTTON "&OK",IDOK,174,18,50,14
GROUPBOX PVPGN_VERSION ,IDC_STATIC,7,4,225,93
CTEXT "coded by the PvPGN Team\r\n\r\n- - - - - - - - - - - - - - -\r\n\r\nvisit us @ www.pvpgn.org or \r\n irc.pvpgn.org #pvpgn\r\n\r\n�2002 &2003 PvPGN Is a Open Source Project \r\n As specified by the GPL",
CTEXT "coded by the PvPGN Team\r\n\r\n- - - - - - - - - - - - - - -\r\n\r\nvisit us @ www.pvpgn.pro or \r\n irc.pvpgn.org #pvpgn\r\n\r\n�2002-&2014 PvPGN Is an Open Source Project \r\n As specified by the GPL",
IDC_STATIC,16,18,154,75
END

Expand Down Expand Up @@ -227,7 +228,8 @@ STRINGTABLE
BEGIN
IDS_APP_TITLE "bnet"
IDM_SAVE "Save Accounts"
IDM_RESTART "Restart"
IDM_RESTART_LUA "Restart Lua VM"
IDM_RESTART "Restart"
IDM_SHUTDOWN "Shutdown"
IDM_EXIT "Exit"
IDM_CLEAR "Clear Window"
Expand Down
3 changes: 3 additions & 0 deletions src/win32/winmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ namespace pvpgn
case IDM_SAVE:
server_save_wraper();
break;
case IDM_RESTART_LUA:
server_restart_wraper(restart_mode_lua);
break;
case IDM_RESTART:
server_restart_wraper(restart_mode_all);
break;
Expand Down

0 comments on commit c2b838b

Please sign in to comment.