Lines 1-11
Link Here
|
1 |
--- odalaunch/src/dlg_main.cpp.orig 2012-05-31 03:49:32.000000000 +0400 |
1 |
--- odalaunch/src/dlg_main.cpp.orig 2013-11-29 02:22:10.000000000 +0100 |
2 |
+++ odalaunch/src/dlg_main.cpp 2012-12-03 21:21:50.000000000 +0400 |
2 |
+++ odalaunch/src/dlg_main.cpp 2014-07-19 17:50:52.000000000 +0200 |
3 |
@@ -193,7 +193,7 @@ |
3 |
@@ -1,7 +1,7 @@ |
|
|
4 |
// Emacs style mode select -*- C++ -*- |
5 |
//----------------------------------------------------------------------------- |
6 |
// |
7 |
-// $Id: dlg_main.cpp 4376 2013-11-29 01:22:10Z russellrice $ |
8 |
+// $Id: dlg_main.cpp 4996 2014-06-11 04:26:49Z hypereye $ |
9 |
// |
10 |
// Copyright (C) 2006-2012 by The Odamex Team. |
11 |
// |
12 |
@@ -208,7 +208,7 @@ |
4 |
launchercfg_s.get_list_on_start = 1; |
13 |
launchercfg_s.get_list_on_start = 1; |
5 |
launchercfg_s.show_blocked_servers = 0; |
14 |
launchercfg_s.show_blocked_servers = 0; |
6 |
launchercfg_s.wad_paths = wxGetCwd(); |
15 |
launchercfg_s.wad_paths = wxGetCwd(); |
7 |
- launchercfg_s.odamex_directory = wxGetCwd(); |
16 |
- launchercfg_s.odamex_directory = wxGetCwd(); |
8 |
+ launchercfg_s.odamex_directory = wxString("%%PREFIX%%/bin"); |
17 |
+ launchercfg_s.odamex_directory = wxString("/usr/local/bin"); |
9 |
|
18 |
|
10 |
m_LstCtrlServers = XRCCTRL(*this, "Id_LstCtrlServers", LstOdaServerList); |
19 |
m_LstCtrlServers = XRCCTRL(*this, "Id_LstCtrlServers", LstOdaServerList); |
11 |
m_LstCtrlPlayers = XRCCTRL(*this, "Id_LstCtrlPlayers", LstOdaPlayerList); |
20 |
m_LstCtrlPlayers = XRCCTRL(*this, "Id_LstCtrlPlayers", LstOdaPlayerList); |
|
|
21 |
@@ -383,6 +383,7 @@ |
22 |
wxFileConfig ConfigInfo; |
23 |
wxInt32 ServerTimeout; |
24 |
Server tmp_server; |
25 |
+ odalpapi::BufferedSocket socket; |
26 |
wxString server_hash; |
27 |
wxString ped_hash; |
28 |
wxString ped_result; |
29 |
@@ -455,6 +456,7 @@ |
30 |
} |
31 |
|
32 |
// Query the server and try to acquire its password hash |
33 |
+ tmp_server.SetSocket(&socket); |
34 |
tmp_server.SetAddress(wxstr_tostdstr(IPHost), Port); |
35 |
tmp_server.Query(ServerTimeout); |
36 |
|