Debian Codegraph @

Descent3/multi_dll_mgr.cpp

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/multi_dll_mgr.cpp $
21 * $Revision: 82 $
22 * $Date: 10/03/01 12:45a $
23 * $Author: Kevin $
24 *
25 * Multi player DLL interface manager
26 *
27 * $Log: /DescentIII/Main/multi_dll_mgr.cpp $
28 *
29 * 82 10/03/01 12:45a Kevin
30 * Smaller version of pxo packets
31 *
32 * 81 3/26/00 10:29p Kevin
33 * MOD Downloader for 1.4 patch.
34 *
35 * 80 7/28/99 3:55p Kevin
36 * Mac!
37 *
38 * 79 7/12/99 4:15p Kevin
39 * Changed the way we determine if we should report stats or not in PXO
40 *
41 * 78 7/06/99 5:52p Kevin
42 * PXO & multiplayer fixes for the patch
43 *
44 * 77 5/12/99 2:24p Jeff
45 * Descent3 now has a setable temp directory for all temp files
46 *
47 * 76 5/10/99 10:22p Ardussi
48 * changes to compile on Mac
49 *
50 * 75 5/10/99 5:35p Kevin
51 * New command line options for heat and scoring API enhancements
52 *
53 * 74 5/08/99 11:25a Kevin
54 *
55 * 73 5/08/99 10:15a Kevin
56 * A bunch of heat scoring stuff
57 *
58 * 72 5/02/99 2:47p Jeff
59 * made linux friendly when extracting d3cs
60 *
61 * 71 4/28/99 2:24p Kevin
62 * added some heat scoring api code
63 *
64 * 70 4/25/99 5:02p Kevin
65 * Bunches of multiplayer UI improvements
66 *
67 * 69 4/25/99 12:18p Matt
68 * Use the briefing font instead of the HUD font for the PXO chat window.
69 *
70 * 68 4/24/99 11:58p Kevin
71 * Game info list (hit I in the pxo game list)
72 *
73 * 67 4/23/99 3:33p Kevin
74 * mission file/multiplayer mod keyword system
75 *
76 * 66 4/22/99 3:43p Kevin
77 * Training missions show controls on screen
78 *
79 * 65 4/19/99 10:23p Kevin
80 * A bunch of little things for the new demo
81 *
82 * 64 4/19/99 4:49p Jeff
83 * removed call to atexit to free DLL (Linux doesn't like that)
84 *
85 * 63 4/19/99 3:46a Jeff
86 * pass in variable for directplay in use for Linux
87 *
88 * 62 4/16/99 3:17p Kevin
89 * More mouselook support
90 *
91 * 61 4/16/99 11:56a Matt
92 * Changed directplay code to be "ifdef _WIN32" instead of "ifndef
93 * __LINUX__" so it will work on the Mac.
94 *
95 * 60 4/16/99 12:15a Jeff
96 * linux wants stdcall modifiers before parens, unlike windows
97 *
98 * 59 4/15/99 3:04a Jeff
99 * oops messed up some order of includes
100 *
101 * 58 4/15/99 1:41a Jeff
102 * changes for linux compile
103 *
104 * 57 4/14/99 4:19a Jeff
105 * more case mismatch fixes in #includes
106 *
107 * 56 4/14/99 2:51a Jeff
108 * fixed some case mismatched #includes
109 *
110 * 55 4/08/99 4:54p Kevin
111 * Display level warp dialog for multiplayer
112 *
113 * 54 4/08/99 3:41p Kevin
114 * Added some stuff for the scoring API. Not functional yet.
115 *
116 * 53 3/25/99 3:26p Kevin
117 * Made PXO games be based on your chat channel
118 *
119 * 52 3/17/99 4:08p Kevin
120 * Changed the way games appear and timeout in the game list.
121 *
122 * 51 3/05/99 1:24p Kevin
123 * Fixed Stupid Direct serial bug where it would try to join the game
124 * again and crash
125 *
126 * 50 2/15/99 7:49p Jeff
127 * new pilot file class and read/write system checked in...should be more
128 * robust than old
129 *
130 * 49 2/08/99 2:50p Kevin
131 * Locked PollUI to 30 FPS MAX
132 *
133 * 48 1/21/99 11:15p Jeff
134 * pulled out some structs and defines from header files and moved them
135 * into seperate header files so that multiplayer dlls don't require major
136 * game headers, just those new headers. Side effect is a shorter build
137 * time. Also cleaned up some header file #includes that weren't needed.
138 * This affected polymodel.h, object.h, player.h, vecmat.h, room.h,
139 * manage.h and multi.h
140 *
141 * 47 1/12/99 2:55p Jeff
142 * added/finished the waiting for player's to join dialog
143 *
144 * 46 1/11/99 12:29p Jeff
145 * changes made not to call the module library directly
146 *
147 * 45 1/07/99 11:51a Kevin
148 * Added support for joining servers on alternate ports and hosting behind
149 * a proxy/firewall
150 *
151 * 44 12/30/98 5:24p Kevin
152 * Added +name to specify a default pilot (for gamespy) fixed a gamespy
153 * bug, and improved the pxo dll game list screen
154 *
155 * 43 12/30/98 3:49p Kevin
156 * Moved multiplayer options out of DLL and into main app
157 *
158 * 42 12/30/98 12:15p Kevin
159 * Auto Mission Download system
160 *
161 * 41 12/23/98 6:38p Kevin
162 * All UDP data (except gamespy) now uses one (registered) port number
163 *
164 * 40 12/08/98 3:28p Jeff
165 * created and exported UI Checkbox wrappers
166 *
167 * 39 12/07/98 11:30a Kevin
168 * Added some features from the 1.1 demo patch
169 *
170 * 38 11/19/98 5:56p Jeff
171 * created Slider wrappers
172 *
173 * 37 10/29/98 7:00p Jeff
174 * create some new UI function wrappers
175 *
176 * 36 10/19/98 8:12p Jason
177 * flush all incoming buffers
178 *
179 * 35 10/16/98 11:55a Kevin
180 * Made dlls loadable in a hog
181 *
182 * 34 10/15/98 3:29p Kevin
183 * Fixed dlls to not require runtime debug libraries in release builds
184 *
185 * 33 10/13/98 5:19p Kevin
186 *
187 * 32 10/12/98 11:13a Kevin
188 * doh! changed mem_free to mem_free_sub
189 *
190 * 31 10/01/98 11:36a Kevin
191 * UI fixes and stuff
192 *
193 * 30 9/28/98 4:21p Kevin
194 * Redesigned game list menus
195 *
196 * 29 9/23/98 2:54p Kevin
197 * Saved multi config and changed UI to conform
198 *
199 * 28 9/22/98 2:29p Kevin
200 * moved ships allowed code out of dll and into main app. Also added
201 * powerup exclusions
202 *
203 * 27 9/21/98 11:19a Kevin
204 * check protocol before entering multiplayer screens
205 *
206 * 26 9/16/98 8:06p Jason
207 * got mastertracker working with the dedicated server
208 *
209 * 25 9/14/98 2:36p Kevin
210 * fixed some UI issues
211 *
212 * 24 9/09/98 12:41p Kevin
213 * Fixed up some UI issues
214 *
215 * 23 9/04/98 1:51p Kevin
216 * implemented asyncronous gethostbyname
217 *
218 * 22 9/02/98 6:54p Kevin
219 * Fixed general directplay support up, and got modem-modem working
220 *
221 * 21 8/31/98 10:14a Kevin
222 * Misc. multi-UI fixes
223 *
224 * 20 8/27/98 5:03p Kevin
225 * Prettied up multiplayer screens and fixed some bugs.
226 *
227 * 19 8/25/98 6:33p Kevin
228 * pxo
229 *
230 * 18 8/24/98 5:04p Kevin
231 * Made msn files have the option to not be playable in multiplayer
232 *
233 * 17 8/24/98 10:55a Kevin
234 * new directplay stuff
235 *
236 * 16 8/19/98 11:49a Kevin
237 * Got DirectPlay IPX working, and localized connection DLLs
238 *
239 * 15 8/15/98 5:16p Matt
240 * Added new Base_directory variable. Got rid of D3_LOCAL check and
241 * 'local directory' registry variable.
242 *
243 * 14 8/07/98 12:40p Jeff
244 * added some functions
245 *
246 * 13 7/21/98 1:49p Kevin
247 * IPX support and peer-peer option for multi
248 *
249 * 12 7/20/98 2:34p Kevin
250 * Re-wrote the DLL wrapper, to allow for better expandability
251 *
252 * 9 6/24/98 6:40p Kevin
253 * Added help to main dll menu
254 *
255 * 8 6/24/98 3:24p Kevin
256 * Updated PXO screens with chat, etc.
257 *
258 * 7 6/18/98 5:37p Kevin
259 *
260 * 6 6/18/98 4:49p Kevin
261 * Updated multiplayer menus
262 *
263 * 5 6/05/98 2:16p Jeff
264 * Changes made so Dynamic loading of DLLs done through module library
265 *
266 * 4 6/01/98 11:56a Kevin
267 * Fixed lame listbox bug
268 *
269 * 3 6/01/98 10:09a Kevin
270 * Added DLL connection interface and auto update DLL
271 *
272 * 2 5/18/98 12:16p Kevin
273 * Initial version
274 *
275 * 1 5/18/98 12:07p Kevin
276 *
277 * $NoKeywords: $
278 */
279 #include "ui.h"cxx . . $ `<file>/ui/ui.h`/
280 #include "newui.h"cxx . . $ `<file>/Descent3/newui.h`/
281 #include "game.h"cxx . . $ `<file>/Descent3/game.h`/
282 #include "gamefont.h"cxx . . $ `<file>/Descent3/gamefont.h`/
283 #include "multi.h"cxx . . $ `<file>/Descent3/multi.h`/
284 #include "multi_client.h"cxx . . $ `<file>/Descent3/multi_client.h`/
285 #include "manage.h"cxx . . $ `<file>/lib/manage.h`/
286 #include "Mission.h"cxx . . $ `<file>/Descent3/Mission.h`/
287 #include "pilot.h"cxx . . $ `<file>/Descent3/pilot.h`/
288 #include "pstypes.h"cxx . . $ `<file>/lib/pstypes.h`/
289 #include "pserror.h"cxx . . $ `<file>/misc/pserror.h`/
290 #include "descent.h"cxx . . $ `<file>/Descent3/descent.h`/
291 #include "room.h"cxx . . $ `<file>/Descent3/room.h`/
292 #include "object.h"cxx . . $ `<file>/Descent3/object.h`/
293 #include "terrain.h"cxx . . $ `<file>/Descent3/terrain.h`/
294 #include "player.h"cxx . . $ `<file>/Descent3/player.h`/
295 #include "mono.h"cxx . . $ `<file>/ddebug/mono.h`/
296 #include "hud.h"cxx . . $ `<file>/Descent3/hud.h`/
297 #include "Inventory.h"cxx . . $ `<file>/Descent3/Inventory.h`/
298 #include "multi_server.h"cxx . . $ `<file>/Descent3/multi_server.h`/
299 #include "multi_ui.h"cxx . . $ `<file>/Descent3/multi_ui.h`/
300 #include "ship.h"cxx . . $ `<file>/Descent3/ship.h`/
301 #include "soundload.h"cxx . . $ `<file>/sndlib/soundload.h`/
302 #include "spew.h"cxx . . $ `<file>/Descent3/spew.h`/
303 #include "DllWrappers.h"cxx . . $ `<file>/Descent3/DllWrappers.h`/
304 #include "appdatabase.h"cxx . . $ `<file>/lib/appdatabase.h`/
305 #include "module.h"cxx . . $ `<file>/lib/module.h`/
306 #include "localization.h"cxx . . $ `<file>/Descent3/localization.h`/
307 #include "stringtable.h"cxx . . $ `<file>/Descent3/stringtable.h`/
308 #include "dedicated_server.h"cxx . . $ `<file>/lib/dedicated_server.h`/
309 #include "multi_save_settings.h"cxx . . $ `<file>/Descent3/multi_save_settings.h`/
310 #include "multi_dll_mgr.h"cxx . . $ `<file>/Descent3/multi_dll_mgr.h`/
311 #include "mission_download.h"cxx . . $ `<file>/Descent3/mission_download.h`/
312 #include "mem.h"cxx . . $ `<file>/mem/mem.h`/
313 #include "args.h"cxx . . $ `<file>/Descent3/args.h`/
314 // #define USE_DIRECTPLAY
315
316 #ifdef USE_DIRECTPLAY
317 #include "directplay.h"
318 #endif
319
320 void *callbackcxx . . $ callback. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
321 modulecxx . . $ module# MultiDLLHandlecxx . . $ MultiDLLHandle. = {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!};
322 int SearchForLocalGamesTCPcxx . . $ SearchForLocalGamesTCP(10dfdad8c5442a70).(uint32_tcxx . . $ uint32_t# ask, uint16_tcxx . . $ uint16_t# port);
323 int SearchForGamesPXOcxx . . $ SearchForGamesPXO(10dfdad8c5442a70).(uint32_tcxx . . $ uint32_t# ask, uint16_tcxx . . $ uint16_t# port);
324 extern uint8_tcxx . . $ uint8_t# NewUIWindow_alphacxx . . $ NewUIWindow_alpha.;
325 extern void DoScreenshotcxx . . $ DoScreenshot(49f6e7a06ebc5aa8).();
326 extern void UpdateAndPackGameListcxx . . $ UpdateAndPackGameList(49f6e7a06ebc5aa8).(void);
327 extern bool Multi_Gamelist_changedcxx . . $ Multi_Gamelist_changed.;
328 int CheckMissionForScriptcxx . . $ CheckMissionForScript(60b24ab836da28f5).(char *mission, char *script, int dedicated_server_num_teams);
329 void ShowNetgameInfocxx . . $ ShowNetgameInfo(9bfd554a3f15d3ba).(network_gamecxx . . $ network_game# *game);
330 // The exported DLL function call prototypes
331 #if defined(POSIXcxx . . $ `<built-in>:480:9`!)
332 typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLMultiCall_fpcxx . . $ DLLMultiCall_fp#)(int eventnum);
333 typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLMultiScoreCall_fpcxx . . $ DLLMultiScoreCall_fp#)(int eventnum, void *data);
334 typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLMultiInit_fpcxx . . $ DLLMultiInit_fp#)(int *api_fp);
335 typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLMultiClose_fpcxx . . $ DLLMultiClose_fp#)();
336 #else
337 typedef void(DLLFUNCCALL *DLLMultiCall_fp)(int eventnum);
338 typedef void(DLLFUNCCALL *DLLMultiScoreCall_fp)(int eventnum, void *data);
339 typedef void(DLLFUNCCALL *DLLMultiInit_fp)(int *api_fp);
340 typedef void(DLLFUNCCALL *DLLMultiClose_fp)();
341 #endif
342 DLLMultiScoreCall_fpcxx . . $ DLLMultiScoreCall_fp# DLLMultiScoreCallcxx . . $ DLLMultiScoreCall. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
343 DLLMultiCall_fpcxx . . $ DLLMultiCall_fp# DLLMultiCallcxx . . $ DLLMultiCall. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
344 DLLMultiInit_fpcxx . . $ DLLMultiInit_fp# DLLMultiInitcxx . . $ DLLMultiInit. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
345 DLLMultiClose_fpcxx . . $ DLLMultiClose_fp# DLLMultiClosecxx . . $ DLLMultiClose. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
346 // dllmultiiInfo DLLMultiInfo;
347 // The DLL needs these too.
348 #define MAXTEXTITEMScxx . . $ `Descent3/multi_dll_mgr.cpp:348:9`! 100
349 #define MAXNEWWINDOWScxx . . $ `Descent3/multi_dll_mgr.cpp:349:9`! 5
350 #define MAXNEWGAMEWINDOWScxx . . $ `Descent3/multi_dll_mgr.cpp:350:9`! 5
351 #define MAXUIBUTTONScxx . . $ `Descent3/multi_dll_mgr.cpp:351:9`! 20
352 #define MAXUITEXTScxx . . $ `Descent3/multi_dll_mgr.cpp:352:9`! 20
353 #define MAXEDITScxx . . $ `Descent3/multi_dll_mgr.cpp:353:9`! 20
354 #define MAXLISTScxx . . $ `Descent3/multi_dll_mgr.cpp:354:9`! 20
355 #define MAXHOTSPOTScxx . . $ `Descent3/multi_dll_mgr.cpp:355:9`! 20
356 #define MAXCONSOLEScxx . . $ `Descent3/multi_dll_mgr.cpp:356:9`! 5
357 #define MAXPARENTScxx . . $ `Descent3/multi_dll_mgr.cpp:357:9`! 5
358 NewUIMessageBoxcxx . . $ NewUIMessageBox# messagebcxx . . $ messageb.;
359 // Stuff for the splash
360 UITextItemcxx . . $ UITextItem# ti_msgcxx . . $ ti_msg.("", UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!);
361 UITextItemcxx . . $ UITextItem# ti_tmpcxx . . $ ti_tmp.("", UICOL_TEXT_NORMALcxx . . $ `Descent3/newui.h:218:9`!);
362 UITextItemcxx . . $ UITextItem# ti_cancel_oncxx . . $ ti_cancel_on.("", UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!);
363 UITextItemcxx . . $ UITextItem# ti_cancel_offcxx . . $ ti_cancel_off.("", UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!);
364 UIHotspotcxx . . $ UIHotspot# uihcxx . . $ uih.;
365 UIHotspotcxx . . $ UIHotspot# uihcancelcxx . . $ uihcancel.;
366 UITextcxx . . $ UIText# ticxx . . $ ti.;
367 extern char HelpText1cxx . . $ HelpText1.[];
368 extern char HelpText2cxx . . $ HelpText2.[];
369 extern char HelpText3cxx . . $ HelpText3.[];
370 extern char HelpText4cxx . . $ HelpText4.[];
371 char Auto_login_namecxx . . $ Auto_login_name.[MAX_AUTO_LOGIN_STUFF_LENcxx . . $ `Descent3/multi_dll_mgr.h:108:9`!];
372 char Auto_login_passcxx . . $ Auto_login_pass.[MAX_AUTO_LOGIN_STUFF_LENcxx . . $ `Descent3/multi_dll_mgr.h:108:9`!];
373 char Auto_login_addrcxx . . $ Auto_login_addr.[MAX_AUTO_LOGIN_STUFF_LENcxx . . $ `Descent3/multi_dll_mgr.h:108:9`!];
374 char Auto_login_portcxx . . $ Auto_login_port.[MAX_AUTO_LOGIN_STUFF_LENcxx . . $ `Descent3/multi_dll_mgr.h:108:9`!];
375 char Multi_conn_dll_namecxx . . $ Multi_conn_dll_name.[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2] = "";
376 char PXO_hosted_lobby_namecxx . . $ PXO_hosted_lobby_name.[100] = "global";
377 bool Supports_score_apicxx . . $ Supports_score_api. = false;
378 #ifdef USE_DIRECTPLAY
379 extern modem_list Modems_found[MAX_MODEMS];
380 extern int Num_modems_found;
381 #endif
382 #define DLL_BRIEFING_FONTcxx . . $ `Descent3/multi_dll_mgr.cpp:382:9`! 1
383 #define DLL_BIG_BRIEFING_FONTcxx . . $ `Descent3/multi_dll_mgr.cpp:383:9`! 2
384 extern uint16_tcxx . . $ uint16_t# nw_ListenPortcxx . . $ nw_ListenPort.;
385 extern uint16_tcxx . . $ uint16_t# PXOPortcxx . . $ PXOPort.;
386
387 void GetMultiAPIcxx . . $ GetMultiAPI(ce88f427848516e7).(multi_apicxx . . $ multi_api# *api) {
388 // make the compiler happy
389 bool (*fp_PlayerIsShipAllowed)(int, int) = PlayerIsShipAllowedcxx . . $ PlayerIsShipAllowed(cf9ef193275fa6d8).;
390 api->objscxx . . $ multi_api#objs. = (int *)Objectscxx . . $ Objects.;
391 api->roomscxx . . $ multi_api#rooms. = (int *)Roomscxx . . $ Rooms.;
392 api->terraincxx . . $ multi_api#terrain. = (int *)Terrain_segcxx . . $ Terrain_seg.;
393 api->playerscxx . . $ multi_api#players. = (int *)Playerscxx . . $ Players.;
394 api->netgamecxx . . $ multi_api#netgame. = (int *)&Netgamecxx . . $ Netgame.;
395 api->netplayerscxx . . $ multi_api#netplayers. = (int *)&NetPlayerscxx . . $ NetPlayers.;
396 api->shipscxx . . $ multi_api#ships. = (int *)Shipscxx . . $ Ships.;
397 // Fill in function pointers here. The order here must match the order on the
398 // DLL side (netcon/includes/mdllinit.h)
399
400 api->fpcxx . . $ multi_api#fp.[0] = (int *)SetUITextItemTextcxx . . $ SetUITextItemText(ee114b9bb7b54720).;
401 api->fpcxx . . $ multi_api#fp.[1] = (int *)NewUIWindowCreatecxx . . $ NewUIWindowCreate(76d7789468b01f1d).;
402 api->fpcxx . . $ multi_api#fp.[2] = (int *)NewUIWindowDestroycxx . . $ NewUIWindowDestroy(488f24e0e2cc986e).;
403 api->fpcxx . . $ multi_api#fp.[3] = (int *)NewUIWindowOpencxx . . $ NewUIWindowOpen(488f24e0e2cc986e).;
404 api->fpcxx . . $ multi_api#fp.[4] = (int *)NewUIWindowClosecxx . . $ NewUIWindowClose(488f24e0e2cc986e).;
405 api->fpcxx . . $ multi_api#fp.[5] = (int *)TextCreatecxx . . $ TextCreate(d84f16cfa0f2f434).;
406 api->fpcxx . . $ multi_api#fp.[6] = (int *)EditCreatecxx . . $ EditCreate(dc9115cd522defea).;
407 api->fpcxx . . $ multi_api#fp.[7] = (int *)ButtonCreatecxx . . $ ButtonCreate(2e17589279eb4159).;
408 api->fpcxx . . $ multi_api#fp.[8] = (int *)ListCreatecxx . . $ ListCreate(dc9115cd522defea).;
409 api->fpcxx . . $ multi_api#fp.[9] = (int *)ListRemoveAllcxx . . $ ListRemoveAll(fcba45fc1ebcb8ea).;
410 api->fpcxx . . $ multi_api#fp.[10] = (int *)ListAddItemcxx . . $ ListAddItem(3a3c474e41982a6c).;
411 api->fpcxx . . $ multi_api#fp.[11] = (int *)ListRemoveItemcxx . . $ ListRemoveItem(3a3c474e41982a6c).;
412 api->fpcxx . . $ multi_api#fp.[12] = (int *)ListSelectItemcxx . . $ ListSelectItem(3a3c474e41982a6c).;
413 api->fpcxx . . $ multi_api#fp.[13] = (int *)ListGetItemcxx . . $ ListGetItem(5cae7221e1e66c1a).;
414 api->fpcxx . . $ multi_api#fp.[14] = (int *)ListGetSelectedIndexcxx . . $ ListGetSelectedIndex(ad4162047d52fa6e).;
415 api->fpcxx . . $ multi_api#fp.[15] = (int *)EditSetTextcxx . . $ EditSetText(32f521072cbd7203).;
416 api->fpcxx . . $ multi_api#fp.[16] = (int *)EditGetTextcxx . . $ EditGetText(fb5eddf017e01723).;
417 api->fpcxx . . $ multi_api#fp.[17] = (int *)DatabaseWritecxx . . $ DatabaseWrite(5e891a9f77bb0eff).;
418 api->fpcxx . . $ multi_api#fp.[18] = (int *)DatabaseReadcxx . . $ DatabaseRead(f474874004d4a6ab).;
419 api->fpcxx . . $ multi_api#fp.[19] = (int *)DoUIcxx . . $ DoUI(b126dc7c1de90089).;
420 api->fpcxx . . $ multi_api#fp.[20] = (int *)DoMessageBoxcxx . . $ DoMessageBox(dcc99837539e9edc).;
421 api->fpcxx . . $ multi_api#fp.[21] = (int *)DescentDefercxx . . $ DescentDefer(49f6e7a06ebc5aa8).;
422 api->fpcxx . . $ multi_api#fp.[22] = (int *)MonoPrintfcxx . . $ MonoPrintf(26800c7917ec8ef2).;
423 api->fpcxx . . $ multi_api#fp.[23] = (int *)DestroyStringTablecxx . . $ DestroyStringTable(a50bc8ce1fe710a2).;
424 api->fpcxx . . $ multi_api#fp.[24] = (int *)CreateStringTablecxx . . $ CreateStringTable(c1b497ce97e7b78).;
425 api->fpcxx . . $ multi_api#fp.[25] = (int *)NewUIGameWindowCreatecxx . . $ NewUIGameWindowCreate(76d7789468b01f1d).;
426 api->fpcxx . . $ multi_api#fp.[26] = (int *)NewUIGameWindowDestroycxx . . $ NewUIGameWindowDestroy(17abec7eb822a749).;
427 api->fpcxx . . $ multi_api#fp.[27] = (int *)NewUIGameWindowOpencxx . . $ NewUIGameWindowOpen(17abec7eb822a749).;
428 api->fpcxx . . $ multi_api#fp.[28] = (int *)NewUIGameWindowClosecxx . . $ NewUIGameWindowClose(17abec7eb822a749).;
429 api->fpcxx . . $ multi_api#fp.[29] = (int *)SetScreenModecxx . . $ SetScreenMode(918ebd27a9ddbad3).;
430 api->fpcxx . . $ multi_api#fp.[30] = (int *)timer_GetTimecxx . . $ `ddio/ddio.h:236:9`!;
431 api->fpcxx . . $ multi_api#fp.[31] = (int *)TryToJoinServercxx . . $ TryToJoinServer(974bd2fc5f961852).;
432 api->fpcxx . . $ multi_api#fp.[32] = (int *)MultiStartClientcxx . . $ MultiStartClient(fda57c8427c60377).;
433 api->fpcxx . . $ multi_api#fp.[33] = (int *)rend_GetRenderStatecxx . . $ rend_GetRenderState(2ca0d60fb0cb1bea).;
434 api->fpcxx . . $ multi_api#fp.[34] = (int *)LoadMissioncxx . . $ LoadMission(c5f7da30cbc0f4e9).;
435 api->fpcxx . . $ multi_api#fp.[35] = (int *)ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).;
436 api->fpcxx . . $ multi_api#fp.[36] = (int *)ddio_FindFileStartcxx . . $ ddio_FindFileStart(84e74a5521f49206).;
437 api->fpcxx . . $ multi_api#fp.[37] = (int *)ddio_FindFileClosecxx . . $ ddio_FindFileClose(49f6e7a06ebc5aa8).;
438 api->fpcxx . . $ multi_api#fp.[38] = (int *)ddio_FindNextFilecxx . . $ ddio_FindNextFile(c6b7e35ff6de5671).;
439 api->fpcxx . . $ multi_api#fp.[39] = (int *)MultiStartServercxx . . $ MultiStartServer(99469d7ff9a1485a).;
440 api->fpcxx . . $ multi_api#fp.[40] = (int *)ShowProgressScreencxx . . $ ShowProgressScreen(8d00172ec7558ddf).;
441 api->fpcxx . . $ multi_api#fp.[41] = (int *)SearchForLocalGamesTCPcxx . . $ SearchForLocalGamesTCP(10dfdad8c5442a70).;
442 api->fpcxx . . $ multi_api#fp.[42] = (int *)nw_GetHostAddressFromNumberscxx . . $ nw_GetHostAddressFromNumbers(33ab057182e9f89d).;
443 api->fpcxx . . $ multi_api#fp.[43] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; // nw_GetProtocolType;
444 api->fpcxx . . $ multi_api#fp.[44] = (int *)HotSpotCreatecxx . . $ HotSpotCreate(c0fba4599935b27e).;
445 api->fpcxx . . $ multi_api#fp.[45] = (int *)PollUIcxx . . $ PollUI(b126dc7c1de90089).;
446 api->fpcxx . . $ multi_api#fp.[46] = (int *)GetMissionNamecxx . . $ GetMissionName(fb58d2e09a2a1ce6).;
447 api->fpcxx . . $ multi_api#fp.[47] = (int *)RemoveUITextItemcxx . . $ RemoveUITextItem(5d22bdacc48458e8).;
448 api->fpcxx . . $ multi_api#fp.[48] = (int *)CreateNewUITextItemcxx . . $ CreateNewUITextItem(265f30871222eac8).;
449 api->fpcxx . . $ multi_api#fp.[49] = (int *)mem_malloc_subcxx . . $ mem_malloc_sub(7b60db397a413c1c).;
450 api->fpcxx . . $ multi_api#fp.[50] = (int *)mem_free_subcxx . . $ mem_free_sub(5d22bdacc48458e8).;
451 api->fpcxx . . $ multi_api#fp.[51] = (int *)CreateSplashScreencxx . . $ CreateSplashScreen(34d26762b42c433a).;
452 api->fpcxx . . $ multi_api#fp.[52] = (int *)CloseSplashScreencxx . . $ CloseSplashScreen(49f6e7a06ebc5aa8).;
453 api->fpcxx . . $ multi_api#fp.[53] = (int *)UIConsoleGadgetCreatecxx . . $ UIConsoleGadgetCreate(a14cc48659c6db1c).;
454 api->fpcxx . . $ multi_api#fp.[54] = (int *)UIConsoleGadgetputscxx . . $ UIConsoleGadgetputs(451ab6a730b562ff).;
455 api->fpcxx . . $ multi_api#fp.[55] = (int *)NewUIWindowSetFocusOnEditGadgetcxx . . $ NewUIWindowSetFocusOnEditGadget(57798f7f932dfa81).;
456 api->fpcxx . . $ multi_api#fp.[56] = (int *)OldEditCreatecxx . . $ OldEditCreate(dc9115cd522defea).;
457 api->fpcxx . . $ multi_api#fp.[57] = (int *)OldListCreatecxx . . $ OldListCreate(dc9115cd522defea).;
458 api->fpcxx . . $ multi_api#fp.[58] = (int *)OldListRemoveAllcxx . . $ OldListRemoveAll(fcba45fc1ebcb8ea).;
459 api->fpcxx . . $ multi_api#fp.[59] = (int *)OldListAddItemcxx . . $ OldListAddItem(3a3c474e41982a6c).;
460 api->fpcxx . . $ multi_api#fp.[60] = (int *)OldListRemoveItemcxx . . $ OldListRemoveItem(3a3c474e41982a6c).;
461 api->fpcxx . . $ multi_api#fp.[61] = (int *)OldListSelectItemcxx . . $ OldListSelectItem(3a3c474e41982a6c).;
462 api->fpcxx . . $ multi_api#fp.[62] = (int *)OldListGetItemcxx . . $ OldListGetItem(5cae7221e1e66c1a).;
463 api->fpcxx . . $ multi_api#fp.[63] = (int *)OldListGetSelectedIndexcxx . . $ OldListGetSelectedIndex(ad4162047d52fa6e).;
464 api->fpcxx . . $ multi_api#fp.[64] = (int *)OldEditSetTextcxx . . $ OldEditSetText(5bf538048a323648).;
465 api->fpcxx . . $ multi_api#fp.[65] = (int *)OldEditGetTextcxx . . $ OldEditGetText(d7408c567151c92e).;
466 api->fpcxx . . $ multi_api#fp.[66] = (int *)ToggleUICallbackcxx . . $ ToggleUICallback(d4f767463ce0a6b3).;
467 api->fpcxx . . $ multi_api#fp.[67] = (int *)SearchForGamesPXOcxx . . $ SearchForGamesPXO(10dfdad8c5442a70).;
468 api->fpcxx . . $ multi_api#fp.[68] = (int *)SetOldEditBufferLencxx . . $ SetOldEditBufferLen(526e54c5ffa2af90).;
469 api->fpcxx . . $ multi_api#fp.[69] = (int *)NewUIWindowLoadBackgroundImagecxx . . $ NewUIWindowLoadBackgroundImage(a519a360beb3a806).;
470 api->fpcxx . . $ multi_api#fp.[70] = (int *)DeleteUIItemcxx . . $ DeleteUIItem(5d22bdacc48458e8).;
471 api->fpcxx . . $ multi_api#fp.[71] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; // was SearchForLocalGamesIPX
472 api->fpcxx . . $ multi_api#fp.[72] = (int *)HotSpotSetStatescxx . . $ HotSpotSetStates(586da350ab5f7284).;
473 api->fpcxx . . $ multi_api#fp.[73] = (int *)PlayerSetShipPermissioncxx . . $ PlayerSetShipPermission(fb2bb0cf4ad3de37).;
474 api->fpcxx . . $ multi_api#fp.[74] = (int *)fp_PlayerIsShipAllowed;
475 #ifdef USE_DIRECTPLAY
476 api->fp[75] = (int *)dp_InitDirectPlay;
477 api->fp[76] = (int *)dp_ListDirectPlayGames;
478 api->fp[77] = (int *)dp_GetModemChoices;
479 #else
480 api->fpcxx . . $ multi_api#fp.[75] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
481 api->fpcxx . . $ multi_api#fp.[76] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
482 api->fpcxx . . $ multi_api#fp.[77] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
483 #endif
484 api->fpcxx . . $ multi_api#fp.[78] = (int *)DatabaseReadIntcxx . . $ DatabaseReadInt(73e4a7b7b8bfbc8c).;
485 api->fpcxx . . $ multi_api#fp.[79] = (int *)DatabaseWriteIntcxx . . $ DatabaseWriteInt(34d26762b42c433a).;
486 api->fpcxx . . $ multi_api#fp.[80] = (int *)DoScreenshotcxx . . $ DoScreenshot(49f6e7a06ebc5aa8).;
487 api->fpcxx . . $ multi_api#fp.[81] = (int *)IsMissionMultiPlayablecxx . . $ IsMissionMultiPlayable(c5f7da30cbc0f4e9).;
488 api->fpcxx . . $ multi_api#fp.[82] = (int *)grtext_GetTextLineWidthcxx . . $ grtext_GetTextLineWidth(5c4306d8553b3696).;
489 api->fpcxx . . $ multi_api#fp.[83] = (int *)GadgetDestroycxx . . $ GadgetDestroy(627f6e6cf27f18b7).;
490 #ifdef USE_DIRECTPLAY
491 api->fp[84] = (int *)dp_StartGame;
492 api->fp[85] = (int *)dp_EndGame;
493 #else
494 api->fpcxx . . $ multi_api#fp.[84] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
495 api->fpcxx . . $ multi_api#fp.[85] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
496 #endif
497 api->fpcxx . . $ multi_api#fp.[86] = (int *)nw_Asyncgethostbynamecxx . . $ nw_Asyncgethostbyname(d1564d04be42e0f9).;
498 api->fpcxx . . $ multi_api#fp.[87] = (int *)PrintDedicatedMessagecxx . . $ PrintDedicatedMessage(326aeb464d16410c).;
499 api->fpcxx . . $ multi_api#fp.[88] = (int *)nw_ReccomendPPScxx . . $ nw_ReccomendPPS(b126dc7c1de90089).;
500 api->fpcxx . . $ multi_api#fp.[89] = (int *)DoMultiAllowedcxx . . $ DoMultiAllowed(49f6e7a06ebc5aa8).;
501 api->fpcxx . . $ multi_api#fp.[90] = (int *)MultiDoConfigSavecxx . . $ MultiDoConfigSave(49f6e7a06ebc5aa8).;
502 api->fpcxx . . $ multi_api#fp.[91] = (int *)MultiDoConfigLoadcxx . . $ MultiDoConfigLoad(49f6e7a06ebc5aa8).;
503 api->fpcxx . . $ multi_api#fp.[92] = (int *)MultiLoadSettingscxx . . $ MultiLoadSettings(5c4306d8553b3696).;
504 api->fpcxx . . $ multi_api#fp.[93] = (int *)nw_DoReceiveCallbackscxx . . $ nw_DoReceiveCallbacks(b126dc7c1de90089).;
505 api->fpcxx . . $ multi_api#fp.[94] = (int *)nw_SendWithIDcxx . . $ nw_SendWithID(4aa96ed29f5182c6).;
506 api->fpcxx . . $ multi_api#fp.[95] = (int *)nw_UnRegisterCallbackcxx . . $ nw_UnRegisterCallback(bb45880c2285615c).;
507 api->fpcxx . . $ multi_api#fp.[96] = (int *)nw_RegisterCallbackcxx . . $ nw_RegisterCallback(d121e3b72e81a360).;
508 api->fpcxx . . $ multi_api#fp.[97] = (int *)msn_CheckGetMissioncxx . . $ msn_CheckGetMission(aa7cc0aa9d631463).;
509 api->fpcxx . . $ multi_api#fp.[98] = (int *)MultiGameOptionsMenucxx . . $ MultiGameOptionsMenu(d4f767463ce0a6b3).;
510 api->fpcxx . . $ multi_api#fp.[99] = (int *)mod_FreeModulecxx . . $ mod_FreeModule(f63d3fb9c9f41dd6).;
511 api->fpcxx . . $ multi_api#fp.[100] = (int *)mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).;
512 api->fpcxx . . $ multi_api#fp.[101] = (int *)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).;
513 api->fpcxx . . $ multi_api#fp.[102] = (int *)mod_LoadModulecxx . . $ mod_LoadModule(2b2b4995973ac6b0).;
514 api->fpcxx . . $ multi_api#fp.[103] = (int *)dCurrentPilotNamecxx . . $ dCurrentPilotName(fda57c8427c60377).;
515 api->fpcxx . . $ multi_api#fp.[104] = (int *)UpdateAndPackGameListcxx . . $ UpdateAndPackGameList(49f6e7a06ebc5aa8).;
516 api->fpcxx . . $ multi_api#fp.[105] = (int *)MultiLevelSelectioncxx . . $ MultiLevelSelection(b126dc7c1de90089).;
517 api->fpcxx . . $ multi_api#fp.[106] = (int *)DoPlayerMouselookCheckcxx . . $ DoPlayerMouselookCheck(dfa6e707f7696010).;
518 api->fpcxx . . $ multi_api#fp.[107] = (int *)CheckMissionForScriptcxx . . $ CheckMissionForScript(60b24ab836da28f5).;
519 api->fpcxx . . $ multi_api#fp.[108] = (int *)ShowNetgameInfocxx . . $ ShowNetgameInfo(9bfd554a3f15d3ba).;
520 api->fpcxx . . $ multi_api#fp.[109] = (int *)GetRankIndexcxx . . $ GetRankIndex(3c8082c546dd2ea0).;
521 api->fpcxx . . $ multi_api#fp.[110] = (int *)CheckGetD3Mcxx . . $ CheckGetD3M(1ef8e6ec083aabb9).;
522
523 // Variable pointers
524 api->vpcxx . . $ multi_api#vp.[0] = (int *)&Player_numcxx . . $ Player_num.;
525 api->vpcxx . . $ multi_api#vp.[1] = (int *)Tracker_idcxx . . $ Tracker_id.;
526 api->vpcxx . . $ multi_api#vp.[2] = (int *)&Game_is_master_tracker_gamecxx . . $ Game_is_master_tracker_game.;
527 api->vpcxx . . $ multi_api#vp.[3] = (int *)&Game_modecxx . . $ Game_mode.;
528 api->vpcxx . . $ multi_api#vp.[4] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; // Current_pilot; no longer a struct
529 api->vpcxx . . $ multi_api#vp.[5] = (int *)Base_directorycxx . . $ Base_directory.;
530 api->vpcxx . . $ multi_api#vp.[6] = (int *)&MultiDLLGameStartingcxx . . $ MultiDLLGameStarting.;
531 api->vpcxx . . $ multi_api#vp.[7] = (int *)MTPilotinfocxx . . $ MTPilotinfo.;
532 api->vpcxx . . $ multi_api#vp.[8] = (int *)&Num_network_games_knowncxx . . $ Num_network_games_known.;
533 api->vpcxx . . $ multi_api#vp.[9] = (int *)&Network_gamescxx . . $ Network_games.;
534 api->vpcxx . . $ multi_api#vp.[10] = (int *)&NewUIWindow_alphacxx . . $ NewUIWindow_alpha.;
535 api->vpcxx . . $ multi_api#vp.[11] = (int *)HelpText1cxx . . $ HelpText1.;
536 api->vpcxx . . $ multi_api#vp.[12] = (int *)HelpText2cxx . . $ HelpText2.;
537 api->vpcxx . . $ multi_api#vp.[13] = (int *)HelpText3cxx . . $ HelpText3.;
538 api->vpcxx . . $ multi_api#vp.[14] = (int *)HelpText4cxx . . $ HelpText4.;
539 api->vpcxx . . $ multi_api#vp.[15] = (int *)Auto_login_namecxx . . $ Auto_login_name.;
540 api->vpcxx . . $ multi_api#vp.[16] = (int *)Auto_login_passcxx . . $ Auto_login_pass.;
541 api->vpcxx . . $ multi_api#vp.[17] = (int *)Auto_login_addrcxx . . $ Auto_login_addr.;
542 api->vpcxx . . $ multi_api#vp.[18] = (int *)Auto_login_portcxx . . $ Auto_login_port.;
543 #ifdef USE_DIRECTPLAY
544 api->vp[19] = (int *)&Num_directplay_games;
545 api->vp[20] = (int *)Directplay_sessions;
546 api->vp[21] = (int *)&DP_active;
547 api->vp[22] = (int *)&Use_DirectPlay;
548 api->vp[23] = (int *)&Modems_found;
549 api->vp[24] = (int *)&Num_modems_found;
550 #else
551 static bool _dummyUse_DirectPlay = false;
552 api->vpcxx . . $ multi_api#vp.[19] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
553 api->vpcxx . . $ multi_api#vp.[20] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
554 api->vpcxx . . $ multi_api#vp.[21] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
555 api->vpcxx . . $ multi_api#vp.[22] = (int *)&_dummyUse_DirectPlay;
556 api->vpcxx . . $ multi_api#vp.[23] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
557 api->vpcxx . . $ multi_api#vp.[24] = (int *)NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
558 #endif
559 api->vpcxx . . $ multi_api#vp.[25] = (int *)&Dedicated_servercxx . . $ Dedicated_server.;
560 api->vpcxx . . $ multi_api#vp.[26] = (int *)&TCP_activecxx . . $ TCP_active.;
561 api->vpcxx . . $ multi_api#vp.[27] = (int *)&IPX_activecxx . . $ IPX_active.;
562 api->vpcxx . . $ multi_api#vp.[28] = (int *)(size_t)nw_ListenPortcxx . . $ nw_ListenPort.;
563 api->vpcxx . . $ multi_api#vp.[29] = (int *)&Multi_Gamelist_changedcxx . . $ Multi_Gamelist_changed.;
564 api->vpcxx . . $ multi_api#vp.[30] = (int *)PXO_hosted_lobby_namecxx . . $ PXO_hosted_lobby_name.;
565 api->vpcxx . . $ multi_api#vp.[31] = (int *)&Supports_score_apicxx . . $ Supports_score_api.;
566 api->vpcxx . . $ multi_api#vp.[32] = (int *)(size_t)PXOPortcxx . . $ PXOPort.;
567 // Jeff: Linux dies if you try to free a DLL/so on
568 // atexit, these should be freed during game sequencing
569 // anyway.
570 // atexit(FreeMultiDLL);
571 }
572 // Frees the dll if its in memory
573 void FreeMultiDLLcxx . . $ FreeMultiDLL(49f6e7a06ebc5aa8).() {
574 if (!MultiDLLHandlecxx . . $ MultiDLLHandle..handlecxx . . $ module#handle.)
575 return;
576 if (DLLMultiClosecxx . . $ DLLMultiClose.)
577 DLLMultiClosecxx . . $ DLLMultiClose.();
578 mod_FreeModulecxx . . $ mod_FreeModule(f63d3fb9c9f41dd6).(&MultiDLLHandlecxx . . $ MultiDLLHandle.);
579 // Try deleting the file now!
580 if (!ddio_DeleteFilecxx . . $ ddio_DeleteFile(5c4306d8553b3696).(Multi_conn_dll_namecxx . . $ Multi_conn_dll_name.)) {
581 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't delete the tmp dll");
582 }
583 DLLMultiCallcxx . . $ DLLMultiCall. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
584 DLLMultiInitcxx . . $ DLLMultiInit. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
585 DLLMultiClosecxx . . $ DLLMultiClose. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
586 }
587 // Loads the Multi dll. Returns 1 on success, else 0 on failure
588 int LoadMultiDLLcxx . . $ LoadMultiDLL(5c4306d8553b3696).(const char *name) {
589 static int first = 1;
590 char lib_name[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2];
591 char dll_name[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2];
592 char tmp_dll_name[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2];
593 char dll_path_name[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2];
594 MultiFlushAllIncomingBufferscxx . . $ MultiFlushAllIncomingBuffers(49f6e7a06ebc5aa8).();
595
596 // Delete old dlls
597 if (MultiDLLHandlecxx . . $ MultiDLLHandle..handlecxx . . $ module#handle.)
598 FreeMultiDLLcxx . . $ FreeMultiDLL(49f6e7a06ebc5aa8).();
599
600 ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).(dll_path_name, Base_directorycxx . . $ Base_directory., "online", "*.tmp", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
601 ddio_DeleteFilecxx . . $ ddio_DeleteFile(5c4306d8553b3696).(dll_path_name);
602 // Make the hog filename
603 ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).(lib_name, Base_directorycxx . . $ Base_directory., "online", name, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
604 strcat(lib_name, ".d3c");
605 // Make the dll filename
606 #if defined(WIN32)
607 snprintf(dll_name, sizeof(dll_name), "%s.dll", name);
608 #elif defined(MACOSX)
609 snprintf(dll_name, sizeof(dll_name), "%s.dylib", name);
610 #else
611 snprintf(dll_name, sizeof(dll_name), "%s.so", name);
612 #endif
613
614 // Open the hog file
615 if (!cf_OpenLibrarycxx . . $ cf_OpenLibrary(293b0826c8d9cb54).(lib_namecxx . . $ std/filesystem/__cxx11/path#path(835bc3a16b770d4d).)) {
616 ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).(tmp_dll_name, Base_directorycxx . . $ Base_directory., "online", name, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
617 strcat(tmp_dll_name, ".d3c");
618 Multi_conn_dll_namecxx . . $ Multi_conn_dll_name.[0] = 0;
619 goto loaddll;
620 }
621 // get a temp file name
622 if (!ddio_GetTempFileNamecxx . . $ ddio_GetTempFileName(dfb34736e99ce5d).(Descent3_temp_directorycxx . . $ Descent3_temp_directory., "d3c", tmp_dll_name)) {
623 return 0;
624 }
625 // Copy the DLL
626 // ddio_MakePath(dll_path_name,Base_directory,"online",tmp_dll_name,NULL);
627 if (!cf_CopyFilecxx . . $ cf_CopyFile(773c05b60430b9f6).(tmp_dll_namecxx . . $ std/filesystem/__cxx11/path#path(835bc3a16b770d4d)., dll_namecxx . . $ std/filesystem/__cxx11/path#path(835bc3a16b770d4d).)) {
628 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "DLL copy failed!\n");
629 return 0;
630 }
631 strcpy(Multi_conn_dll_namecxx . . $ Multi_conn_dll_name., tmp_dll_name);
632 loaddll:
633
634 if (!mod_LoadModulecxx . . $ mod_LoadModule(2b2b4995973ac6b0).(&MultiDLLHandlecxx . . $ MultiDLLHandle., tmp_dll_name)) {
635 int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).();
636 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "You are missing the DLL %s!\n", name);
637 return 0;
638 }
639
640 DLLMultiInitcxx . . $ DLLMultiInit. = (DLLMultiInit_fpcxx . . $ DLLMultiInit_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&MultiDLLHandlecxx . . $ MultiDLLHandle., "DLLMultiInit", 4);
641 if (!DLLMultiInitcxx . . $ DLLMultiInit.) {
642 int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).();
643 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't get a handle to the dll function DLLMultiInit!\n");
644 Int3cxx . . $ `misc/pserror.h:247:9`!();
645 FreeMultiDLLcxx . . $ FreeMultiDLL(49f6e7a06ebc5aa8).();
646 return 0;
647 }
648 DLLMultiCallcxx . . $ DLLMultiCall. = (DLLMultiCall_fpcxx . . $ DLLMultiCall_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&MultiDLLHandlecxx . . $ MultiDLLHandle., "DLLMultiCall", 4);
649 if (!DLLMultiCallcxx . . $ DLLMultiCall.) {
650 int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).();
651 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't get a handle to the dll function DLLMultiCall!\n");
652 Int3cxx . . $ `misc/pserror.h:247:9`!();
653 FreeMultiDLLcxx . . $ FreeMultiDLL(49f6e7a06ebc5aa8).();
654 return 0;
655 }
656 DLLMultiClosecxx . . $ DLLMultiClose. = (DLLMultiClose_fpcxx . . $ DLLMultiClose_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&MultiDLLHandlecxx . . $ MultiDLLHandle., "DLLMultiClose", 0);
657 if (!DLLMultiClosecxx . . $ DLLMultiClose.) {
658 int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).();
659 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't get a handle to the dll function DLLMultiClose!\n");
660 Int3cxx . . $ `misc/pserror.h:247:9`!();
661 FreeMultiDLLcxx . . $ FreeMultiDLL(49f6e7a06ebc5aa8).();
662 return 0;
663 }
664
665 if (first) {
666 // Jeff: Linux dies if you try to free a DLL/so during atexit
667 // for some reason. The dll/so should be freed during
668 // game sequencing anyway.
669 // atexit (FreeMultiDLL);
670 first = 0;
671 }
672 void *api_fp;
673 api_fp = (void *)GetMultiAPIcxx . . $ GetMultiAPI(ce88f427848516e7).;
674
675 if (Auto_login_namecxx . . $ Auto_login_name.[0]) {
676 Databasecxx . . $ Database.->writecxx . . $ oeAppDatabase#write(f827cee075336303).("TrackerLogin", Auto_login_namecxx . . $ Auto_login_name., strlen(Auto_login_namecxx . . $ Auto_login_name.) + 1);
677 }
678 if (Auto_login_passcxx . . $ Auto_login_pass.[0]) {
679 Databasecxx . . $ Database.->writecxx . . $ oeAppDatabase#write(f827cee075336303).("TrackerPassword", Auto_login_passcxx . . $ Auto_login_pass., strlen(Auto_login_passcxx . . $ Auto_login_pass.) + 1);
680 }
681 if (!Dedicated_servercxx . . $ Dedicated_server.) {
682 strcpy(PXO_hosted_lobby_namecxx . . $ PXO_hosted_lobby_name., "global");
683 }
684 DLLMultiInitcxx . . $ DLLMultiInit.((int *)api_fp);
685
686 if (Supports_score_apicxx . . $ Supports_score_api.) {
687 DLLMultiScoreCallcxx . . $ DLLMultiScoreCall. = (DLLMultiScoreCall_fpcxx . . $ DLLMultiScoreCall_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&MultiDLLHandlecxx . . $ MultiDLLHandle., "DLLMultiScoreEvent", 8);
688
689 if (!DLLMultiScoreCallcxx . . $ DLLMultiScoreCall.) {
690 int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).();
691 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't get a handle to the dll function DLLMultiScoreCall!\n");
692 Int3cxx . . $ `misc/pserror.h:247:9`!();
693 Supports_score_apicxx . . $ Supports_score_api. = false;
694 }
695 }
696 return 1;
697 }
698 // The chokepoint function to call the dll function
699 void CallMultiDLLcxx . . $ CallMultiDLL(d4f767463ce0a6b3).(int eventnum) {
700 if (MultiDLLHandlecxx . . $ MultiDLLHandle..handlecxx . . $ module#handle. && DLLMultiCallcxx . . $ DLLMultiCall.)
701 DLLMultiCallcxx . . $ DLLMultiCall.(eventnum);
702 }
703 void SetUITextItemTextcxx . . $ SetUITextItemText(ee114b9bb7b54720).(UITextItemcxx . . $ UITextItem# *uit, char *newtext, uint32_tcxx . . $ uint32_t# color) {
704 // This function is currently broken!
705 strcpy(uit->m_Textcxx . . $ UITextItem#m_Text., newtext);
706 uit->set_colorcxx . . $ UITextItem#set_color(cb2f890c2fdad230).(color);
707 }
708 void *NewUIWindowCreatecxx . . $ NewUIWindowCreate(76d7789468b01f1d).(int x, int y, int w, int h, int flags) {
709 NewUIWindowcxx . . $ NewUIWindow# *newwin;
710 newwin = new NewUIWindowcxx . . $ NewUIWindow#;
711 newwin->Createcxx . . $ NewUIWindow#Create(1559a299834bcdd5).(x, y, w, h, flags);
712 return newwin;
713 }
714 void NewUIWindowDestroycxx . . $ NewUIWindowDestroy(488f24e0e2cc986e).(NewUIWindowcxx . . $ NewUIWindow# *deswin) { deswin->Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).(); }
715 void NewUIWindowOpencxx . . $ NewUIWindowOpen(488f24e0e2cc986e).(NewUIWindowcxx . . $ NewUIWindow# *deswin) { deswin->Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); }
716 void NewUIWindowClosecxx . . $ NewUIWindowClose(488f24e0e2cc986e).(NewUIWindowcxx . . $ NewUIWindow# *deswin) { deswin->Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); }
717 void *TextCreatecxx . . $ TextCreate(d84f16cfa0f2f434).(UIWindowcxx . . $ UIWindow# *parentwin, UITextItemcxx . . $ UITextItem# *textitem, int x, int y, int flags) {
718 UITextcxx . . $ UIText# *newtext;
719 newtext = new UITextcxx . . $ UIText#;
720 newtext->Createcxx . . $ UIText#Create(c90f152919fa414d).(parentwin, textitem, x, y, flags);
721 return newtext;
722 }
723 void TextSetTitlecxx . . $ TextSetTitle(7d1fdf7ee91fa5be).(UITextcxx . . $ UIText# *text, UITextItemcxx . . $ UITextItem# *textitem) { text->SetTitlecxx . . $ UIStatic#SetTitle(52afca12b6cce14a).(textitem); }
724 void *EditCreatecxx . . $ EditCreate(dc9115cd522defea).(UIWindowcxx . . $ UIWindow# *parentwin, int id, int x, int y, int w, int h, int flags) {
725 NewUIEditcxx . . $ NewUIEdit# *newedit;
726 newedit = new NewUIEditcxx . . $ NewUIEdit#;
727 newedit->Createcxx . . $ NewUIEdit#Create(43707b8add2f137d).(parentwin, id, x, y, w, h, flags);
728 return newedit;
729 }
730 void EditSetTextcxx . . $ EditSetText(32f521072cbd7203).(NewUIEditcxx . . $ NewUIEdit# *item, const char *newtext) { item->SetTextcxx . . $ UIEdit#SetText(85c52e162fed56f9).(newtext); }
731 void EditGetTextcxx . . $ EditGetText(fb5eddf017e01723).(NewUIEditcxx . . $ NewUIEdit# *item, char *buff, int len) { item->GetTextcxx . . $ UIEdit#GetText(a07d8cccb7673f5a).(buff, len); }
732 void *ButtonCreatecxx . . $ ButtonCreate(2e17589279eb4159).(UIWindowcxx . . $ UIWindow# *parentwin, int id, UITextItemcxx . . $ UITextItem# *titleitem, int x, int y, int w, int h, int flags) {
733 UIButtoncxx . . $ UIButton# *newbutt;
734 newbutt = new UIButtoncxx . . $ UIButton#;
735 newbutt->Createcxx . . $ UIButton#Create(55c0967870198d96).(parentwin, id, titleitem, x, y, w, h, flags);
736 return newbutt;
737 }
738 void *ListCreatecxx . . $ ListCreate(dc9115cd522defea).(UIWindowcxx . . $ UIWindow# *parentwin, int id, int x, int y, int w, int h, int flags) {
739 NewUIListBoxcxx . . $ NewUIListBox# *newlist;
740 newlist = new NewUIListBoxcxx . . $ NewUIListBox#;
741 newlist->Createcxx . . $ NewUIListBox#Create(43707b8add2f137d).(parentwin, id, x, y, w, h, flags);
742 newlist->SetSelectedColorcxx . . $ UIListBox#SetSelectedColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!);
743 newlist->SetHiliteColorcxx . . $ UIListBox#SetHiliteColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!);
744 return newlist;
745 }
746 void ListRemoveAllcxx . . $ ListRemoveAll(fcba45fc1ebcb8ea).(UIListBoxcxx . . $ UIListBox# *item) { item->RemoveAllcxx . . $ UIListBox#RemoveAll(49f6e7a06ebc5aa8).(); }
747 void ListAddItemcxx . . $ ListAddItem(3a3c474e41982a6c).(UIListBoxcxx . . $ UIListBox# *item, UITextItemcxx . . $ UITextItem# *uitext) { item->AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(uitext); }
748 void ListRemoveItemcxx . . $ ListRemoveItem(3a3c474e41982a6c).(UIListBoxcxx . . $ UIListBox# *item, UITextItemcxx . . $ UITextItem# *txtitem) { item->RemoveItemcxx . . $ UIListBox#RemoveItem(f57aa2fef0df48a8).(txtitem); }
749 void ListSelectItemcxx . . $ ListSelectItem(3a3c474e41982a6c).(UIListBoxcxx . . $ UIListBox# *item, UITextItemcxx . . $ UITextItem# *txtitem) { item->SelectItemcxx . . $ UIListBox#SelectItem(f57aa2fef0df48a8).(txtitem); }
750 const char *ListGetItemcxx . . $ ListGetItem(5cae7221e1e66c1a).(UIListBoxcxx . . $ UIListBox# *item, int index) {
751 UITextItemcxx . . $ UITextItem# *ui_item;
752 ui_item = (UITextItemcxx . . $ UITextItem# *)item->GetItemcxx . . $ UIListBox#GetItem(546e15a08a69e3a5).(index);
753 if (ui_item)
754 return ui_item->GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).();
755 else {
756 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "No listbox item found for index %d\n", index);
757 return "";
758 }
759 }
760 int ListGetSelectedIndexcxx . . $ ListGetSelectedIndex(ad4162047d52fa6e).(UIListBoxcxx . . $ UIListBox# *item) { return item->GetSelectedIndexcxx . . $ UIListBox#GetSelectedIndex(455f465bc33b4cdf).(); }
761 void ListSetSelectedIndexcxx . . $ ListSetSelectedIndex(7c3831b64a90417).(UIListBoxcxx . . $ UIListBox# *item, int index) { item->SetSelectedIndexcxx . . $ UIListBox#SetSelectedIndex(d4f767463ce0a6b3).(index); }
762 void DatabaseReadcxx . . $ DatabaseRead(f474874004d4a6ab).(const char *label, char *entry, int *entrylen) { Databasecxx . . $ Database.->readcxx . . $ oeAppDatabase#read(3bcbb53201fcdcb8).(label, entry, entrylen); }
763 void DatabaseWritecxx . . $ DatabaseWrite(5e891a9f77bb0eff).(const char *label, const char *entry, int entrylen) { Databasecxx . . $ Database.->writecxx . . $ oeAppDatabase#write(f827cee075336303).(label, entry, entrylen); }
764 void DatabaseReadIntcxx . . $ DatabaseReadInt(73e4a7b7b8bfbc8c).(const char *label, int *val) {
765 Databasecxx . . $ Database.->read_intcxx . . $ `lib/linux/lnxdatabase.h:71:9`!(label, val);
766 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Read int: %s:%d\n", label, *val);
767 }
768 void DatabaseWriteIntcxx . . $ DatabaseWriteInt(34d26762b42c433a).(const char *label, int val) {
769 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Writing int: %s:%d\n", label, val);
770 Databasecxx . . $ Database.->writecxx . . $ oeAppDatabase#write(2551bed5d6fc04f6).(label, val);
771 }
772 void DescentDefercxx . . $ DescentDefer(49f6e7a06ebc5aa8).(void) { Descentcxx . . $ Descent.->defercxx . . $ oeApplication#defer(db52760e79bf9054).(); }
773 void *NewUIGameWindowCreatecxx . . $ NewUIGameWindowCreate(76d7789468b01f1d).(int x, int y, int w, int h, int flags) {
774 NewUIGameWindowcxx . . $ NewUIGameWindow# *newgamewin;
775 newgamewin = new NewUIGameWindowcxx . . $ NewUIGameWindow#;
776 newgamewin->Createcxx . . $ NewUIGameWindow#Create(1559a299834bcdd5).(x, y, w, h, flags);
777 return newgamewin;
778 }
779 void NewUIGameWindowDestroycxx . . $ NewUIGameWindowDestroy(17abec7eb822a749).(NewUIGameWindowcxx . . $ NewUIGameWindow# *item) { item->Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).(); }
780 void NewUIGameWindowOpencxx . . $ NewUIGameWindowOpen(17abec7eb822a749).(NewUIGameWindowcxx . . $ NewUIGameWindow# *item) { item->Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); }
781 void NewUIGameWindowClosecxx . . $ NewUIGameWindowClose(17abec7eb822a749).(NewUIGameWindowcxx . . $ NewUIGameWindow# *item) { item->Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).(); }
782 void *HotSpotCreatecxx . . $ HotSpotCreate(c0fba4599935b27e).(UIWindowcxx . . $ UIWindow# *parentwin, int id, int key, UIItemcxx . . $ UIItem# *txtitemoff, UIItemcxx . . $ UIItem# *txtitemon, int x, int y, int w,
783 int h, int flags) {
784 UIHotspotcxx . . $ UIHotspot# *newhs;
785 newhs = new UIHotspotcxx . . $ UIHotspot#;
786 if (newhs)
787 newhs->Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(parentwin, id, key, txtitemoff, txtitemon, x, y, w, h, flags);
788 return newhs;
789 }
790 void HotSpotSetStatescxx . . $ HotSpotSetStates(586da350ab5f7284).(UIHotspotcxx . . $ UIHotspot# *hs, UIItemcxx . . $ UIItem# *texton, UIItemcxx . . $ UIItem# *textoff) { hs->SetStatescxx . . $ UIHotspot#SetStates(ca92f25ca46ed94).(textoff, texton); }
791 void *CheckBoxCreatecxx . . $ CheckBoxCreate(1098cf25cefcbd24).(UIWindowcxx . . $ UIWindow# *parent, int id, UIItemcxx . . $ UIItem# *title, int x, int y, int w, int h, int flags) {
792 UICheckBoxcxx . . $ UICheckBox# *newcb;
793 newcb = new UICheckBoxcxx . . $ UICheckBox#;
794 if (newcb)
795 newcb->Createcxx . . $ UICheckBox#Create(55c0967870198d96).(parent, id, title, x, y, w, h, flags);
796 return newcb;
797 }
798 void CheckBoxSetCheckcxx . . $ CheckBoxSetCheck(e6528bc9b3818265).(UICheckBoxcxx . . $ UICheckBox# *cb, bool state) { cb->SetCheckcxx . . $ UICheckBox#SetCheck(b45ddcbc8423892c).(state); }
799 bool CheckBoxIsCheckedcxx . . $ CheckBoxIsChecked(56ac38d13748a35d).(UICheckBoxcxx . . $ UICheckBox# *cb) { return cb->IsCheckedcxx . . $ UICheckBox#IsChecked(50ce9a9e25b4a850).(); }
800 float UI_LastPollcxx . . $ UI_LastPoll. = 0l;
801 #define MIN_FRAMETIMEcxx . . $ `Descent3/multi_dll_mgr.cpp:801:9`! .033
802 int PollUIcxx . . $ PollUI(b126dc7c1de90089).(void) {
803 // this should poll UI_frame_result.
804 int result = -1;
805
806 ui_ShowCursorcxx . . $ ui_ShowCursor(c9857a73d68e59ba).();
807
808 // Limit this to a fixed framerate
809 if (UI_LastPollcxx . . $ UI_LastPoll.) {
810 if ((timer_GetTimecxx . . $ `ddio/ddio.h:236:9`!() - UI_LastPollcxx . . $ UI_LastPoll.) < MIN_FRAMETIMEcxx . . $ `Descent3/multi_dll_mgr.cpp:801:9`!)
811 Sleepcxx . . $ Sleep(d4f767463ce0a6b3).((timer_GetTimecxx . . $ `ddio/ddio.h:236:9`!() - UI_LastPollcxx . . $ UI_LastPoll.) * 1000);
812 }
813
814 UI_LastPollcxx . . $ UI_LastPoll. = timer_GetTimecxx . . $ `ddio/ddio.h:236:9`!();
815
816 Descentcxx . . $ Descent.->defercxx . . $ oeApplication#defer(db52760e79bf9054).();
817 DoUIFramecxx . . $ DoUIFrame(49f6e7a06ebc5aa8).();
818 rend_Flipcxx . . $ rend_Flip(49f6e7a06ebc5aa8).();
819 result = GetUIFrameResultcxx . . $ GetUIFrameResult(b126dc7c1de90089).();
820 if (result != -1) {
821 ui_HideCursorcxx . . $ ui_HideCursor(c9857a73d68e59ba).();
822 ui_Flushcxx . . $ ui_Flush(49f6e7a06ebc5aa8).();
823 ddio_KeyFlushcxx . . $ ddio_KeyFlush(49f6e7a06ebc5aa8).();
824 }
825 return result;
826 }
827 void *CreateNewUITextItemcxx . . $ CreateNewUITextItem(265f30871222eac8).(const char *newtext, uint32_tcxx . . $ uint32_t# color, int font) {
828 UITextItemcxx . . $ UITextItem# *new_text_item;
829 if (font == -1) {
830 new_text_item = new UITextItemcxx . . $ UITextItem#(newtext);
831 } else {
832 switch (font) {
833 case DLL_BRIEFING_FONTcxx . . $ `Descent3/multi_dll_mgr.cpp:382:9`!:
834 new_text_item = new UITextItemcxx . . $ UITextItem#(BRIEFING_FONTcxx . . $ `Descent3/gamefont.h:111:9`!, newtext);
835 break;
836 case DLL_BIG_BRIEFING_FONTcxx . . $ `Descent3/multi_dll_mgr.cpp:383:9`!:
837 new_text_item = new UITextItemcxx . . $ UITextItem#(BIG_BRIEFING_FONTcxx . . $ `Descent3/gamefont.h:112:9`!, newtext);
838 break;
839 default:
840 new_text_item = new UITextItemcxx . . $ UITextItem#(BRIEFING_FONTcxx . . $ `Descent3/gamefont.h:111:9`!, newtext);
841 }
842 }
843 if (new_text_item)
844 new_text_item->set_colorcxx . . $ UITextItem#set_color(cb2f890c2fdad230).(color);
845 return new_text_item;
846 }
847 void RemoveUITextItemcxx . . $ RemoveUITextItem(5d22bdacc48458e8).(void *item) {
848 UITextItemcxx . . $ UITextItem# *old_text_item = (UITextItemcxx . . $ UITextItem# *)item;
849 delete old_text_item;
850 }
851 void *CreateNewUIBmpItemcxx . . $ CreateNewUIBmpItem(a331bfa9aba4cd9d).(int handle, uint8_tcxx . . $ uint8_t# alpha) {
852 UIBitmapItemcxx . . $ UIBitmapItem# *new_bmp_item;
853 new_bmp_item = new UIBitmapItemcxx . . $ UIBitmapItem#(handle, alpha);
854 return new_bmp_item;
855 }
856 int GetUIItemWidthcxx . . $ GetUIItemWidth(dedf1e9b1c614a07).(void *item) {
857 UIItemcxx . . $ UIItem# *i = (UIItemcxx . . $ UIItem# *)item;
858 return i->widthcxx . . $ UIItem#width(b126dc7c1de90089).();
859 }
860 int GetUIItemHeightcxx . . $ GetUIItemHeight(dedf1e9b1c614a07).(void *item) {
861 UIItemcxx . . $ UIItem# *i = (UIItemcxx . . $ UIItem# *)item;
862 return i->heightcxx . . $ UIItem#height(b126dc7c1de90089).();
863 }
864 void RemoveUIBmpItemcxx . . $ RemoveUIBmpItem(5d22bdacc48458e8).(void *item) {
865 UIBitmapItemcxx . . $ UIBitmapItem# *old_bmp_item = (UIBitmapItemcxx . . $ UIBitmapItem# *)item;
866 delete old_bmp_item;
867 }
868 void NewUIMessageBoxCreatecxx . . $ NewUIMessageBoxCreate(748afa4755bc9595).(int x, int y, int w, int flags) { messagebcxx . . $ messageb..Createcxx . . $ NewUIMessageBox#Create(748afa4755bc9595).(x, y, w, flags); }
869 void NewUIMessageBoxDestroycxx . . $ NewUIMessageBoxDestroy(49f6e7a06ebc5aa8).() {}
870 void NewUIMessageBoxOpencxx . . $ NewUIMessageBoxOpen(49f6e7a06ebc5aa8).() { messagebcxx . . $ messageb..Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).(); }
871 void NewUIMessageBoxClosecxx . . $ NewUIMessageBoxClose(49f6e7a06ebc5aa8).() {}
872 static bool splash_screen_upcxx . . $ splash_screen_up. = false;
873 void CreateSplashScreencxx . . $ CreateSplashScreen(34d26762b42c433a).(const char *msg, int usecancel) {
874 if (splash_screen_upcxx . . $ splash_screen_up.)
875 return;
876 splash_screen_upcxx . . $ splash_screen_up. = true;
877 ti_cancel_oncxx . . $ ti_cancel_on. =cxx . . $ UITextItem#`operator=`(5ad635489e71ed3b). UITextItemcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_CANCELcxx . . $ `Descent3/stringtable.h:35:9`!, UICOL_HOTSPOT_HIcxx . . $ `Descent3/newui.h:217:9`!);
878 ti_cancel_offcxx . . $ ti_cancel_off. =cxx . . $ UITextItem#`operator=`(5ad635489e71ed3b). UITextItemcxx . . $ UITextItem#UITextItem(5f8aa4f2725849c4).(TXT_CANCELcxx . . $ `Descent3/stringtable.h:35:9`!, UICOL_HOTSPOT_LOcxx . . $ `Descent3/newui.h:214:9`!);
879 ti_msgcxx . . $ ti_msg. =cxx . . $ UITextItem#`operator=`(5ad635489e71ed3b). UITextItemcxx . . $ UITextItem#(msg);
880 messagebcxx . . $ messageb..Createcxx . . $ NewUIMessageBox#Create(748afa4755bc9595).(0, 0, 384, UIF_CENTERcxx . . $ `ui/ui.h:342:9`!);
881 ticxx . . $ ti..Createcxx . . $ UIText#Create(c90f152919fa414d).(&messagebcxx . . $ messageb., &ti_msgcxx . . $ ti_msg., 20, 50, UIF_CENTERcxx . . $ `ui/ui.h:342:9`!);
882
883 if (usecancel) {
884 uihcancelcxx . . $ uihcancel..Createcxx . . $ UIHotspot#Create(ee4237d76742fc72).(&messagebcxx . . $ messageb., 99, KEY_ESCcxx . . $ `ddio/ddio_common.h:267:9`!, &ti_cancel_offcxx . . $ ti_cancel_off., &ti_cancel_oncxx . . $ ti_cancel_on., 1, 75, 100, 15, UIF_CENTERcxx . . $ `ui/ui.h:342:9`!);
885 }
886 messagebcxx . . $ messageb..Opencxx . . $ UIWindow#Open(49f6e7a06ebc5aa8).();
887 }
888 void CloseSplashScreencxx . . $ CloseSplashScreen(49f6e7a06ebc5aa8).(void) {
889 if (splash_screen_upcxx . . $ splash_screen_up.) {
890 messagebcxx . . $ messageb..Closecxx . . $ UIWindow#Close(49f6e7a06ebc5aa8).();
891 messagebcxx . . $ messageb..Destroycxx . . $ UIWindow#Destroy(49f6e7a06ebc5aa8).();
892 splash_screen_upcxx . . $ splash_screen_up. = false;
893 } else
894 return;
895 }
896 void *UIConsoleGadgetCreatecxx . . $ UIConsoleGadgetCreate(a14cc48659c6db1c).(UIWindowcxx . . $ UIWindow# *parentid, int id, int x, int y, int font, int cols, int rows, int flags) {
897 UIConsoleGadgetcxx . . $ UIConsoleGadget# *newconsole;
898 newconsole = new UIConsoleGadgetcxx . . $ UIConsoleGadget#;
899 newconsole->Createcxx . . $ UIConsoleGadget#Create(f586159e43e8c8b5).(parentid, id, x, y, BRIEFING_FONTcxx . . $ `Descent3/gamefont.h:111:9`!, cols, rows, flags);
900 return newconsole;
901 }
902 void UIConsoleGadgetputscxx . . $ UIConsoleGadgetputs(451ab6a730b562ff).(UIConsoleGadgetcxx . . $ UIConsoleGadget# *item, const char *str) {
903 uint8_tcxx . . $ uint8_t# r = 0;
904 uint8_tcxx . . $ uint8_t# g = 230;
905 uint8_tcxx . . $ uint8_t# b = 0;
906 if (*str == 1) {
907 str++;
908 r = *str;
909 str++;
910 g = *str;
911 str++;
912 b = *str;
913 str++;
914 }
915 item->putscxx . . $ UIConsoleGadget#puts(d7adf5cfafc0e15a).(GR_RGBcxx . . $ GR_RGB(530956271a9518a5).(r, g, b), str);
916 }
917 void NewUIWindowSetFocusOnEditGadgetcxx . . $ NewUIWindowSetFocusOnEditGadget(57798f7f932dfa81).(UIEditcxx . . $ UIEdit# *item, UIWindowcxx . . $ UIWindow# *parent) { item->Activatecxx . . $ UIEdit#Activate(49f6e7a06ebc5aa8).(); }
918 void *OldListCreatecxx . . $ OldListCreate(dc9115cd522defea).(UIWindowcxx . . $ UIWindow# *parentitem, int id, int x, int y, int w, int h, int flags) {
919 UIListBoxcxx . . $ UIListBox# *newoldlist;
920 newoldlist = new UIListBoxcxx . . $ UIListBox#;
921 newoldlist->Createcxx . . $ UIListBox#Create(43707b8add2f137d).(parentitem, id, x, y, w, h, flags);
922 newoldlist->SetSelectedColorcxx . . $ UIListBox#SetSelectedColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!);
923 newoldlist->SetHiliteColorcxx . . $ UIListBox#SetHiliteColor(cb2f890c2fdad230).(UICOL_LISTBOX_HIcxx . . $ `Descent3/newui.h:222:9`!);
924 return newoldlist;
925 }
926 void OldListRemoveAllcxx . . $ OldListRemoveAll(fcba45fc1ebcb8ea).(UIListBoxcxx . . $ UIListBox# *item) { item->RemoveAllcxx . . $ UIListBox#RemoveAll(49f6e7a06ebc5aa8).(); }
927 void OldListAddItemcxx . . $ OldListAddItem(3a3c474e41982a6c).(UIListBoxcxx . . $ UIListBox# *item, UITextItemcxx . . $ UITextItem# *uitext) { item->AddItemcxx . . $ UIListBox#AddItem(f57aa2fef0df48a8).(uitext); }
928 void OldListRemoveItemcxx . . $ OldListRemoveItem(3a3c474e41982a6c).(UIListBoxcxx . . $ UIListBox# *item, UITextItemcxx . . $ UITextItem# *txtitem) { item->RemoveItemcxx . . $ UIListBox#RemoveItem(f57aa2fef0df48a8).(txtitem); }
929 void OldListSelectItemcxx . . $ OldListSelectItem(3a3c474e41982a6c).(UIListBoxcxx . . $ UIListBox# *item, UITextItemcxx . . $ UITextItem# *txtitem) { item->SelectItemcxx . . $ UIListBox#SelectItem(f57aa2fef0df48a8).(txtitem); }
930 const char *OldListGetItemcxx . . $ OldListGetItem(5cae7221e1e66c1a).(UIListBoxcxx . . $ UIListBox# *item, int index) {
931 UITextItemcxx . . $ UITextItem# *ti = (UITextItemcxx . . $ UITextItem# *)item->GetItemcxx . . $ UIListBox#GetItem(546e15a08a69e3a5).(index);
932 if (ti)
933 return ti->GetBuffercxx . . $ UITextItem#GetBuffer(a9f41ea0e82d88cf).();
934 else {
935 mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "No listbox item found for index %d\n", index);
936 return "";
937 }
938 }
939 int OldListGetSelectedIndexcxx . . $ OldListGetSelectedIndex(ad4162047d52fa6e).(UIListBoxcxx . . $ UIListBox# *item) { return item->GetSelectedIndexcxx . . $ UIListBox#GetSelectedIndex(455f465bc33b4cdf).(); }
940 void *OldEditCreatecxx . . $ OldEditCreate(dc9115cd522defea).(UIWindowcxx . . $ UIWindow# *parentitem, int id, int x, int y, int w, int h, int flags) {
941 UIEditcxx . . $ UIEdit# *newoldedit;
942 newoldedit = new UIEditcxx . . $ UIEdit#;
943 newoldedit->Createcxx . . $ UIEdit#Create(43707b8add2f137d).(parentitem, id, x, y, w, h, flags);
944 return newoldedit;
945 }
946 void OldEditSetTextcxx . . $ OldEditSetText(5bf538048a323648).(UIEditcxx . . $ UIEdit# *item, const char *newtext) { item->SetTextcxx . . $ UIEdit#SetText(85c52e162fed56f9).(newtext); }
947 void OldEditGetTextcxx . . $ OldEditGetText(d7408c567151c92e).(UIEditcxx . . $ UIEdit# *item, char *buff, int len) { item->GetTextcxx . . $ UIEdit#GetText(a07d8cccb7673f5a).(buff, len); }
948 static void (*DLLInit_old_ui_callbackcxx . . $ DLLInit_old_ui_callback.)() = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
949 void ToggleUICallbackcxx . . $ ToggleUICallback(d4f767463ce0a6b3).(int state) {
950
951 if (state == 0) {
952 if (DLLInit_old_ui_callbackcxx . . $ DLLInit_old_ui_callback. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
953 DLLInit_old_ui_callbackcxx . . $ DLLInit_old_ui_callback. = GetUICallbackcxx . . $ GetUICallback(9f019fced98557ce).();
954 SetUICallbackcxx . . $ SetUICallback(964b12a25712bdc3).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
955 }
956 } else {
957 if (DLLInit_old_ui_callbackcxx . . $ DLLInit_old_ui_callback. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
958 SetUICallbackcxx . . $ SetUICallback(964b12a25712bdc3).(DLLInit_old_ui_callbackcxx . . $ DLLInit_old_ui_callback.);
959 DLLInit_old_ui_callbackcxx . . $ DLLInit_old_ui_callback. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
960 }
961 }
962 }
963 void SetOldEditBufferLencxx . . $ SetOldEditBufferLen(526e54c5ffa2af90).(UIEditcxx . . $ UIEdit# *item, int len) { item->SetBufferLencxx . . $ UIEdit#SetBufferLen(d4f767463ce0a6b3).(len); }
964 void NewUIWindowLoadBackgroundImagecxx . . $ NewUIWindowLoadBackgroundImage(a519a360beb3a806).(NewUIWindowcxx . . $ NewUIWindow# *item, const char *image_name) {
965 item->LoadBackgroundImagecxx . . $ NewUIWindow#LoadBackgroundImage(85c52e162fed56f9).(image_name);
966 }
967 void DeleteUIItemcxx . . $ DeleteUIItem(5d22bdacc48458e8).(void *delitem) { delete delitem; } // !!! FIXME: this needs to change, but this deletes a lot of different things...
968 void GadgetDestroycxx . . $ GadgetDestroy(627f6e6cf27f18b7).(UIGadgetcxx . . $ UIGadget# *item) { item->Destroycxx . . $ UIGadget#Destroy(49f6e7a06ebc5aa8).(); }
969 void *SliderCreatecxx . . $ SliderCreate(c523cb0d7b2eb40).(UIWindowcxx . . $ UIWindow# *parent, int id, int x, int y, int flags) {
970 NewUISlidercxx . . $ NewUISlider# *slid;
971 slid = new NewUISlidercxx . . $ NewUISlider#;
972 slid->Createcxx . . $ NewUISlider#Create(f04546128259b10e).(parent, id, x, y, flags);
973 return (void *)slid;
974 }
975 void SliderSetRangecxx . . $ SliderSetRange(b5ace6dd40cfcb4).(UISlidercxx . . $ UISlider# *slider, int range) { slider->SetRangecxx . . $ UISlider#SetRange(d4f767463ce0a6b3).(range); }
976 int SliderGetRangecxx . . $ SliderGetRange(83c9e7654e8a412e).(UISlidercxx . . $ UISlider# *slider) { return slider->GetRangecxx . . $ UISlider#GetRange(455f465bc33b4cdf).(); }
977 void SliderSetPoscxx . . $ SliderSetPos(b5ace6dd40cfcb4).(UISlidercxx . . $ UISlider# *slider, int pos) { slider->SetPoscxx . . $ UISlider#SetPos(d4f767463ce0a6b3).(pos); }
978 int SliderGetPoscxx . . $ SliderGetPos(83c9e7654e8a412e).(UISlidercxx . . $ UISlider# *slider) { return slider->GetPoscxx . . $ UISlider#GetPos(455f465bc33b4cdf).(); }
979 void SliderSetSelectChangeCallbackcxx . . $ SliderSetSelectChangeCallback(d7144a2c71be4d1).(UISlidercxx . . $ UISlider# *slider, void (*fn)(int)) { slider->SetSelectChangeCallbackcxx . . $ UISlider#SetSelectChangeCallback(94eb4457dc8d4d10).(fn); }
980 void SliderSetSelectChangeCallbackWDatacxx . . $ SliderSetSelectChangeCallbackWData(93b30d159758dcb2).(UISlidercxx . . $ UISlider# *slider, void (*fn)(int, void *), void *ptr) {
981 slider->SetSelectChangeCallbackcxx . . $ UISlider#SetSelectChangeCallback(af3d7c1df3fe7292).(fn, ptr);
982 }
983 void GetUIItemPositioncxx . . $ GetUIItemPosition(963a1ffce8afd46a).(UIObjectcxx . . $ UIObject# *item, int *x, int *y, int *w, int *h) {
984 if (x)
985 *x = item->Xcxx . . $ UIObject#X(455f465bc33b4cdf).();
986 if (y)
987 *y = item->Ycxx . . $ UIObject#Y(455f465bc33b4cdf).();
988 if (w)
989 *w = item->Wcxx . . $ UIObject#W(455f465bc33b4cdf).();
990 if (h)
991 *h = item->Hcxx . . $ UIObject#H(455f465bc33b4cdf).();
992 }
993 #define CDT_EVT_PLAYERKILLEDcxx . . $ `Descent3/multi_dll_mgr.cpp:993:9`! 1
994 #define CDT_EVT_CONNECTcxx . . $ `Descent3/multi_dll_mgr.cpp:994:9`! 2
995 #define CDT_EVT_GAME_OVERcxx . . $ `Descent3/multi_dll_mgr.cpp:995:9`! 3
996 #define CDT_EVT_GAME_STARTINGcxx . . $ `Descent3/multi_dll_mgr.cpp:996:9`! 4
997 #define CDT_EVT_FRAMEcxx . . $ `Descent3/multi_dll_mgr.cpp:997:9`! 5
998 #define CDT_EVT_PLAYER_DIEDcxx . . $ `Descent3/multi_dll_mgr.cpp:998:9`! 6
999 #define CDT_EVT_PLAYER_JOINScxx . . $ `Descent3/multi_dll_mgr.cpp:999:9`! 7
1000 #define CDT_EVT_PLAYER_LEFTcxx . . $ `Descent3/multi_dll_mgr.cpp:1000:9`! 8
1001 #define CDT_EVT_SET_SCORE_IPcxx . . $ `Descent3/multi_dll_mgr.cpp:1001:9`! 9
1002 #define CDT_EVT_SET_GAMEIDcxx . . $ `Descent3/multi_dll_mgr.cpp:1002:9`! 10
1003 #define CALLSIGN_LENcxx . . $ `Descent3/multi_dll_mgr.cpp:1003:9`! 19
1004 struct player_killedcxx . . $ player_killed# {
1005 char killer_namecxx . . $ player_killed#killer_name.[CALLSIGN_LENcxx . . $ `Descent3/multi_dll_mgr.cpp:1003:9`! + 1];
1006 char killed_namecxx . . $ player_killed#killed_name.[CALLSIGN_LENcxx . . $ `Descent3/multi_dll_mgr.cpp:1003:9`! + 1];
1007 };
1008 struct player_score_matrixcxx . . $ player_score_matrix# {
1009 int num_playerscxx . . $ player_score_matrix#num_players.;
1010 char namecxx . . $ player_score_matrix#name.[MAX_NET_PLAYERScxx . . $ `Descent3/multi_external.h:132:9`!][CALLSIGN_LENcxx . . $ `Descent3/multi_dll_mgr.cpp:1003:9`! + 1];
1011 int16_tcxx . . $ int16_t# deathscxx . . $ player_score_matrix#deaths.[MAX_NET_PLAYERScxx . . $ `Descent3/multi_external.h:132:9`!];
1012 int16_tcxx . . $ int16_t# killscxx . . $ player_score_matrix#kills.[MAX_NET_PLAYERScxx . . $ `Descent3/multi_external.h:132:9`!];
1013 };
1014 // The chokepoint function to call the dll function
1015 void CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(int eventnum, void *data) {
1016 if (MultiDLLHandlecxx . . $ MultiDLLHandle..handlecxx . . $ module#handle. && DLLMultiCallcxx . . $ DLLMultiCall.)
1017 DLLMultiScoreCallcxx . . $ DLLMultiScoreCall.(eventnum, data);
1018 }
1019 // Determine if the Score API functions should run
1020 bool ScoreAPIShouldBailcxx . . $ ScoreAPIShouldBail(c9857a73d68e59ba).() {
1021 if (!(Game_modecxx . . $ Game_mode. & GM_MULTIcxx . . $ `Descent3/game.h:288:9`!))
1022 return true;
1023 if (Supports_score_apicxx . . $ Supports_score_api.)
1024 return false;
1025 return true;
1026 }
1027 void ScoreAPIPlayerKilledcxx . . $ ScoreAPIPlayerKilled(3e454b8ccf442868).(int killer, int killed) {
1028 if (ScoreAPIShouldBailcxx . . $ ScoreAPIShouldBail(c9857a73d68e59ba).())
1029 return;
1030 player_killedcxx . . $ player_killed# pk;
1031 strcpy(pk.killed_namecxx . . $ player_killed#killed_name., Playerscxx . . $ Players.[killed].callsigncxx . . $ player#callsign.);
1032 strcpy(pk.killer_namecxx . . $ player_killed#killer_name., Playerscxx . . $ Players.[killer].callsigncxx . . $ player#callsign.);
1033
1034 CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(CDT_EVT_PLAYERKILLEDcxx . . $ `Descent3/multi_dll_mgr.cpp:993:9`!, &pk);
1035 }
1036 void ScoreAPIPlayerEnteredcxx . . $ ScoreAPIPlayerEntered(d4f767463ce0a6b3).(int playernum) {
1037 if (ScoreAPIShouldBailcxx . . $ ScoreAPIShouldBail(c9857a73d68e59ba).())
1038 return;
1039 CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(CDT_EVT_CONNECTcxx . . $ `Descent3/multi_dll_mgr.cpp:994:9`!, Playerscxx . . $ Players.[playernum].callsigncxx . . $ player#callsign.);
1040 }
1041 void ScoreAPIPlayerLeftcxx . . $ ScoreAPIPlayerLeft(d4f767463ce0a6b3).(int playernum) {
1042 if (ScoreAPIShouldBailcxx . . $ ScoreAPIShouldBail(c9857a73d68e59ba).())
1043 return;
1044 CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(CDT_EVT_PLAYER_LEFTcxx . . $ `Descent3/multi_dll_mgr.cpp:1000:9`!, Playerscxx . . $ Players.[playernum].callsigncxx . . $ player#callsign.);
1045 }
1046 void ScoreAPIPlayerJoincxx . . $ ScoreAPIPlayerJoin(d4f767463ce0a6b3).(int playernum) {
1047 if (ScoreAPIShouldBailcxx . . $ ScoreAPIShouldBail(c9857a73d68e59ba).())
1048 return;
1049 CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(CDT_EVT_PLAYER_JOINScxx . . $ `Descent3/multi_dll_mgr.cpp:999:9`!, Playerscxx . . $ Players.[playernum].callsigncxx . . $ player#callsign.);
1050 }
1051 void ScoreAPIGameOvercxx . . $ ScoreAPIGameOver(49f6e7a06ebc5aa8).() {
1052 player_score_matrixcxx . . $ player_score_matrix# sm;
1053
1054 if (ScoreAPIShouldBailcxx . . $ ScoreAPIShouldBail(c9857a73d68e59ba).())
1055 return;
1056
1057 int counted = 0;
1058 for (int i = 0; i < MAX_NET_PLAYERScxx . . $ `Descent3/multi_external.h:132:9`!; i++) {
1059 if (Playerscxx . . $ Players.[i].callsigncxx . . $ player#callsign.[0]) {
1060 strcpy(sm.namecxx . . $ player_score_matrix#name.[counted], Playerscxx . . $ Players.[i].callsigncxx . . $ player#callsign.);
1061 sm.killscxx . . $ player_score_matrix#kills.[counted] = Playerscxx . . $ Players.[i].num_kills_levelcxx . . $ player#num_kills_level.;
1062 sm.deathscxx . . $ player_score_matrix#deaths.[counted] = Playerscxx . . $ Players.[i].num_deaths_levelcxx . . $ player#num_deaths_level.;
1063 counted++;
1064 }
1065 }
1066 sm.num_playerscxx . . $ player_score_matrix#num_players. = counted;
1067 // Create a matrix of all the players with their scores and send a pointer to it.
1068 CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(CDT_EVT_GAME_OVERcxx . . $ `Descent3/multi_dll_mgr.cpp:995:9`!, &sm);
1069 }
1070 bool Set_score_server_ipcxx . . $ Set_score_server_ip. = false;
1071 void ScoreAPIFrameIntervalcxx . . $ ScoreAPIFrameInterval(49f6e7a06ebc5aa8).() {
1072 if (ScoreAPIShouldBailcxx . . $ ScoreAPIShouldBail(c9857a73d68e59ba).())
1073 return;
1074 if (!Set_score_server_ipcxx . . $ Set_score_server_ip.) {
1075 Set_score_server_ipcxx . . $ Set_score_server_ip. = true;
1076 // Look for a score server on the command line..
1077 int ss_arg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("-scoreserver");
1078 if (ss_arg) {
1079 CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(CDT_EVT_SET_SCORE_IPcxx . . $ `Descent3/multi_dll_mgr.cpp:1001:9`!, GameArgscxx . . $ GameArgs.[ss_arg + 1]);
1080 }
1081 int gi_arg = FindArgcxx . . $ FindArg(5c4306d8553b3696).("-gameid");
1082 if (gi_arg) {
1083 CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(CDT_EVT_SET_GAMEIDcxx . . $ `Descent3/multi_dll_mgr.cpp:1002:9`!, GameArgscxx . . $ GameArgs.[gi_arg + 1]);
1084 }
1085 }
1086 CallMultiScoreDLLcxx . . $ CallMultiScoreDLL(6ca3d68f5c5f0975).(CDT_EVT_FRAMEcxx . . $ `Descent3/multi_dll_mgr.cpp:997:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
1087 }