| 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 | |
| 19 | #include "pstypes.h"cxx . . $ `<file>/lib/pstypes.h`/ |
| 20 | #include "pserror.h"cxx . . $ `<file>/misc/pserror.h`/ |
| 21 | #include "game.h"cxx . . $ `<file>/Descent3/game.h`/ |
| 22 | #include "game2dll.h"cxx . . $ `<file>/lib/game2dll.h`/ |
| 23 | #include "room.h"cxx . . $ `<file>/Descent3/room.h`/ |
| 24 | #include "object.h"cxx . . $ `<file>/Descent3/object.h`/ |
| 25 | #include "terrain.h"cxx . . $ `<file>/Descent3/terrain.h`/ |
| 26 | #include "player.h"cxx . . $ `<file>/Descent3/player.h`/ |
| 27 | #include "mono.h"cxx . . $ `<file>/ddebug/mono.h`/ |
| 28 | #include "hud.h"cxx . . $ `<file>/Descent3/hud.h`/ |
| 29 | #include "Inventory.h"cxx . . $ `<file>/Descent3/Inventory.h`/ |
| 30 | #include "multi_server.h"cxx . . $ `<file>/Descent3/multi_server.h`/ |
| 31 | #include "ship.h"cxx . . $ `<file>/Descent3/ship.h`/ |
| 32 | #include "DllWrappers.h"cxx . . $ `<file>/Descent3/DllWrappers.h`/ |
| 33 | #include "soundload.h"cxx . . $ `<file>/sndlib/soundload.h`/ |
| 34 | #include "spew.h"cxx . . $ `<file>/Descent3/spew.h`/ |
| 35 | #include "objinfo.h"cxx . . $ `<file>/Descent3/objinfo.h`/ |
| 36 | #include "module.h"cxx . . $ `<file>/lib/module.h`/ |
| 37 | #include "localization.h"cxx . . $ `<file>/Descent3/localization.h`/ |
| 38 | #include "weapon.h"cxx . . $ `<file>/Descent3/weapon.h`/ |
| 39 | #include "voice.h"cxx . . $ `<file>/Descent3/voice.h`/ |
| 40 | #include "gametexture.h"cxx . . $ `<file>/Descent3/gametexture.h`/ |
| 41 | #include "Mission.h"cxx . . $ `<file>/Descent3/Mission.h`/ |
| 42 | #include "damage.h"cxx . . $ `<file>/Descent3/damage.h`/ |
| 43 | #include "ui.h"cxx . . $ `<file>/ui/ui.h`/ |
| 44 | #include "newui.h"cxx . . $ `<file>/Descent3/newui.h`/ |
| 45 | #include "multi_dll_mgr.h"cxx . . $ `<file>/Descent3/multi_dll_mgr.h`/ |
| 46 | #include "controls.h"cxx . . $ `<file>/Descent3/controls.h`/ |
| 47 | #include "gameloop.h"cxx . . $ `<file>/Descent3/gameloop.h`/ |
| 48 | #include "gamesequence.h"cxx . . $ `<file>/Descent3/gamesequence.h`/ |
| 49 | #include "dedicated_server.h"cxx . . $ `<file>/lib/dedicated_server.h`/ |
| 50 | #include "attach.h"cxx . . $ `<file>/Descent3/attach.h`/ |
| 51 | #include "PilotPicsAPI.h"cxx . . $ `<file>/Descent3/PilotPicsAPI.h`/ |
| 52 | #include "vclip.h"cxx . . $ `<file>/Descent3/vclip.h`/ |
| 53 | #include "osiris_dll.h"cxx . . $ `<file>/Descent3/osiris_dll.h`/ |
| 54 | #include "manage.h"cxx . . $ `<file>/lib/manage.h`/ |
| 55 | #include "physics.h"cxx . . $ `<file>/physics/physics.h`/ |
| 56 | #include "collide.h"cxx . . $ `<file>/physics/collide.h`/ |
| 57 | #include "render.h"cxx . . $ `<file>/Descent3/render.h`/ |
| 58 | #include "audiotaunts.h"cxx . . $ `<file>/Descent3/audiotaunts.h`/ |
| 59 | #include "polymodel.h"cxx . . $ `<file>/model/polymodel.h`/ |
| 60 | #include "osiris_share.h"cxx . . $ `<file>/Descent3/osiris_share.h`/ |
| 61 | #include "viseffect.h"cxx . . $ `<file>/Descent3/viseffect.h`/ |
| 62 | #include "ObjScript.h"cxx . . $ `<file>/Descent3/ObjScript.h`/ |
| 63 | #include "args.h"cxx . . $ `<file>/Descent3/args.h`/ |
| 64 | |
| 65 | #include <algorithm> |
| 66 | |
| 67 | void SelectNextCameraViewcxx . . $ SelectNextCameraView(d4f767463ce0a6b3).(int window); |
| 68 | #define NUM_CAMERA_VIEWScxx . . $ `Descent3/Game2DLL.cpp:68:9`! 3 |
| 69 | extern int Camera_view_modecxx . . $ Camera_view_mode.[NUM_CAMERA_VIEWScxx . . $ `Descent3/Game2DLL.cpp:68:9`!]; |
| 70 | |
| 71 | // Osiris_CreateModuleInitStruct |
| 72 | // Purpose: |
| 73 | // This function initializes a Module Init Struct with all the needed data to get sent |
| 74 | // to the module during initialization. |
| 75 | extern void Osiris_CreateModuleInitStructcxx . . $ Osiris_CreateModuleInitStruct(5a9437a4d944b175).(tOSIRISModuleInitcxx . . $ tOSIRISModuleInit# *mi); |
| 76 | modulecxx . . $ module# GameDLLHandlecxx . . $ GameDLLHandle. = {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 77 | extern ddgr_colorcxx . . $ ddgr_color# Player_colorscxx . . $ Player_colors.[]; |
| 78 | struct game_apicxx . . $ game_api# { |
| 79 | int *objscxx . . $ game_api#objs.; |
| 80 | int *roomscxx . . $ game_api#rooms.; |
| 81 | int *terraincxx . . $ game_api#terrain.; |
| 82 | int *playerscxx . . $ game_api#players.; |
| 83 | int *netgamecxx . . $ game_api#netgame.; |
| 84 | int *netplayerscxx . . $ game_api#netplayers.; |
| 85 | int *shipscxx . . $ game_api#ships.; |
| 86 | int *weaponscxx . . $ game_api#weapons.; |
| 87 | int *Current_missioncxx . . $ game_api#Current_mission.; |
| 88 | int *GameTexturescxx . . $ game_api#GameTextures.; |
| 89 | int *GameVClipscxx . . $ game_api#GameVClips.; |
| 90 | int *fpcxx . . $ game_api#fp.[450]; // function pointers |
| 91 | int *vpcxx . . $ game_api#vp.[50]; // variable pointers |
| 92 | tOSIRISModuleInitcxx . . $ tOSIRISModuleInit# *osiris_functionscxx . . $ game_api#osiris_functions.; |
| 93 | }; |
| 94 | // The exported DLL function call prototypes |
| 95 | #if defined(POSIXcxx . . $ `<built-in>:480:9`!) |
| 96 | typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLGameCall_fpcxx . . $ DLLGameCall_fp#)(int eventnum, dllinfocxx . . $ dllinfo# *data); |
| 97 | typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLGameInit_fpcxx . . $ DLLGameInit_fp#)(int *api_func, uint8_tcxx . . $ uint8_t# *all_ok, int num_teams_to_use); |
| 98 | typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLGameClose_fpcxx . . $ DLLGameClose_fp#)(); |
| 99 | typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLGameGetName_fpcxx . . $ DLLGameGetName_fp#)(char *buffer, int maxsize); |
| 100 | typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLGameGetDesc_fpcxx . . $ DLLGameGetDesc_fp#)(char **buffer, int maxsize, int lines); |
| 101 | typedef void DLLFUNCCALLcxx . . $ `lib/module.h:93:10`! (*DLLGetGameInfo_fpcxx . . $ DLLGetGameInfo_fp#)(tDLLOptionscxx . . $ tDLLOptions# *options); |
| 102 | #else |
| 103 | typedef void(DLLFUNCCALL *DLLGameCall_fp)(int eventnum, dllinfo *data); |
| 104 | typedef void(DLLFUNCCALL *DLLGameInit_fp)(int *api_func, uint8_t *all_ok, int num_teams_to_use); |
| 105 | typedef void(DLLFUNCCALL *DLLGameClose_fp)(); |
| 106 | typedef void(DLLFUNCCALL *DLLGameGetName_fp)(char *buffer, int maxsize); |
| 107 | typedef void(DLLFUNCCALL *DLLGameGetDesc_fp)(char **buffer, int maxsize, int lines); |
| 108 | typedef void(DLLFUNCCALL *DLLGetGameInfo_fp)(tDLLOptions *options); |
| 109 | #endif |
| 110 | DLLGameCall_fpcxx . . $ DLLGameCall_fp# DLLGameCallcxx . . $ DLLGameCall. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 111 | DLLGameInit_fpcxx . . $ DLLGameInit_fp# DLLGameInitcxx . . $ DLLGameInit. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 112 | DLLGameClose_fpcxx . . $ DLLGameClose_fp# DLLGameClosecxx . . $ DLLGameClose. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 113 | DLLGetGameInfo_fpcxx . . $ DLLGetGameInfo_fp# DLLGetGameInfocxx . . $ DLLGetGameInfo. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 114 | dllinfocxx . . $ dllinfo# DLLInfocxx . . $ DLLInfo.; |
| 115 | tOSIRISModuleInitcxx . . $ tOSIRISModuleInit# Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs.; |
| 116 | char Multi_game_dll_namecxx . . $ Multi_game_dll_name.[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2]; |
| 117 | |
| 118 | static void DUMMYrend_DrawScaledBitmapcxx . . $ DUMMYrend_DrawScaledBitmap(79241d7be397897d).(int x1, int y1, int x2, int y2, int bm, float u0, float v0, float u1, float v1, |
| 119 | float zval, int color, float *alphas) { |
| 120 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(zval >= 0.0f && zval <= 1.0f); |
| 121 | rend_DrawScaledBitmapcxx . . $ rend_DrawScaledBitmap(bffd21ce5f93b71b).(x1, y1, x2, y2, bm, u0, v0, u1, v1, color, alphas); |
| 122 | } |
| 123 | |
| 124 | void GetGameAPIcxx . . $ GetGameAPI(623ae1cf9b609180).(game_apicxx . . $ game_api# *api) { |
| 125 | api->objscxx . . $ game_api#objs. = (int *)Objectscxx . . $ Objects.; |
| 126 | api->roomscxx . . $ game_api#rooms. = (int *)Roomscxx . . $ Rooms.; |
| 127 | api->terraincxx . . $ game_api#terrain. = (int *)Terrain_segcxx . . $ Terrain_seg.; |
| 128 | api->playerscxx . . $ game_api#players. = (int *)Playerscxx . . $ Players.; |
| 129 | api->netgamecxx . . $ game_api#netgame. = (int *)&Netgamecxx . . $ Netgame.; |
| 130 | api->netplayerscxx . . $ game_api#netplayers. = (int *)&NetPlayerscxx . . $ NetPlayers.; |
| 131 | api->shipscxx . . $ game_api#ships. = (int *)&Shipscxx . . $ Ships.; |
| 132 | api->weaponscxx . . $ game_api#weapons. = (int *)&Weaponscxx . . $ Weapons.; |
| 133 | api->Current_missioncxx . . $ game_api#Current_mission. = (int *)&Current_missioncxx . . $ Current_mission.; |
| 134 | api->GameTexturescxx . . $ game_api#GameTextures. = (int *)GameTexturescxx . . $ GameTextures.; |
| 135 | api->GameVClipscxx . . $ game_api#GameVClips. = (int *)GameVClipscxx . . $ GameVClips.; |
| 136 | |
| 137 | // Fill in function pointers here. The order here must match the order on the |
| 138 | // DLL side (dmfcbase.cpp) |
| 139 | |
| 140 | api->fpcxx . . $ game_api#fp.[0] = (int *)AddHUDMessagecxx . . $ AddHUDMessage(f90d95ab21fd6d97).; |
| 141 | api->fpcxx . . $ game_api#fp.[1] = (int *)MultiSendClientExecuteDLLcxx . . $ MultiSendClientExecuteDLL(cff815c6df1ba97c).; |
| 142 | api->fpcxx . . $ game_api#fp.[2] = (int *)FindObjectIDNamecxx . . $ FindObjectIDName(5c4306d8553b3696).; |
| 143 | api->fpcxx . . $ game_api#fp.[3] = (int *)GetGoalRoomForTeamcxx . . $ GetGoalRoomForTeam(7864480464b09eea).; |
| 144 | api->fpcxx . . $ game_api#fp.[4] = (int *)SetMaxTeamscxx . . $ SetMaxTeams(d4f767463ce0a6b3).; |
| 145 | api->fpcxx . . $ game_api#fp.[5] = (int *)ComputeRoomCentercxx . . $ ComputeRoomCenter(e48cdaa0374a2a1d).; |
| 146 | api->fpcxx . . $ game_api#fp.[6] = (int *)ObjCreatecxx . . $ ObjCreate(849c3da80a4f387f).; |
| 147 | api->fpcxx . . $ game_api#fp.[7] = (int *)MultiSendObjectcxx . . $ MultiSendObject(d7354c60e612ede5).; |
| 148 | api->fpcxx . . $ game_api#fp.[8] = (int *)MultiPaintGoalRoomscxx . . $ MultiPaintGoalRooms(11b0e290e57a7e53).; |
| 149 | api->fpcxx . . $ game_api#fp.[9] = (int *)MultiSendSpecialPacketcxx . . $ MultiSendSpecialPacket(dde21517a502ab05).; |
| 150 | api->fpcxx . . $ game_api#fp.[10] = (int *)IncTeamScorecxx . . $ IncTeamScore(9b79fb6aee4c0440).; |
| 151 | api->fpcxx . . $ game_api#fp.[11] = (int *)MonoPrintfcxx . . $ MonoPrintf(26800c7917ec8ef2).; |
| 152 | api->fpcxx . . $ game_api#fp.[12] = (int *)ObjSetPoscxx . . $ ObjSetPos(bbb518390bedd509).; |
| 153 | api->fpcxx . . $ game_api#fp.[13] = (int *)InvCheckItemcxx . . $ InvCheckItem(1432650661211742).; |
| 154 | api->fpcxx . . $ game_api#fp.[14] = (int *)InvAddTypeIDcxx . . $ InvAddTypeID(6580048bba52c434).; |
| 155 | api->fpcxx . . $ game_api#fp.[15] = (int *)InvRemovecxx . . $ InvRemove(1432650661211742).; |
| 156 | api->fpcxx . . $ game_api#fp.[16] = (int *)PlayerSetLightingcxx . . $ PlayerSetLighting(c31bc224e645f73e).; |
| 157 | api->fpcxx . . $ game_api#fp.[17] = (int *)FindShipNamecxx . . $ FindShipName(5c4306d8553b3696).; |
| 158 | api->fpcxx . . $ game_api#fp.[18] = (int *)PlayerSetRotatingBallcxx . . $ PlayerSetRotatingBall(1b6f5b7544e9c30d).; |
| 159 | api->fpcxx . . $ game_api#fp.[19] = (int *)ChangePlayerShipIndexcxx . . $ ChangePlayerShipIndex(3e454b8ccf442868).; |
| 160 | api->fpcxx . . $ game_api#fp.[20] = (int *)InvGetTypeIDCountcxx . . $ InvGetTypeIDCount(2326284602b0bb2d).; |
| 161 | api->fpcxx . . $ game_api#fp.[21] = (int *)D3W_Play3dSoundcxx . . $ D3W_Play3dSound(eb9e5361a7e3f0cb).; |
| 162 | api->fpcxx . . $ game_api#fp.[22] = (int *)FindSoundNamecxx . . $ FindSoundName(5c4306d8553b3696).; |
| 163 | api->fpcxx . . $ game_api#fp.[23] = (int *)SpewCreatecxx . . $ SpewCreate(a164fa5b42524a40).; |
| 164 | api->fpcxx . . $ game_api#fp.[24] = (int *)SpewClearEventcxx . . $ SpewClearEvent(918ebd27a9ddbad3).; |
| 165 | api->fpcxx . . $ game_api#fp.[25] = (int *)bm_AllocLoadFileBitmapcxx . . $ bm_AllocLoadFileBitmap(1163be050dbfff7).; |
| 166 | api->fpcxx . . $ game_api#fp.[26] = (int *)bm_FreeBitmapcxx . . $ bm_FreeBitmap(d4f767463ce0a6b3).; |
| 167 | api->fpcxx . . $ game_api#fp.[27] = (int *)DUMMYrend_DrawScaledBitmapcxx . . $ DUMMYrend_DrawScaledBitmap(79241d7be397897d).; |
| 168 | api->fpcxx . . $ game_api#fp.[28] = (int *)grtext_Printfcxx . . $ grtext_Printf(9514e36549094170).; |
| 169 | api->fpcxx . . $ game_api#fp.[29] = (int *)grtext_Flushcxx . . $ grtext_Flush(49f6e7a06ebc5aa8).; |
| 170 | api->fpcxx . . $ game_api#fp.[30] = (int *)grtext_SetColorcxx . . $ grtext_SetColor(cb2f890c2fdad230).; |
| 171 | api->fpcxx . . $ game_api#fp.[31] = (int *)grtext_SetFancyColorcxx . . $ grtext_SetFancyColor(eda338842932bf2b).; |
| 172 | api->fpcxx . . $ game_api#fp.[32] = (int *)grtext_SetAlphacxx . . $ grtext_SetAlpha(ac50b47256ae7414).; |
| 173 | api->fpcxx . . $ game_api#fp.[33] = (int *)grtext_GetAlphacxx . . $ grtext_GetAlpha(7c4be072098b358f).; |
| 174 | api->fpcxx . . $ game_api#fp.[34] = (int *)grtext_SetFontcxx . . $ grtext_SetFont(d4f767463ce0a6b3).; |
| 175 | api->fpcxx . . $ game_api#fp.[35] = (int *)grtext_GetFontcxx . . $ grtext_GetFont(b126dc7c1de90089).; |
| 176 | api->fpcxx . . $ game_api#fp.[36] = (int *)grtext_GetTextLineWidthcxx . . $ grtext_GetTextLineWidth(5c4306d8553b3696).; |
| 177 | api->fpcxx . . $ game_api#fp.[37] = (int *)grfont_GetHeightcxx . . $ grfont_GetHeight(7864480464b09eea).; |
| 178 | api->fpcxx . . $ game_api#fp.[38] = (int *)grtext_CenteredPrintfcxx . . $ grtext_CenteredPrintf(9514e36549094170).; |
| 179 | api->fpcxx . . $ game_api#fp.[39] = (int *)AddColoredHUDMessagecxx . . $ AddColoredHUDMessage(7778decf30f5fc42).; |
| 180 | api->fpcxx . . $ game_api#fp.[40] = (int *)bm_wcxx . . $ bm_w(9b79fb6aee4c0440).; |
| 181 | api->fpcxx . . $ game_api#fp.[41] = (int *)bm_hcxx . . $ bm_h(9b79fb6aee4c0440).; |
| 182 | api->fpcxx . . $ game_api#fp.[42] = (int *)rend_DrawSimpleBitmapcxx . . $ rend_DrawSimpleBitmap(b1146eedae1e1d0b).; |
| 183 | api->fpcxx . . $ game_api#fp.[43] = (int *)MultiClientSendSpecialPacketcxx . . $ MultiClientSendSpecialPacket(fc0f0e1646c32816).; |
| 184 | api->fpcxx . . $ game_api#fp.[44] = (int *)AddBlinkingHUDMessagecxx . . $ AddBlinkingHUDMessage(f90d95ab21fd6d97).; |
| 185 | api->fpcxx . . $ game_api#fp.[45] = (int *)InvResetcxx . . $ InvReset(918ebd27a9ddbad3).; |
| 186 | api->fpcxx . . $ game_api#fp.[46] = (int *)AddHUDItemcxx . . $ AddHUDItem(c7a20e4e05358911).; |
| 187 | api->fpcxx . . $ game_api#fp.[47] = (int *)RenderHUDQuadcxx . . $ RenderHUDQuad(fc69324a5ac6b910).; |
| 188 | api->fpcxx . . $ game_api#fp.[48] = (int *)RenderHUDTextcxx . . $ RenderHUDText(e69f8330415a42f1).; |
| 189 | api->fpcxx . . $ game_api#fp.[49] = (int *)MultiEndLevelcxx . . $ MultiEndLevel(49f6e7a06ebc5aa8).; |
| 190 | api->fpcxx . . $ game_api#fp.[50] = (int *)bm_datacxx . . $ bm_data(501e1bc9f482c6bd).; |
| 191 | api->fpcxx . . $ game_api#fp.[51] = (int *)bm_AllocBitmapcxx . . $ bm_AllocBitmap(2326284602b0bb2d).; |
| 192 | api->fpcxx . . $ game_api#fp.[52] = (int *)rend_FillRectcxx . . $ rend_FillRect(fe09a4b73d8d396f).; |
| 193 | api->fpcxx . . $ game_api#fp.[53] = (int *)bm_CreateChunkedBitmapcxx . . $ bm_CreateChunkedBitmap(b9fa1b176cbdfaf1).; |
| 194 | api->fpcxx . . $ game_api#fp.[54] = (int *)bm_DestroyChunkedBitmapcxx . . $ bm_DestroyChunkedBitmap(1635f60f4d3c1317).; |
| 195 | api->fpcxx . . $ game_api#fp.[55] = (int *)rend_DrawChunkedBitmapcxx . . $ rend_DrawChunkedBitmap(529c7906ea1e7bf7).; |
| 196 | api->fpcxx . . $ game_api#fp.[56] = (int *)rend_DrawScaledChunkedBitmapcxx . . $ rend_DrawScaledChunkedBitmap(a8bf607edbcedb63).; |
| 197 | api->fpcxx . . $ game_api#fp.[57] = (int *)OpenCFILEcxx . . $ OpenCFILE(8b9fe21fada90ed7).; |
| 198 | api->fpcxx . . $ game_api#fp.[58] = (int *)cfclosecxx . . $ cfclose(3639e799710acb68).; |
| 199 | api->fpcxx . . $ game_api#fp.[59] = (int *)cfeofcxx . . $ cfeof(413716a422df0036).; |
| 200 | api->fpcxx . . $ game_api#fp.[60] = (int *)cfexistcxx . . $ cfexist(293b0826c8d9cb54).; |
| 201 | api->fpcxx . . $ game_api#fp.[61] = (int *)cf_ReadBytescxx . . $ cf_ReadBytes(de6325ef3380a744).; |
| 202 | api->fpcxx . . $ game_api#fp.[62] = (int *)cf_ReadIntcxx . . $ cf_ReadInt(d60d6f5e30f0c96a).; |
| 203 | api->fpcxx . . $ game_api#fp.[63] = (int *)cf_ReadShortcxx . . $ cf_ReadShort(30b00389b433b379).; |
| 204 | api->fpcxx . . $ game_api#fp.[64] = (int *)cf_ReadBytecxx . . $ cf_ReadByte(dcbbf0b0e13758ec).; |
| 205 | api->fpcxx . . $ game_api#fp.[65] = (int *)cf_ReadFloatcxx . . $ cf_ReadFloat(9a03a00aead0d542).; |
| 206 | api->fpcxx . . $ game_api#fp.[66] = (int *)cf_ReadDoublecxx . . $ cf_ReadDouble(96e019f41f67302c).; |
| 207 | api->fpcxx . . $ game_api#fp.[67] = (int *)cf_ReadStringcxx . . $ cf_ReadString(38cd788e4423eff6).; |
| 208 | api->fpcxx . . $ game_api#fp.[68] = (int *)cf_WriteBytescxx . . $ cf_WriteBytes(b35058f74b39c3a6).; |
| 209 | api->fpcxx . . $ game_api#fp.[69] = (int *)cf_WriteStringcxx . . $ cf_WriteString(643e1411966bd56c).; |
| 210 | api->fpcxx . . $ game_api#fp.[70] = (int *)cf_WriteIntcxx . . $ cf_WriteInt(966989f25543eb13).; |
| 211 | api->fpcxx . . $ game_api#fp.[71] = (int *)cf_WriteShortcxx . . $ cf_WriteShort(d7cf1a05aca96fe5).; |
| 212 | api->fpcxx . . $ game_api#fp.[72] = (int *)cf_WriteBytecxx . . $ cf_WriteByte(17377ebd5835367f).; |
| 213 | api->fpcxx . . $ game_api#fp.[73] = (int *)cf_WriteFloatcxx . . $ cf_WriteFloat(c51c6cf5f6d5270c).; |
| 214 | api->fpcxx . . $ game_api#fp.[74] = (int *)cf_WriteDoublecxx . . $ cf_WriteDouble(a93307bf66375cef).; |
| 215 | api->fpcxx . . $ game_api#fp.[75] = (int *)cf_CopyFilecxx . . $ cf_CopyFile(773c05b60430b9f6).; |
| 216 | api->fpcxx . . $ game_api#fp.[76] = (int *)cf_Diffcxx . . $ cf_Diff(1b1fb50d0437e4a5).; |
| 217 | api->fpcxx . . $ game_api#fp.[77] = (int *)MultiDisconnectPlayercxx . . $ MultiDisconnectPlayer(d4f767463ce0a6b3).; |
| 218 | api->fpcxx . . $ game_api#fp.[78] = (int *)nw_GetNumbersFromHostAddresscxx . . $ nw_GetNumbersFromHostAddress(29331e2dd3eba175).; |
| 219 | api->fpcxx . . $ game_api#fp.[79] = (int *)nw_GetThisIPcxx . . $ nw_GetThisIP(db52760e79bf9054).; |
| 220 | api->fpcxx . . $ game_api#fp.[80] = (int *)CreateStringTablecxx . . $ CreateStringTable(c1b497ce97e7b78).; |
| 221 | api->fpcxx . . $ game_api#fp.[81] = (int *)DestroyStringTablecxx . . $ DestroyStringTable(a50bc8ce1fe710a2).; |
| 222 | api->fpcxx . . $ game_api#fp.[82] = (int *)RenderHUDTextFlagscxx . . $ RenderHUDTextFlags(15b906afa0252220).; |
| 223 | api->fpcxx . . $ game_api#fp.[83] = (int *)PlayerSpewInventorycxx . . $ PlayerSpewInventory(80a724877f6428f2).; |
| 224 | api->fpcxx . . $ game_api#fp.[84] = (int *)PlayerSetHUDNameFOVcxx . . $ PlayerSetHUDNameFOV(d4f767463ce0a6b3).; |
| 225 | api->fpcxx . . $ game_api#fp.[85] = (int *)GetUltimateParentForObjectcxx . . $ GetUltimateParentForObject(a22b5da94f20d523).; |
| 226 | api->fpcxx . . $ game_api#fp.[86] = (int *)SetObjectDeadFlagDLLcxx . . $ SetObjectDeadFlagDLL(80a724877f6428f2).; |
| 227 | api->fpcxx . . $ game_api#fp.[87] = (int *)DLLFatalErrorcxx . . $ DLLFatalError(85c52e162fed56f9).; |
| 228 | api->fpcxx . . $ game_api#fp.[88] = (int *)assertdllcxx . . $ assertdll(1b1f57aaeb769edb).; |
| 229 | api->fpcxx . . $ game_api#fp.[89] = (int *)MultiMatchWeaponcxx . . $ MultiMatchWeapon(4c679297bf94b9eb).; |
| 230 | api->fpcxx . . $ game_api#fp.[90] = (int *)MultiGetMatchChecksumcxx . . $ MultiGetMatchChecksum(58c590d1186ea715).; |
| 231 | api->fpcxx . . $ game_api#fp.[91] = (int *)FindWeaponNamecxx . . $ FindWeaponName(5c4306d8553b3696).; |
| 232 | api->fpcxx . . $ game_api#fp.[92] = (int *)cf_OpenLibrarycxx . . $ cf_OpenLibrary(293b0826c8d9cb54).; |
| 233 | api->fpcxx . . $ game_api#fp.[93] = (int *)cf_CloseLibrarycxx . . $ cf_CloseLibrary(d4f767463ce0a6b3).; |
| 234 | api->fpcxx . . $ game_api#fp.[94] = (int *)MultiSendRequestToObservecxx . . $ MultiSendRequestToObserve(b1146eedae1e1d0b).; |
| 235 | api->fpcxx . . $ game_api#fp.[95] = (int *)FindTextureNamecxx . . $ FindTextureName(5c4306d8553b3696).; |
| 236 | api->fpcxx . . $ game_api#fp.[96] = (int *)ApplyDamageToPlayercxx . . $ ApplyDamageToPlayer(1fbfa7277d8ac7b4).; |
| 237 | api->fpcxx . . $ game_api#fp.[97] = (int *)MultiMatchGenericcxx . . $ MultiMatchGeneric(4c679297bf94b9eb).; |
| 238 | api->fpcxx . . $ game_api#fp.[98] = (int *)SetUITextItemTextcxx . . $ SetUITextItemText(ee114b9bb7b54720).; |
| 239 | api->fpcxx . . $ game_api#fp.[99] = (int *)NewUIWindowCreatecxx . . $ NewUIWindowCreate(76d7789468b01f1d).; |
| 240 | api->fpcxx . . $ game_api#fp.[100] = (int *)NewUIWindowDestroycxx . . $ NewUIWindowDestroy(488f24e0e2cc986e).; |
| 241 | api->fpcxx . . $ game_api#fp.[101] = (int *)NewUIWindowOpencxx . . $ NewUIWindowOpen(488f24e0e2cc986e).; |
| 242 | api->fpcxx . . $ game_api#fp.[102] = (int *)NewUIWindowClosecxx . . $ NewUIWindowClose(488f24e0e2cc986e).; |
| 243 | api->fpcxx . . $ game_api#fp.[103] = (int *)TextCreatecxx . . $ TextCreate(d84f16cfa0f2f434).; |
| 244 | api->fpcxx . . $ game_api#fp.[104] = (int *)EditCreatecxx . . $ EditCreate(dc9115cd522defea).; |
| 245 | api->fpcxx . . $ game_api#fp.[105] = (int *)ButtonCreatecxx . . $ ButtonCreate(2e17589279eb4159).; |
| 246 | api->fpcxx . . $ game_api#fp.[106] = (int *)ListCreatecxx . . $ ListCreate(dc9115cd522defea).; |
| 247 | api->fpcxx . . $ game_api#fp.[107] = (int *)ListRemoveAllcxx . . $ ListRemoveAll(fcba45fc1ebcb8ea).; |
| 248 | api->fpcxx . . $ game_api#fp.[108] = (int *)ListAddItemcxx . . $ ListAddItem(3a3c474e41982a6c).; |
| 249 | api->fpcxx . . $ game_api#fp.[109] = (int *)ListRemoveItemcxx . . $ ListRemoveItem(3a3c474e41982a6c).; |
| 250 | api->fpcxx . . $ game_api#fp.[110] = (int *)ListSelectItemcxx . . $ ListSelectItem(3a3c474e41982a6c).; |
| 251 | api->fpcxx . . $ game_api#fp.[111] = (int *)ListGetItemcxx . . $ ListGetItem(5cae7221e1e66c1a).; |
| 252 | api->fpcxx . . $ game_api#fp.[112] = (int *)ListGetSelectedIndexcxx . . $ ListGetSelectedIndex(ad4162047d52fa6e).; |
| 253 | api->fpcxx . . $ game_api#fp.[113] = (int *)EditSetTextcxx . . $ EditSetText(32f521072cbd7203).; |
| 254 | api->fpcxx . . $ game_api#fp.[114] = (int *)EditGetTextcxx . . $ EditGetText(fb5eddf017e01723).; |
| 255 | api->fpcxx . . $ game_api#fp.[115] = (int *)DoUIcxx . . $ DoUI(b126dc7c1de90089).; |
| 256 | api->fpcxx . . $ game_api#fp.[116] = (int *)DoMessageBoxcxx . . $ DoMessageBox(dcc99837539e9edc).; |
| 257 | api->fpcxx . . $ game_api#fp.[117] = (int *)DescentDefercxx . . $ DescentDefer(49f6e7a06ebc5aa8).; |
| 258 | api->fpcxx . . $ game_api#fp.[118] = (int *)NewUIGameWindowCreatecxx . . $ NewUIGameWindowCreate(76d7789468b01f1d).; |
| 259 | api->fpcxx . . $ game_api#fp.[119] = (int *)NewUIGameWindowDestroycxx . . $ NewUIGameWindowDestroy(17abec7eb822a749).; |
| 260 | api->fpcxx . . $ game_api#fp.[120] = (int *)NewUIGameWindowOpencxx . . $ NewUIGameWindowOpen(17abec7eb822a749).; |
| 261 | api->fpcxx . . $ game_api#fp.[121] = (int *)NewUIGameWindowClosecxx . . $ NewUIGameWindowClose(17abec7eb822a749).; |
| 262 | api->fpcxx . . $ game_api#fp.[122] = (int *)HotSpotCreatecxx . . $ HotSpotCreate(c0fba4599935b27e).; |
| 263 | api->fpcxx . . $ game_api#fp.[123] = (int *)PollUIcxx . . $ PollUI(b126dc7c1de90089).; |
| 264 | api->fpcxx . . $ game_api#fp.[124] = (int *)RemoveUITextItemcxx . . $ RemoveUITextItem(5d22bdacc48458e8).; |
| 265 | api->fpcxx . . $ game_api#fp.[125] = (int *)CreateNewUITextItemcxx . . $ CreateNewUITextItem(265f30871222eac8).; |
| 266 | api->fpcxx . . $ game_api#fp.[126] = (int *)UIConsoleGadgetCreatecxx . . $ UIConsoleGadgetCreate(a14cc48659c6db1c).; |
| 267 | api->fpcxx . . $ game_api#fp.[127] = (int *)UIConsoleGadgetputscxx . . $ UIConsoleGadgetputs(451ab6a730b562ff).; |
| 268 | api->fpcxx . . $ game_api#fp.[128] = (int *)NewUIWindowSetFocusOnEditGadgetcxx . . $ NewUIWindowSetFocusOnEditGadget(57798f7f932dfa81).; |
| 269 | api->fpcxx . . $ game_api#fp.[129] = (int *)OldEditCreatecxx . . $ OldEditCreate(dc9115cd522defea).; |
| 270 | api->fpcxx . . $ game_api#fp.[130] = (int *)OldListCreatecxx . . $ OldListCreate(dc9115cd522defea).; |
| 271 | api->fpcxx . . $ game_api#fp.[131] = (int *)OldListRemoveAllcxx . . $ OldListRemoveAll(fcba45fc1ebcb8ea).; |
| 272 | api->fpcxx . . $ game_api#fp.[132] = (int *)OldListAddItemcxx . . $ OldListAddItem(3a3c474e41982a6c).; |
| 273 | api->fpcxx . . $ game_api#fp.[133] = (int *)OldListRemoveItemcxx . . $ OldListRemoveItem(3a3c474e41982a6c).; |
| 274 | api->fpcxx . . $ game_api#fp.[134] = (int *)OldListSelectItemcxx . . $ OldListSelectItem(3a3c474e41982a6c).; |
| 275 | api->fpcxx . . $ game_api#fp.[135] = (int *)OldListGetItemcxx . . $ OldListGetItem(5cae7221e1e66c1a).; |
| 276 | api->fpcxx . . $ game_api#fp.[136] = (int *)OldListGetSelectedIndexcxx . . $ OldListGetSelectedIndex(ad4162047d52fa6e).; |
| 277 | api->fpcxx . . $ game_api#fp.[137] = (int *)OldEditSetTextcxx . . $ OldEditSetText(5bf538048a323648).; |
| 278 | api->fpcxx . . $ game_api#fp.[138] = (int *)OldEditGetTextcxx . . $ OldEditGetText(d7408c567151c92e).; |
| 279 | api->fpcxx . . $ game_api#fp.[139] = (int *)ToggleUICallbackcxx . . $ ToggleUICallback(d4f767463ce0a6b3).; |
| 280 | api->fpcxx . . $ game_api#fp.[140] = (int *)SetOldEditBufferLencxx . . $ SetOldEditBufferLen(526e54c5ffa2af90).; |
| 281 | api->fpcxx . . $ game_api#fp.[141] = (int *)NewUIWindowLoadBackgroundImagecxx . . $ NewUIWindowLoadBackgroundImage(a519a360beb3a806).; |
| 282 | api->fpcxx . . $ game_api#fp.[142] = (int *)DeleteUIItemcxx . . $ DeleteUIItem(5d22bdacc48458e8).; |
| 283 | api->fpcxx . . $ game_api#fp.[143] = (int *)HotSpotSetStatescxx . . $ HotSpotSetStates(586da350ab5f7284).; |
| 284 | api->fpcxx . . $ game_api#fp.[144] = (int *)SetUICallbackcxx . . $ SetUICallback(964b12a25712bdc3).; |
| 285 | api->fpcxx . . $ game_api#fp.[145] = (int *)RetrieveUICallbackcxx . . $ RetrieveUICallback(539e082cf00e1f43).; |
| 286 | api->fpcxx . . $ game_api#fp.[146] = (int *)SuspendControlscxx . . $ SuspendControls(49f6e7a06ebc5aa8).; |
| 287 | api->fpcxx . . $ game_api#fp.[147] = (int *)ResumeControlscxx . . $ ResumeControls(49f6e7a06ebc5aa8).; |
| 288 | api->fpcxx . . $ game_api#fp.[148] = (int *)ui_ShowCursorcxx . . $ ui_ShowCursor(c9857a73d68e59ba).; |
| 289 | api->fpcxx . . $ game_api#fp.[149] = (int *)ui_HideCursorcxx . . $ ui_HideCursor(c9857a73d68e59ba).; |
| 290 | api->fpcxx . . $ game_api#fp.[150] = (int *)GameFramecxx . . $ GameFrame(49f6e7a06ebc5aa8).; |
| 291 | api->fpcxx . . $ game_api#fp.[151] = (int *)PrintDedicatedMessagecxx . . $ PrintDedicatedMessage(326aeb464d16410c).; |
| 292 | api->fpcxx . . $ game_api#fp.[152] = (int *)ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).; |
| 293 | api->fpcxx . . $ game_api#fp.[153] = (int *)ddio_SplitPathcxx . . $ ddio_SplitPath(b05ba7ab99603c07).; |
| 294 | api->fpcxx . . $ game_api#fp.[154] = (int *)D3W_Play2dSoundcxx . . $ D3W_Play2dSound(85d2224b692a43c3).; |
| 295 | api->fpcxx . . $ game_api#fp.[155] = (int *)D3W_TouchSoundcxx . . $ D3W_TouchSound(d4f767463ce0a6b3).; |
| 296 | api->fpcxx . . $ game_api#fp.[156] = (int *)dDatabaseRead1cxx . . $ dDatabaseRead1(3bcbb53201fcdcb8).; |
| 297 | api->fpcxx . . $ game_api#fp.[157] = (int *)dDatabaseRead2cxx . . $ dDatabaseRead2(340cb0a925eda13d).; |
| 298 | api->fpcxx . . $ game_api#fp.[158] = (int *)dDatabaseRead3cxx . . $ dDatabaseRead3(c1ce79fc3dc965f1).; |
| 299 | api->fpcxx . . $ game_api#fp.[159] = (int *)dDatabaseWrite1cxx . . $ dDatabaseWrite1(f827cee075336303).; |
| 300 | api->fpcxx . . $ game_api#fp.[160] = (int *)dDatabaseWrite2cxx . . $ dDatabaseWrite2(2551bed5d6fc04f6).; |
| 301 | api->fpcxx . . $ game_api#fp.[161] = (int *)dAttachObjectcxx . . $ dAttachObject(f6b18a350068acc8).; |
| 302 | api->fpcxx . . $ game_api#fp.[162] = (int *)dObjGetcxx . . $ dObjGet(5dbac99189234a88).; |
| 303 | api->fpcxx . . $ game_api#fp.[163] = (int *)ListSetSelectedIndexcxx . . $ ListSetSelectedIndex(7c3831b64a90417).; |
| 304 | api->fpcxx . . $ game_api#fp.[164] = (int *)RemoveUIBmpItemcxx . . $ RemoveUIBmpItem(5d22bdacc48458e8).; |
| 305 | api->fpcxx . . $ game_api#fp.[165] = (int *)CreateNewUIBmpItemcxx . . $ CreateNewUIBmpItem(a331bfa9aba4cd9d).; |
| 306 | api->fpcxx . . $ game_api#fp.[166] = (int *)GetUIItemWidthcxx . . $ GetUIItemWidth(dedf1e9b1c614a07).; |
| 307 | api->fpcxx . . $ game_api#fp.[167] = (int *)GetUIItemHeightcxx . . $ GetUIItemHeight(dedf1e9b1c614a07).; |
| 308 | api->fpcxx . . $ game_api#fp.[168] = (int *)SliderCreatecxx . . $ SliderCreate(c523cb0d7b2eb40).; |
| 309 | api->fpcxx . . $ game_api#fp.[169] = (int *)SliderSetRangecxx . . $ SliderSetRange(b5ace6dd40cfcb4).; |
| 310 | api->fpcxx . . $ game_api#fp.[170] = (int *)SliderGetRangecxx . . $ SliderGetRange(83c9e7654e8a412e).; |
| 311 | api->fpcxx . . $ game_api#fp.[171] = (int *)SliderSetPoscxx . . $ SliderSetPos(b5ace6dd40cfcb4).; |
| 312 | api->fpcxx . . $ game_api#fp.[172] = (int *)SliderGetPoscxx . . $ SliderGetPos(83c9e7654e8a412e).; |
| 313 | api->fpcxx . . $ game_api#fp.[173] = (int *)SliderSetSelectChangeCallbackcxx . . $ SliderSetSelectChangeCallback(d7144a2c71be4d1).; |
| 314 | api->fpcxx . . $ game_api#fp.[174] = (int *)SliderSetSelectChangeCallbackWDatacxx . . $ SliderSetSelectChangeCallbackWData(93b30d159758dcb2).; |
| 315 | api->fpcxx . . $ game_api#fp.[175] = (int *)TextSetTitlecxx . . $ TextSetTitle(7d1fdf7ee91fa5be).; |
| 316 | api->fpcxx . . $ game_api#fp.[176] = (int *)PPic_GetPilotcxx . . $ PPic_GetPilot(c30de02759139238).; |
| 317 | api->fpcxx . . $ game_api#fp.[177] = (int *)PPic_GetBitmapHandlecxx . . $ PPic_GetBitmapHandle(377f6a3136964dac).; |
| 318 | api->fpcxx . . $ game_api#fp.[178] = (int *)rend_DrawLinecxx . . $ rend_DrawLine(748afa4755bc9595).; |
| 319 | api->fpcxx . . $ game_api#fp.[179] = (int *)rend_SetFlatColorcxx . . $ rend_SetFlatColor(cb2f890c2fdad230).; |
| 320 | api->fpcxx . . $ game_api#fp.[180] = (int *)MultiSetLogoStatecxx . . $ MultiSetLogoState(b45ddcbc8423892c).; |
| 321 | api->fpcxx . . $ game_api#fp.[181] = (int *)PlayerGetRandomStartPositioncxx . . $ PlayerGetRandomStartPosition(7864480464b09eea).; |
| 322 | api->fpcxx . . $ game_api#fp.[182] = (int *)InitPlayerNewShipcxx . . $ InitPlayerNewShip(3e454b8ccf442868).; |
| 323 | api->fpcxx . . $ game_api#fp.[183] = (int *)CheckBoxCreatecxx . . $ CheckBoxCreate(1098cf25cefcbd24).; |
| 324 | api->fpcxx . . $ game_api#fp.[184] = (int *)CheckBoxSetCheckcxx . . $ CheckBoxSetCheck(e6528bc9b3818265).; |
| 325 | api->fpcxx . . $ game_api#fp.[185] = (int *)CheckBoxIsCheckedcxx . . $ CheckBoxIsChecked(56ac38d13748a35d).; |
| 326 | api->fpcxx . . $ game_api#fp.[186] = (int *)nw_GetHostAddressFromNumberscxx . . $ nw_GetHostAddressFromNumbers(33ab057182e9f89d).; |
| 327 | api->fpcxx . . $ game_api#fp.[187] = (int *)mng_ClearAddonTablescxx . . $ mng_ClearAddonTables(49f6e7a06ebc5aa8).; |
| 328 | api->fpcxx . . $ game_api#fp.[188] = (int *)mng_SetAddonTablecxx . . $ mng_SetAddonTable(c6b7e35ff6de5671).; |
| 329 | api->fpcxx . . $ game_api#fp.[189] = (int *)DebugBreak_callback_stopcxx . . $ DebugBreak_callback_stop.; |
| 330 | api->fpcxx . . $ game_api#fp.[190] = (int *)DebugBreak_callback_resumecxx . . $ DebugBreak_callback_resume.; |
| 331 | api->fpcxx . . $ game_api#fp.[191] = (int *)Int3MessageBoxcxx . . $ Int3MessageBox(34d26762b42c433a).; |
| 332 | api->fpcxx . . $ game_api#fp.[192] = (int *)GetUIItemPositioncxx . . $ GetUIItemPosition(963a1ffce8afd46a).; |
| 333 | api->fpcxx . . $ game_api#fp.[193] = (int *)dAttachObjectRadiuscxx . . $ dAttachObjectRadius(45561ecb6c1b979f).; |
| 334 | api->fpcxx . . $ game_api#fp.[194] = (int *)dUnattachChildrencxx . . $ dUnattachChildren(39516aeee13ca5ab).; |
| 335 | api->fpcxx . . $ game_api#fp.[195] = (int *)dUnattachChildcxx . . $ dUnattachChild(9646b7081aeecba4).; |
| 336 | api->fpcxx . . $ game_api#fp.[196] = (int *)dUnattachFromParentcxx . . $ dUnattachFromParent(39516aeee13ca5ab).; |
| 337 | api->fpcxx . . $ game_api#fp.[197] = (int *)vm_GetMagnitudecxx . . $ vm_GetMagnitude(4939a7e530383cd4).; |
| 338 | api->fpcxx . . $ game_api#fp.[198] = (int *)vm_MatrixMulVectorcxx . . $ vm_MatrixMulVector(76352432a16beb64).; |
| 339 | api->fpcxx . . $ game_api#fp.[199] = (int *)phys_apply_forcecxx . . $ phys_apply_force(1d7af1ec00c1f7ea).; |
| 340 | api->fpcxx . . $ game_api#fp.[200] = (int *)phys_apply_rotcxx . . $ phys_apply_rot(835e87111e401cce).; |
| 341 | api->fpcxx . . $ game_api#fp.[201] = (int *)vm_TransposeMatrixcxx . . $ vm_TransposeMatrix(dca75c48c9ab5b54).; |
| 342 | api->fpcxx . . $ game_api#fp.[202] = (int *)vm_CrossProductcxx . . $ vm_CrossProduct(af83aca25ba5b41c).; |
| 343 | api->fpcxx . . $ game_api#fp.[203] = (int *)vm_NormalizeVectorcxx . . $ vm_NormalizeVector(4939a7e530383cd4).; |
| 344 | api->fpcxx . . $ game_api#fp.[204] = (int *)ConvertEulerToAxisAmountcxx . . $ ConvertEulerToAxisAmount(1430ddb085312116).; |
| 345 | api->fpcxx . . $ game_api#fp.[205] = (int *)ConvertAxisAmountToEulercxx . . $ ConvertAxisAmountToEuler(541fdd6f774327be).; |
| 346 | api->fpcxx . . $ game_api#fp.[206] = (int *)vm_GetMagnitudeFastcxx . . $ vm_GetMagnitudeFast(4939a7e530383cd4).; |
| 347 | api->fpcxx . . $ game_api#fp.[207] = (int *)vm_MakeIdentitycxx . . $ vm_MakeIdentity(dca75c48c9ab5b54).; |
| 348 | api->fpcxx . . $ game_api#fp.[208] = (int *)dvm_MakeZeroVectorcxx . . $ dvm_MakeZeroVector(ec8cf6451c36d470).; |
| 349 | api->fpcxx . . $ game_api#fp.[209] = (int *)dvm_MakeZeroAnglecxx . . $ dvm_MakeZeroAngle(7b076424e81684e7).; |
| 350 | api->fpcxx . . $ game_api#fp.[210] = (int *)vm_VectorMulTMatrixcxx . . $ vm_VectorMulTMatrix(76352432a16beb64).; |
| 351 | api->fpcxx . . $ game_api#fp.[211] = (int *)vm_MatrixMulcxx . . $ vm_MatrixMul(3d6e518f7ec8c77c).; |
| 352 | api->fpcxx . . $ game_api#fp.[212] = (int *)vm_MatrixMulTMatrixcxx . . $ vm_MatrixMulTMatrix(3d6e518f7ec8c77c).; |
| 353 | api->fpcxx . . $ game_api#fp.[213] = (int *)vm_DotProductcxx . . $ vm_DotProduct(e65d563e2b53cc54).; |
| 354 | api->fpcxx . . $ game_api#fp.[214] = (int *)vm_SubVectorscxx . . $ vm_SubVectors(24e6685d32847ac5).; |
| 355 | api->fpcxx . . $ game_api#fp.[215] = (int *)vm_AddVectorscxx . . $ vm_AddVectors(af83aca25ba5b41c).; |
| 356 | api->fpcxx . . $ game_api#fp.[216] = (int *)vm_AverageVectorcxx . . $ vm_AverageVector(86b7faebfcd459cf).; |
| 357 | api->fpcxx . . $ game_api#fp.[217] = (int *)vm_ScaleVectorcxx . . $ vm_ScaleVector(cfd0f9d897ccca3c).; |
| 358 | api->fpcxx . . $ game_api#fp.[218] = (int *)vm_ScaleAddVectorcxx . . $ vm_ScaleAddVector(6918b8b6b5338ad3).; |
| 359 | api->fpcxx . . $ game_api#fp.[219] = (int *)vm_DivVectorcxx . . $ vm_DivVector(cfd0f9d897ccca3c).; |
| 360 | api->fpcxx . . $ game_api#fp.[220] = (int *)vm_NormalizeVectorFastcxx . . $ vm_NormalizeVectorFast(4939a7e530383cd4).; |
| 361 | api->fpcxx . . $ game_api#fp.[221] = (int *)vm_ClearMatrixcxx . . $ vm_ClearMatrix(dca75c48c9ab5b54).; |
| 362 | api->fpcxx . . $ game_api#fp.[222] = (int *)vm_AnglesToMatrixcxx . . $ vm_AnglesToMatrix(654fa9e3c9c3be99).; |
| 363 | api->fpcxx . . $ game_api#fp.[223] = (int *)vm_Orthogonalizecxx . . $ vm_Orthogonalize(dca75c48c9ab5b54).; |
| 364 | api->fpcxx . . $ game_api#fp.[224] = (int *)vm_VectorToMatrixcxx . . $ vm_VectorToMatrix(543233b88555916d).; |
| 365 | api->fpcxx . . $ game_api#fp.[225] = (int *)vm_VectorAngleToMatrixcxx . . $ vm_VectorAngleToMatrix(1c1ac24c6c4d340f).; |
| 366 | api->fpcxx . . $ game_api#fp.[226] = (int *)vm_SinCoscxx . . $ vm_SinCos(5f75934053e2a042).; |
| 367 | api->fpcxx . . $ game_api#fp.[227] = (int *)vm_GetSlopecxx . . $ vm_GetSlope(95d5df56d1097f86).; |
| 368 | api->fpcxx . . $ game_api#fp.[228] = (int *)vm_GetPerpcxx . . $ vm_GetPerp(f7eb4a62c434525d).; |
| 369 | api->fpcxx . . $ game_api#fp.[229] = (int *)vm_GetNormalcxx . . $ vm_GetNormal(f84d76fdbff5e570).; |
| 370 | api->fpcxx . . $ game_api#fp.[230] = (int *)vm_VectorDistancecxx . . $ vm_VectorDistance(e65d563e2b53cc54).; |
| 371 | api->fpcxx . . $ game_api#fp.[231] = (int *)vm_VectorDistanceQuickcxx . . $ vm_VectorDistanceQuick(a0b9c8659ecc16b8).; |
| 372 | api->fpcxx . . $ game_api#fp.[232] = (int *)vm_GetNormalizedDircxx . . $ vm_GetNormalizedDir(94d642bbc45232c7).; |
| 373 | api->fpcxx . . $ game_api#fp.[233] = (int *)vm_GetNormalizedDirFastcxx . . $ vm_GetNormalizedDirFast(94d642bbc45232c7).; |
| 374 | api->fpcxx . . $ game_api#fp.[234] = (int *)vm_ExtractAnglesFromMatrixcxx . . $ vm_ExtractAnglesFromMatrix(5f9a6d6f613ae256).; |
| 375 | api->fpcxx . . $ game_api#fp.[235] = (int *)vm_DeltaAngVeccxx . . $ vm_DeltaAngVec(2b95d4afcc0f9481).; |
| 376 | api->fpcxx . . $ game_api#fp.[236] = (int *)vm_DeltaAngVecNormcxx . . $ vm_DeltaAngVecNorm(2b95d4afcc0f9481).; |
| 377 | api->fpcxx . . $ game_api#fp.[237] = (int *)vm_DistToPlanecxx . . $ vm_DistToPlane(94d642bbc45232c7).; |
| 378 | api->fpcxx . . $ game_api#fp.[238] = (int *)calc_det_valuecxx . . $ calc_det_value(36a185a7f71524b4).; |
| 379 | api->fpcxx . . $ game_api#fp.[239] = (int *)vm_MakeInverseMatrixcxx . . $ vm_MakeInverseMatrix(dca75c48c9ab5b54).; |
| 380 | api->fpcxx . . $ game_api#fp.[240] = (int *)vm_SinCosToMatrixcxx . . $ vm_SinCosToMatrix(b60d58d1e647107).; |
| 381 | api->fpcxx . . $ game_api#fp.[241] = (int *)vm_GetCentroidcxx . . $ vm_GetCentroid(9f2e9a768aacd0cc).; |
| 382 | api->fpcxx . . $ game_api#fp.[242] = (int *)vm_MakeRandomVectorcxx . . $ vm_MakeRandomVector(ec8cf6451c36d470).; |
| 383 | api->fpcxx . . $ game_api#fp.[243] = (int *)vm_ComputeBoundingSpherecxx . . $ vm_ComputeBoundingSphere(9f2e9a768aacd0cc).; |
| 384 | api->fpcxx . . $ game_api#fp.[244] = (int *)vm_GetCentroidFastcxx . . $ vm_GetCentroidFast(9f2e9a768aacd0cc).; |
| 385 | api->fpcxx . . $ game_api#fp.[245] = (int *)RenderHUDGetTextLineWidthcxx . . $ RenderHUDGetTextLineWidth(5c4306d8553b3696).; |
| 386 | api->fpcxx . . $ game_api#fp.[246] = (int *)RenderHUDGetTextHeightcxx . . $ RenderHUDGetTextHeight(5c4306d8553b3696).; |
| 387 | api->fpcxx . . $ game_api#fp.[247] = (int *)dStartFramecxx . . $ dStartFrame(d7a7761809021567).; |
| 388 | api->fpcxx . . $ game_api#fp.[248] = (int *)EndFramecxx . . $ EndFrame(49f6e7a06ebc5aa8).; |
| 389 | api->fpcxx . . $ game_api#fp.[249] = (int *)ResetFacingscxx . . $ ResetFacings(49f6e7a06ebc5aa8).; |
| 390 | api->fpcxx . . $ game_api#fp.[250] = (int *)GameRenderWorldcxx . . $ GameRenderWorld(68d409d91ffdd12f).; |
| 391 | api->fpcxx . . $ game_api#fp.[251] = (int *)GetFrameParameterscxx . . $ GetFrameParameters(c739d0eb0d77bf5b).; |
| 392 | api->fpcxx . . $ game_api#fp.[252] = (int *)rend_SetZBufferStatecxx . . $ rend_SetZBufferState(4af4fd0e2b26c4ac).; |
| 393 | api->fpcxx . . $ game_api#fp.[253] = (int *)rend_SetLightingcxx . . $ rend_SetLighting(e55526c9d3dd1656).; |
| 394 | api->fpcxx . . $ game_api#fp.[254] = (int *)rend_SetColorModelcxx . . $ rend_SetColorModel(e3c5062d5af601c7).; |
| 395 | api->fpcxx . . $ game_api#fp.[255] = (int *)rend_SetTextureTypecxx . . $ rend_SetTextureType(cccd9781d96f97ff).; |
| 396 | api->fpcxx . . $ game_api#fp.[256] = (int *)rend_DrawPolygon3Dcxx . . $ rend_DrawPolygon3D(3928f75259b907be).; |
| 397 | api->fpcxx . . $ game_api#fp.[257] = (int *)rend_SetMipStatecxx . . $ rend_SetMipState(4af4fd0e2b26c4ac).; |
| 398 | api->fpcxx . . $ game_api#fp.[258] = (int *)rend_SetFogStatecxx . . $ rend_SetFogState(4af4fd0e2b26c4ac).; |
| 399 | api->fpcxx . . $ game_api#fp.[259] = (int *)rend_SetFilteringcxx . . $ rend_SetFiltering(4af4fd0e2b26c4ac).; |
| 400 | api->fpcxx . . $ game_api#fp.[260] = (int *)rend_SetOverlayMapcxx . . $ rend_SetOverlayMap(d4f767463ce0a6b3).; |
| 401 | api->fpcxx . . $ game_api#fp.[261] = (int *)rend_SetOverlayTypecxx . . $ rend_SetOverlayType(ac50b47256ae7414).; |
| 402 | api->fpcxx . . $ game_api#fp.[262] = (int *)rend_ClearScreencxx . . $ rend_ClearScreen(cb2f890c2fdad230).; |
| 403 | api->fpcxx . . $ game_api#fp.[263] = (int *)rend_SetPixelcxx . . $ rend_SetPixel(8c880916ccadf15d).; |
| 404 | api->fpcxx . . $ game_api#fp.[264] = (int *)rend_GetPixelcxx . . $ rend_GetPixel(58c590d1186ea715).; |
| 405 | api->fpcxx . . $ game_api#fp.[265] = (int *)rend_FillCirclecxx . . $ rend_FillCircle(10de3014ec658f6e).; |
| 406 | api->fpcxx . . $ game_api#fp.[266] = (int *)rend_DrawCirclecxx . . $ rend_DrawCircle(b1146eedae1e1d0b).; |
| 407 | api->fpcxx . . $ game_api#fp.[267] = (int *)rend_SetAlphaTypecxx . . $ rend_SetAlphaType(4af4fd0e2b26c4ac).; |
| 408 | api->fpcxx . . $ game_api#fp.[268] = (int *)rend_SetAlphaValuecxx . . $ rend_SetAlphaValue(ac50b47256ae7414).; |
| 409 | api->fpcxx . . $ game_api#fp.[269] = (int *)rend_SetWrapTypecxx . . $ rend_SetWrapType(da524b148887c0e7).; |
| 410 | api->fpcxx . . $ game_api#fp.[270] = (int *)rend_SetZBiascxx . . $ rend_SetZBias(9364e6e7bff7660).; |
| 411 | api->fpcxx . . $ game_api#fp.[271] = (int *)rend_SetZBufferWriteMaskcxx . . $ rend_SetZBufferWriteMask(d4f767463ce0a6b3).; |
| 412 | api->fpcxx . . $ game_api#fp.[272] = (int *)rend_GetLFBLockcxx . . $ rend_GetLFBLock(419d9eae029ed3ee).; |
| 413 | api->fpcxx . . $ game_api#fp.[273] = (int *)rend_ReleaseLFBLockcxx . . $ rend_ReleaseLFBLock(419d9eae029ed3ee).; |
| 414 | api->fpcxx . . $ game_api#fp.[274] = (int *)rend_DrawLFBBitmapcxx . . $ rend_DrawLFBBitmap(5d6120966b2638b4).; |
| 415 | api->fpcxx . . $ game_api#fp.[275] = (int *)rend_DrawSpecialLinecxx . . $ rend_DrawSpecialLine(1b637e6b3e24914d).; |
| 416 | api->fpcxx . . $ game_api#fp.[276] = (int *)fvi_FindIntersectioncxx . . $ fvi_FindIntersection(e1c4d7bd350effc8).; |
| 417 | api->fpcxx . . $ game_api#fp.[277] = (int *)fvi_QuickDistFaceListcxx . . $ fvi_QuickDistFaceList(a662bbcbc4f3d9bd).; |
| 418 | api->fpcxx . . $ game_api#fp.[278] = (int *)fvi_QuickDistCellListcxx . . $ fvi_QuickDistCellList(2280b6e28a61436a).; |
| 419 | api->fpcxx . . $ game_api#fp.[279] = (int *)fvi_QuickDistObjectListcxx . . $ fvi_QuickDistObjectList(85643dfbd17d1ac8).; |
| 420 | api->fpcxx . . $ game_api#fp.[280] = (int *)fvi_QuickRoomCheckcxx . . $ fvi_QuickRoomCheck(46bb3ef3c66d3688).; |
| 421 | api->fpcxx . . $ game_api#fp.[281] = (int *)ObjSetPosAndMarkMovedcxx . . $ ObjSetPosAndMarkMoved(bbb518390bedd509).; |
| 422 | api->fpcxx . . $ game_api#fp.[282] = (int *)dSetObjectDeadFlagWDemocxx . . $ dSetObjectDeadFlagWDemo(80a724877f6428f2).; |
| 423 | api->fpcxx . . $ game_api#fp.[283] = (int *)taunt_AreEnabledcxx . . $ taunt_AreEnabled(c9857a73d68e59ba).; |
| 424 | api->fpcxx . . $ game_api#fp.[284] = (int *)dSetAudioTauntscxx . . $ dSetAudioTaunts(b45ddcbc8423892c).; |
| 425 | api->fpcxx . . $ game_api#fp.[285] = (int *)GetRankIndexcxx . . $ GetRankIndex(3c8082c546dd2ea0).; |
| 426 | api->fpcxx . . $ game_api#fp.[286] = (int *)VisEffectAllocatecxx . . $ VisEffectAllocate(b126dc7c1de90089).; |
| 427 | api->fpcxx . . $ game_api#fp.[287] = (int *)VisEffectFreecxx . . $ VisEffectFree(7864480464b09eea).; |
| 428 | api->fpcxx . . $ game_api#fp.[288] = (int *)VisEffectInitTypecxx . . $ VisEffectInitType(9a333b99fc25925f).; |
| 429 | api->fpcxx . . $ game_api#fp.[289] = (int *)VisEffectCreatecxx . . $ VisEffectCreate(20e4831b18f6895c).; |
| 430 | api->fpcxx . . $ game_api#fp.[290] = (int *)VisEffectLinkcxx . . $ VisEffectLink(3e454b8ccf442868).; |
| 431 | api->fpcxx . . $ game_api#fp.[291] = (int *)VisEffectUnlinkcxx . . $ VisEffectUnlink(d4f767463ce0a6b3).; |
| 432 | api->fpcxx . . $ game_api#fp.[292] = (int *)VisEffectRelinkcxx . . $ VisEffectRelink(3e454b8ccf442868).; |
| 433 | api->fpcxx . . $ game_api#fp.[293] = (int *)VisEffectDeletecxx . . $ VisEffectDelete(d4f767463ce0a6b3).; |
| 434 | api->fpcxx . . $ game_api#fp.[294] = (int *)CreateRandomSparkscxx . . $ CreateRandomSparks(3e6b82e54d72ee3b).; |
| 435 | api->fpcxx . . $ game_api#fp.[295] = (int *)CreateRandomLineSparkscxx . . $ CreateRandomLineSparks(79b173f5af69382).; |
| 436 | api->fpcxx . . $ game_api#fp.[296] = (int *)VisEffectCreateControlledcxx . . $ VisEffectCreateControlled(2aaf2e89dfc906a6).; |
| 437 | api->fpcxx . . $ game_api#fp.[297] = (int *)CreateRandomParticlescxx . . $ CreateRandomParticles(7b2877c745efbbf9).; |
| 438 | api->fpcxx . . $ game_api#fp.[298] = (int *)AttachRandomNapalmEffectsToObjectcxx . . $ AttachRandomNapalmEffectsToObject(419c470199a90a97).; |
| 439 | api->fpcxx . . $ game_api#fp.[299] = (int *)InitObjectScriptscxx . . $ InitObjectScripts(674fac047436fc5b).; |
| 440 | api->fpcxx . . $ game_api#fp.[300] = (int *)g3_StartFramecxx . . $ g3_StartFrame(e35d136ceab5c8a2).; |
| 441 | api->fpcxx . . $ game_api#fp.[301] = (int *)g3_EndFramecxx . . $ g3_EndFrame(49f6e7a06ebc5aa8).; |
| 442 | api->fpcxx . . $ game_api#fp.[302] = (int *)g3_GetViewPositioncxx . . $ g3_GetViewPosition(ec8cf6451c36d470).; |
| 443 | api->fpcxx . . $ game_api#fp.[303] = (int *)g3_GetViewMatrixcxx . . $ g3_GetViewMatrix(dca75c48c9ab5b54).; |
| 444 | api->fpcxx . . $ game_api#fp.[304] = (int *)g3_GetUnscaledMatrixcxx . . $ g3_GetUnscaledMatrix(dca75c48c9ab5b54).; |
| 445 | api->fpcxx . . $ game_api#fp.[305] = (int *)g3_StartInstanceMatrixcxx . . $ g3_StartInstanceMatrix(bc315f98e1febb02).; |
| 446 | api->fpcxx . . $ game_api#fp.[306] = (int *)g3_StartInstanceAnglescxx . . $ g3_StartInstanceAngles(5a7036e8e0f776d8).; |
| 447 | api->fpcxx . . $ game_api#fp.[307] = (int *)g3_DoneInstancecxx . . $ g3_DoneInstance(49f6e7a06ebc5aa8).; |
| 448 | api->fpcxx . . $ game_api#fp.[308] = (int *)g3_CheckNormalFacingcxx . . $ g3_CheckNormalFacing(73e76fc48bf5de61).; |
| 449 | api->fpcxx . . $ game_api#fp.[309] = (int *)g3_RotatePointcxx . . $ g3_RotatePoint(fd2e8930c920e2b9).; |
| 450 | api->fpcxx . . $ game_api#fp.[310] = (int *)g3_ProjectPointcxx . . $ g3_ProjectPoint(4c7ad40c64d4fb9c).; |
| 451 | api->fpcxx . . $ game_api#fp.[311] = (int *)g3_CalcPointDepthcxx . . $ g3_CalcPointDepth(4939a7e530383cd4).; |
| 452 | api->fpcxx . . $ game_api#fp.[312] = (int *)g3_Point2Veccxx . . $ g3_Point2Vec(a09ee21f9967de10).; |
| 453 | api->fpcxx . . $ game_api#fp.[313] = (int *)g3_CodePointcxx . . $ g3_CodePoint(1c2cda054d3314c5).; |
| 454 | api->fpcxx . . $ game_api#fp.[314] = (int *)g3_RotateDeltaXcxx . . $ g3_RotateDeltaX(d723b5782943e8b1).; |
| 455 | api->fpcxx . . $ game_api#fp.[315] = (int *)g3_RotateDeltaYcxx . . $ g3_RotateDeltaY(d723b5782943e8b1).; |
| 456 | api->fpcxx . . $ game_api#fp.[316] = (int *)g3_RotateDeltaZcxx . . $ g3_RotateDeltaZ(d723b5782943e8b1).; |
| 457 | api->fpcxx . . $ game_api#fp.[317] = (int *)g3_RotateDeltaVeccxx . . $ g3_RotateDeltaVec(b4974fe36fbbef6).; |
| 458 | api->fpcxx . . $ game_api#fp.[318] = (int *)g3_AddDeltaVeccxx . . $ g3_AddDeltaVec(cfbaf9beee45bcf5).; |
| 459 | api->fpcxx . . $ game_api#fp.[319] = (int *)g3_DrawPolycxx . . $ g3_DrawPoly(eaf0a58e8bd7fbdc).; |
| 460 | api->fpcxx . . $ game_api#fp.[320] = (int *)g3_DrawSpherecxx . . $ g3_DrawSphere(d67578e9a982745b).; |
| 461 | api->fpcxx . . $ game_api#fp.[321] = (int *)g3_CheckAndDrawPolycxx . . $ g3_CheckAndDrawPoly(685a53fd3174869).; |
| 462 | api->fpcxx . . $ game_api#fp.[322] = (int *)g3_DrawLinecxx . . $ g3_DrawLine(79482445f52a1992).; |
| 463 | api->fpcxx . . $ game_api#fp.[323] = (int *)g3_DrawBitmapcxx . . $ g3_DrawBitmap(8d67c7afa700cf9).; |
| 464 | api->fpcxx . . $ game_api#fp.[324] = (int *)g3_DrawRotatedBitmapcxx . . $ g3_DrawRotatedBitmap(b3c51db2a67f6227).; |
| 465 | api->fpcxx . . $ game_api#fp.[325] = (int *)g3_DrawBoxcxx . . $ g3_DrawBox(d67578e9a982745b).; |
| 466 | api->fpcxx . . $ game_api#fp.[326] = (int *)g3_SetCustomClipPlanecxx . . $ g3_SetCustomClipPlane(212e55486d77b625).; |
| 467 | api->fpcxx . . $ game_api#fp.[327] = (int *)g3_SetFarClipZcxx . . $ g3_SetFarClipZ(9364e6e7bff7660).; |
| 468 | api->fpcxx . . $ game_api#fp.[328] = (int *)g3_ClipPolygoncxx . . $ g3_ClipPolygon(729f60102f660017).; |
| 469 | api->fpcxx . . $ game_api#fp.[329] = (int *)g3_FreeTempPointscxx . . $ g3_FreeTempPoints(3ae387dc3696f211).; |
| 470 | api->fpcxx . . $ game_api#fp.[330] = (int *)g3_GetMatrixScalecxx . . $ g3_GetMatrixScale(ec8cf6451c36d470).; |
| 471 | api->fpcxx . . $ game_api#fp.[331] = (int *)g3_SetTriangulationTestcxx . . $ g3_SetTriangulationTest(d4f767463ce0a6b3).; |
| 472 | api->fpcxx . . $ game_api#fp.[332] = (int *)g3_DrawSpecialLinecxx . . $ g3_DrawSpecialLine(1b637e6b3e24914d).; |
| 473 | api->fpcxx . . $ game_api#fp.[333] = (int *)g3_DrawPlanarRotatedBitmapcxx . . $ g3_DrawPlanarRotatedBitmap(71c6e0d12bc5318b).; |
| 474 | api->fpcxx . . $ game_api#fp.[334] = (int *)PlayerStopSoundscxx . . $ PlayerStopSounds(d4f767463ce0a6b3).; |
| 475 | api->fpcxx . . $ game_api#fp.[335] = (int *)FindArgcxx . . $ FindArg(5c4306d8553b3696).; |
| 476 | api->fpcxx . . $ game_api#fp.[336] = (int *)FireWeaponFromObjectcxx . . $ FireWeaponFromObject(3c611958fe04e279).; |
| 477 | api->fpcxx . . $ game_api#fp.[337] = (int *)CreateAndFireWeaponcxx . . $ CreateAndFireWeapon(8720b471d3264b3b).; |
| 478 | api->fpcxx . . $ game_api#fp.[338] = (int *)SelectNextCameraViewcxx . . $ SelectNextCameraView(d4f767463ce0a6b3).; |
| 479 | api->fpcxx . . $ game_api#fp.[339] = (int *)dInven_Addcxx . . $ dInven_Add(228272444bb020af).; |
| 480 | api->fpcxx . . $ game_api#fp.[340] = (int *)dInven_AddObjectcxx . . $ dInven_AddObject(5cf1ce72a3cf15c3).; |
| 481 | api->fpcxx . . $ game_api#fp.[341] = (int *)dInven_AddCounterMeasurecxx . . $ dInven_AddCounterMeasure(7a2879b1c631501d).; |
| 482 | api->fpcxx . . $ game_api#fp.[342] = (int *)dInven_Removecxx . . $ dInven_Remove(fb74c7be222af443).; |
| 483 | api->fpcxx . . $ game_api#fp.[343] = (int *)dInven_Usecxx . . $ dInven_Use(bd9cb6ec824dfd91).; |
| 484 | api->fpcxx . . $ game_api#fp.[344] = (int *)dInven_UseObjHandlecxx . . $ dInven_UseObjHandle(870da7b69dc70a24).; |
| 485 | api->fpcxx . . $ game_api#fp.[345] = (int *)dInven_Sizecxx . . $ dInven_Size(94672de1c825e5d2).; |
| 486 | api->fpcxx . . $ game_api#fp.[346] = (int *)dInven_CheckItemcxx . . $ dInven_CheckItem(fb74c7be222af443).; |
| 487 | api->fpcxx . . $ game_api#fp.[347] = (int *)dInven_Resetcxx . . $ dInven_Reset(551e33599b9c3271).; |
| 488 | api->fpcxx . . $ game_api#fp.[348] = (int *)dInven_ResetPoscxx . . $ dInven_ResetPos(85ee5073fec11d06).; |
| 489 | api->fpcxx . . $ game_api#fp.[349] = (int *)dInven_NextPoscxx . . $ dInven_NextPos(5434108865d73f5f).; |
| 490 | api->fpcxx . . $ game_api#fp.[350] = (int *)dInven_PrevPoscxx . . $ dInven_PrevPos(5434108865d73f5f).; |
| 491 | api->fpcxx . . $ game_api#fp.[351] = (int *)dInven_GetPosTypeIDcxx . . $ dInven_GetPosTypeID(50ea0760c180cfea).; |
| 492 | api->fpcxx . . $ game_api#fp.[352] = (int *)dInven_GetAuxPosTypeIDcxx . . $ dInven_GetAuxPosTypeID(50ea0760c180cfea).; |
| 493 | api->fpcxx . . $ game_api#fp.[353] = (int *)dInven_GetPosDescriptioncxx . . $ dInven_GetPosDescription(7ee78331f3f5f0bd).; |
| 494 | api->fpcxx . . $ game_api#fp.[354] = (int *)dInven_GetPosIconNamecxx . . $ dInven_GetPosIconName(7ee78331f3f5f0bd).; |
| 495 | api->fpcxx . . $ game_api#fp.[355] = (int *)dInven_GetPosNamecxx . . $ dInven_GetPosName(7ee78331f3f5f0bd).; |
| 496 | api->fpcxx . . $ game_api#fp.[356] = (int *)dInven_GetPosInfocxx . . $ dInven_GetPosInfo(d5b544a04313fd7).; |
| 497 | api->fpcxx . . $ game_api#fp.[357] = (int *)dInven_GetPosCountcxx . . $ dInven_GetPosCount(94672de1c825e5d2).; |
| 498 | api->fpcxx . . $ game_api#fp.[358] = (int *)dInven_AtBeginningcxx . . $ dInven_AtBeginning(a9b1d5baa55c4e1).; |
| 499 | api->fpcxx . . $ game_api#fp.[359] = (int *)dInven_AtEndcxx . . $ dInven_AtEnd(a9b1d5baa55c4e1).; |
| 500 | api->fpcxx . . $ game_api#fp.[360] = (int *)dInven_GotoPoscxx . . $ dInven_GotoPos(35c6c905282b7da0).; |
| 501 | api->fpcxx . . $ game_api#fp.[361] = (int *)dInven_GotoPosTypeIDcxx . . $ dInven_GotoPosTypeID(6a06e465d609a715).; |
| 502 | api->fpcxx . . $ game_api#fp.[362] = (int *)dInven_UsePoscxx . . $ dInven_UsePos(b45c7c16050fe3a6).; |
| 503 | api->fpcxx . . $ game_api#fp.[363] = (int *)dInven_GetPoscxx . . $ dInven_GetPos(94672de1c825e5d2).; |
| 504 | api->fpcxx . . $ game_api#fp.[364] = (int *)dInven_ValidatePoscxx . . $ dInven_ValidatePos(5434108865d73f5f).; |
| 505 | api->fpcxx . . $ game_api#fp.[365] = (int *)dInven_IsSelectablecxx . . $ dInven_IsSelectable(a9b1d5baa55c4e1).; |
| 506 | api->fpcxx . . $ game_api#fp.[366] = (int *)dInven_IsUsablecxx . . $ dInven_IsUsable(a9b1d5baa55c4e1).; |
| 507 | api->fpcxx . . $ game_api#fp.[367] = (int *)dInven_GetTypeIDCountcxx . . $ dInven_GetTypeIDCount(de06e22421169a70).; |
| 508 | api->fpcxx . . $ game_api#fp.[368] = (int *)dInven_FindPoscxx . . $ dInven_FindPos(fb74c7be222af443).; |
| 509 | api->fpcxx . . $ game_api#fp.[369] = (int *)dInven_GetInventoryItemListcxx . . $ dInven_GetInventoryItemList(1050e51dfeed52f9).; |
| 510 | |
| 511 | // Variable pointers |
| 512 | api->vpcxx . . $ game_api#vp.[0] = (int *)&Player_numcxx . . $ Player_num.; |
| 513 | api->vpcxx . . $ game_api#vp.[1] = (int *)&Highest_room_indexcxx . . $ Highest_room_index.; |
| 514 | api->vpcxx . . $ game_api#vp.[2] = (int *)&Game_window_wcxx . . $ Game_window_w.; |
| 515 | api->vpcxx . . $ game_api#vp.[3] = (int *)&Game_window_hcxx . . $ Game_window_h.; |
| 516 | api->vpcxx . . $ game_api#vp.[4] = (int *)&Game_fontscxx . . $ Game_fonts.; |
| 517 | api->vpcxx . . $ game_api#vp.[5] = (int *)&Frametimecxx . . $ Frametime.; |
| 518 | api->vpcxx . . $ game_api#vp.[6] = (int *)&Gametimecxx . . $ Gametime.; |
| 519 | api->vpcxx . . $ game_api#vp.[7] = (int *)&Multi_additional_damagecxx . . $ Multi_additional_damage.; |
| 520 | api->vpcxx . . $ game_api#vp.[8] = (int *)&Game_interface_modecxx . . $ Game_interface_mode.; |
| 521 | api->vpcxx . . $ game_api#vp.[9] = (int *)LocalD3Dircxx . . $ LocalD3Dir.; |
| 522 | api->vpcxx . . $ game_api#vp.[10] = (int *)&Game_is_master_tracker_gamecxx . . $ Game_is_master_tracker_game.; |
| 523 | api->vpcxx . . $ game_api#vp.[11] = (int *)Local_object_listcxx . . $ Local_object_list.; |
| 524 | api->vpcxx . . $ game_api#vp.[12] = (int *)Server_object_listcxx . . $ Server_object_list.; |
| 525 | api->vpcxx . . $ game_api#vp.[13] = (int *)&Dedicated_servercxx . . $ Dedicated_server.; |
| 526 | api->vpcxx . . $ game_api#vp.[14] = (int *)Player_colorscxx . . $ Player_colors.; |
| 527 | api->vpcxx . . $ game_api#vp.[15] = (int *)&Hud_aspect_xcxx . . $ Hud_aspect_x.; |
| 528 | api->vpcxx . . $ game_api#vp.[16] = (int *)&Hud_aspect_ycxx . . $ Hud_aspect_y.; |
| 529 | api->vpcxx . . $ game_api#vp.[17] = (int *)&Viewer_objectcxx . . $ Viewer_object.; |
| 530 | api->vpcxx . . $ game_api#vp.[18] = (int *)&Render_zoomcxx . . $ Render_zoom.; |
| 531 | api->vpcxx . . $ game_api#vp.[19] = (int *)&Game_window_xcxx . . $ Game_window_x.; |
| 532 | api->vpcxx . . $ game_api#vp.[20] = (int *)&Game_window_ycxx . . $ Game_window_y.; |
| 533 | api->vpcxx . . $ game_api#vp.[21] = (int *)&Poly_modelscxx . . $ Poly_models.; |
| 534 | api->vpcxx . . $ game_api#vp.[22] = (int *)VisEffectscxx . . $ VisEffects.; |
| 535 | api->vpcxx . . $ game_api#vp.[23] = (int *)&Highest_vis_effect_indexcxx . . $ Highest_vis_effect_index.; |
| 536 | api->vpcxx . . $ game_api#vp.[24] = (int *)&Multi_next_levelcxx . . $ Multi_next_level.; |
| 537 | api->vpcxx . . $ game_api#vp.[25] = (int *)&Level_infocxx . . $ Level_info.; |
| 538 | api->vpcxx . . $ game_api#vp.[26] = (int *)GameArgscxx . . $ GameArgs.; |
| 539 | api->vpcxx . . $ game_api#vp.[27] = (int *)Camera_view_modecxx . . $ Camera_view_mode.; |
| 540 | api->vpcxx . . $ game_api#vp.[28] = (int *)Object_infocxx . . $ Object_info.; |
| 541 | |
| 542 | api->osiris_functionscxx . . $ game_api#osiris_functions. = &Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs.; |
| 543 | Osiris_CreateModuleInitStructcxx . . $ Osiris_CreateModuleInitStruct(5a9437a4d944b175).(&Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs.); |
| 544 | Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs..string_tablecxx . . $ tOSIRISModuleInit#string_table. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 545 | Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs..string_countcxx . . $ tOSIRISModuleInit#string_count. = 0; |
| 546 | Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs..module_identifiercxx . . $ tOSIRISModuleInit#module_identifier. = 0xEDF7; |
| 547 | Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs..module_is_staticcxx . . $ tOSIRISModuleInit#module_is_static. = false; |
| 548 | Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs..game_checksumcxx . . $ tOSIRISModuleInit#game_checksum. = Osiris_game_checksumcxx . . $ Osiris_game_checksum.; |
| 549 | Multi_d3m_osiris_funcscxx . . $ Multi_d3m_osiris_funcs..script_identifiercxx . . $ tOSIRISModuleInit#script_identifier. = Netgamecxx . . $ Netgame..scriptnamecxx . . $ netgame_info#scriptname.; |
| 550 | } |
| 551 | // Closes and deletes any tempfiles for the game module |
| 552 | void CloseGameModulecxx . . $ CloseGameModule(c82481ae79114c4e).(modulecxx . . $ module# *mod) { |
| 553 | // Clear out error queue |
| 554 | mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 555 | mod_FreeModulecxx . . $ mod_FreeModule(f63d3fb9c9f41dd6).(mod); |
| 556 | if (Multi_game_dll_namecxx . . $ Multi_game_dll_name.[0] != '\0') { |
| 557 | // Try deleting the file now! |
| 558 | if (!ddio_DeleteFilecxx . . $ ddio_DeleteFile(5c4306d8553b3696).(Multi_game_dll_namecxx . . $ Multi_game_dll_name.)) { |
| 559 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't delete the tmp dll"); |
| 560 | } |
| 561 | } |
| 562 | mod->handlecxx . . $ module#handle. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 563 | } |
| 564 | // this function will load up the DLL, but not get any symbols |
| 565 | bool InitGameModulecxx . . $ InitGameModule(77c0ecdfcefa3878).(const char *name, modulecxx . . $ module# *mod) { |
| 566 | char lib_name[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2]; |
| 567 | char dll_name[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2]; |
| 568 | char tmp_dll_name[_MAX_PATHcxx . . $ `linux/linux_fix.h:34:9`! * 2]; |
| 569 | // Make the hog filename |
| 570 | ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).(lib_name, Base_directorycxx . . $ Base_directory., "netgames", name, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 571 | strcat(lib_name, ".d3m"); |
| 572 | // Make the dll filename |
| 573 | #if defined(WIN32) |
| 574 | snprintf(dll_name, sizeof(dll_name), "%s.dll", name); |
| 575 | #elif defined(MACOSX) |
| 576 | snprintf(dll_name, sizeof(dll_name), "%s.dylib", name); |
| 577 | #else |
| 578 | snprintf(dll_name, sizeof(dll_name), "%s.so", name); |
| 579 | #endif |
| 580 | |
| 581 | // Open the hog file |
| 582 | if (!cf_OpenLibrarycxx . . $ cf_OpenLibrary(293b0826c8d9cb54).(lib_namecxx . . $ std/filesystem/__cxx11/path#path(835bc3a16b770d4d).)) { |
| 583 | ddio_MakePathcxx . . $ ddio_MakePath(9ad4b0815420a85).(tmp_dll_name, Base_directorycxx . . $ Base_directory., "netgames", name, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 584 | strcat(tmp_dll_name, ".d3m"); |
| 585 | Multi_game_dll_namecxx . . $ Multi_game_dll_name.[0] = '\0'; |
| 586 | goto loaddll; |
| 587 | } |
| 588 | // get a temp file name |
| 589 | if (!ddio_GetTempFileNamecxx . . $ ddio_GetTempFileName(dfb34736e99ce5d).(Descent3_temp_directorycxx . . $ Descent3_temp_directory., "d3m", tmp_dll_name)) { |
| 590 | return false; |
| 591 | } |
| 592 | // Copy the DLL |
| 593 | if (!cf_CopyFilecxx . . $ cf_CopyFile(773c05b60430b9f6).(tmp_dll_namecxx . . $ std/filesystem/__cxx11/path#path(835bc3a16b770d4d)., dll_namecxx . . $ std/filesystem/__cxx11/path#path(835bc3a16b770d4d).)) { |
| 594 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "DLL copy failed!\n"); |
| 595 | return false; |
| 596 | } |
| 597 | strcpy(Multi_game_dll_namecxx . . $ Multi_game_dll_name., tmp_dll_name); |
| 598 | loaddll: |
| 599 | // Clear out error queue |
| 600 | mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 601 | if (!mod_LoadModulecxx . . $ mod_LoadModule(2b2b4995973ac6b0).(mod, tmp_dll_name)) { |
| 602 | int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 603 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "You are missing the DLL %s!\n", name); |
| 604 | return false; |
| 605 | } |
| 606 | return true; |
| 607 | } |
| 608 | // Frees the dll if its in memory |
| 609 | void FreeGameDLLcxx . . $ FreeGameDLL(49f6e7a06ebc5aa8).() { |
| 610 | if (!GameDLLHandlecxx . . $ GameDLLHandle..handlecxx . . $ module#handle.) |
| 611 | return; |
| 612 | if (DLLGameClosecxx . . $ DLLGameClose.) |
| 613 | DLLGameClosecxx . . $ DLLGameClose.(); |
| 614 | Osiris_UnloadMissionModulecxx . . $ Osiris_UnloadMissionModule(49f6e7a06ebc5aa8).(); |
| 615 | CloseGameModulecxx . . $ CloseGameModule(c82481ae79114c4e).(&GameDLLHandlecxx . . $ GameDLLHandle.); |
| 616 | DLLGameCallcxx . . $ DLLGameCall. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 617 | DLLGameInitcxx . . $ DLLGameInit. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 618 | DLLGameClosecxx . . $ DLLGameClose. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 619 | DLLGetGameInfocxx . . $ DLLGetGameInfo. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 620 | } |
| 621 | // Loads the game dll. Returns 1 on success, else 0 on failure |
| 622 | int LoadGameDLLcxx . . $ LoadGameDLL(cb7559238bb26814).(const char *name, int num_teams_to_use) { |
| 623 | static int first = 1; |
| 624 | // char lib_name[_MAX_PATH*2]; |
| 625 | // char dll_name[_MAX_PATH*2]; |
| 626 | // char tmp_dll_name[_MAX_PATH*2]; |
| 627 | // char dll_path_name[_MAX_PATH*2]; |
| 628 | // char fulldll[_MAX_PATH*2]; |
| 629 | // ddio_MakePath(fulldll,Base_directory,"netgames",name,NULL); |
| 630 | if (GameDLLHandlecxx . . $ GameDLLHandle..handlecxx . . $ module#handle.) |
| 631 | FreeGameDLLcxx . . $ FreeGameDLL(49f6e7a06ebc5aa8).(); |
| 632 | if (num_teams_to_use == -1) { |
| 633 | int mint, maxt; |
| 634 | if (GetDLLNumTeamInfocxx . . $ GetDLLNumTeamInfo(f3a8223d1a54ec76).(name, &mint, &maxt)) { |
| 635 | // multi team game |
| 636 | num_teams_to_use = mint; |
| 637 | } else { |
| 638 | // non-team game |
| 639 | num_teams_to_use = 1; |
| 640 | } |
| 641 | } |
| 642 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Loading '%s', setting up for %d teams\n", name, num_teams_to_use); |
| 643 | if (!InitGameModulecxx . . $ InitGameModule(77c0ecdfcefa3878).(name, &GameDLLHandlecxx . . $ GameDLLHandle.)) |
| 644 | return 0; |
| 645 | |
| 646 | // Clear out error queue |
| 647 | mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 648 | DLLGameInitcxx . . $ DLLGameInit. = (DLLGameInit_fpcxx . . $ DLLGameInit_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&GameDLLHandlecxx . . $ GameDLLHandle., "DLLGameInit", 12); |
| 649 | if (!DLLGameInitcxx . . $ DLLGameInit.) { |
| 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 DLLGameInit!\n"); |
| 652 | Int3cxx . . $ `misc/pserror.h:247:9`!(); |
| 653 | FreeGameDLLcxx . . $ FreeGameDLL(49f6e7a06ebc5aa8).(); |
| 654 | return 0; |
| 655 | } |
| 656 | // Clear out error queue |
| 657 | mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 658 | DLLGameCallcxx . . $ DLLGameCall. = (DLLGameCall_fpcxx . . $ DLLGameCall_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&GameDLLHandlecxx . . $ GameDLLHandle., "DLLGameCall", 8); |
| 659 | if (!DLLGameCallcxx . . $ DLLGameCall.) { |
| 660 | int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 661 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't get a handle to the dll function DLLGameCall!\n"); |
| 662 | Int3cxx . . $ `misc/pserror.h:247:9`!(); |
| 663 | FreeGameDLLcxx . . $ FreeGameDLL(49f6e7a06ebc5aa8).(); |
| 664 | return 0; |
| 665 | } |
| 666 | // Clear out error queue |
| 667 | mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 668 | DLLGameClosecxx . . $ DLLGameClose. = (DLLGameClose_fpcxx . . $ DLLGameClose_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&GameDLLHandlecxx . . $ GameDLLHandle., "DLLGameClose", 0); |
| 669 | if (!DLLGameClosecxx . . $ DLLGameClose.) { |
| 670 | int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 671 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't get a handle to the dll function DLLGameClose!\n"); |
| 672 | Int3cxx . . $ `misc/pserror.h:247:9`!(); |
| 673 | FreeGameDLLcxx . . $ FreeGameDLL(49f6e7a06ebc5aa8).(); |
| 674 | return 0; |
| 675 | } |
| 676 | // Clear out error queue |
| 677 | mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 678 | DLLGetGameInfocxx . . $ DLLGetGameInfo. = (DLLGetGameInfo_fpcxx . . $ DLLGetGameInfo_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&GameDLLHandlecxx . . $ GameDLLHandle., "DLLGetGameInfo", 4); |
| 679 | if (!DLLGetGameInfocxx . . $ DLLGetGameInfo.) { |
| 680 | int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 681 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't get a handle to the dll function DLLGetGameInfo!\n"); |
| 682 | Int3cxx . . $ `misc/pserror.h:247:9`!(); |
| 683 | FreeGameDLLcxx . . $ FreeGameDLL(49f6e7a06ebc5aa8).(); |
| 684 | return 0; |
| 685 | } |
| 686 | if (first) { |
| 687 | // Jeff: Linux for some reason dies if you try to |
| 688 | // free a DLL/so on atexit, they should be freed |
| 689 | // anyway during game sequencing |
| 690 | // atexit (FreeGameDLL); |
| 691 | first = 0; |
| 692 | } |
| 693 | void *api_fp; |
| 694 | uint8_tcxx . . $ uint8_t# ok = 1; |
| 695 | api_fp = (void *)GetGameAPIcxx . . $ GetGameAPI(623ae1cf9b609180).; |
| 696 | |
| 697 | DLLGameInitcxx . . $ DLLGameInit.((int *)api_fp, &ok, num_teams_to_use); |
| 698 | if (!ok) { |
| 699 | // The DLL said no to the load |
| 700 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "DLLGameInit returned false, couldn't init DLL\n"); |
| 701 | Int3cxx . . $ `misc/pserror.h:247:9`!(); |
| 702 | FreeGameDLLcxx . . $ FreeGameDLL(49f6e7a06ebc5aa8).(); |
| 703 | return 0; |
| 704 | } |
| 705 | Osiris_LoadMissionModulecxx . . $ Osiris_LoadMissionModule(f5a867175bee3ae4).(&GameDLLHandlecxx . . $ GameDLLHandle., name); |
| 706 | |
| 707 | return 1; |
| 708 | } |
| 709 | // If this function is called than the DLL is to be closed, because there was an error running it |
| 710 | // if reason is not NULL than that is the reason why |
| 711 | void DLLFatalErrorcxx . . $ DLLFatalError(85c52e162fed56f9).(const char *reason) { |
| 712 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "============================\n"); |
| 713 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "= DLL Fatal Error =\n"); |
| 714 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "============================\n"); |
| 715 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "%s\n", (reason) ? reason : "<No Reason Given>"); |
| 716 | Netgamecxx . . $ Netgame..flagscxx . . $ netgame_info#flags. |= NF_EXIT_NOWcxx . . $ `Descent3/multi_external.h:229:9`!; |
| 717 | Int3cxx . . $ `misc/pserror.h:247:9`!(); |
| 718 | } |
| 719 | // The chokepoint function to call the dll function |
| 720 | void CallGameDLLcxx . . $ CallGameDLL(32ca0c0c7dbc2fcf).(int eventnum, dllinfocxx . . $ dllinfo# *data) { |
| 721 | if (GameDLLHandlecxx . . $ GameDLLHandle..handlecxx . . $ module#handle. && DLLGameCallcxx . . $ DLLGameCall.) { |
| 722 | data->iRetcxx . . $ dllinfo#$anonymous_type_0#iRet. = 0; |
| 723 | DLLGameCallcxx . . $ DLLGameCall.(eventnum, data); |
| 724 | } |
| 725 | } |
| 726 | // Call this function right after a player connects to the game to see if a player is banned |
| 727 | bool GameDLLIsAddressBannedcxx . . $ GameDLLIsAddressBanned(46e1c72e52d9c94a).(network_addresscxx . . $ network_address# *addr, const char *tracker_id) { |
| 728 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(addr); |
| 729 | DLLInfocxx . . $ DLLInfo..special_datacxx . . $ dllinfo#special_data. = (uint8_tcxx . . $ uint8_t# *)addr; |
| 730 | // This used to be tracker_id, but storing a pointer as an int is a problem in 64 bit |
| 731 | // and no code ever was populating the tracker id that I know of. -Kevin |
| 732 | DLLInfocxx . . $ DLLInfo..iParamcxx . . $ dllinfo#iParam. = 0; |
| 733 | DLLInfocxx . . $ DLLInfo..iRetcxx . . $ dllinfo#$anonymous_type_0#iRet. = 0; |
| 734 | CallGameDLLcxx . . $ CallGameDLL(32ca0c0c7dbc2fcf).(EVT_GAMECHECKBANcxx . . $ `lib/d3events.h:76:9`!, &DLLInfocxx . . $ DLLInfo.); |
| 735 | if (DLLInfocxx . . $ DLLInfo..iRetcxx . . $ dllinfo#$anonymous_type_0#iRet.) |
| 736 | return true; |
| 737 | else |
| 738 | return false; |
| 739 | } |
| 740 | // Call this function to get the team that a connecting player should be placed on |
| 741 | // Callsign and network address of the player MUST be filled in at this point |
| 742 | // PXO id must also be set if mastertracker game |
| 743 | // |
| 744 | // Return values: |
| 745 | // -2: GameDLL can't determine a team (user specified that they want to handle), so pick a random team |
| 746 | // -1: Dedicated Server |
| 747 | // 0-4: Team |
| 748 | int GameDLLGetConnectingPlayersTeamcxx . . $ GameDLLGetConnectingPlayersTeam(7864480464b09eea).(int slot) { |
| 749 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(slot >= 0 && slot < MAX_PLAYERScxx . . $ `Descent3/player_external_struct.h:86:9`!); |
| 750 | DLLInfocxx . . $ DLLInfo..iParamcxx . . $ dllinfo#iParam. = slot; |
| 751 | DLLInfocxx . . $ DLLInfo..iRetcxx . . $ dllinfo#$anonymous_type_0#iRet. = 0; |
| 752 | CallGameDLLcxx . . $ CallGameDLL(32ca0c0c7dbc2fcf).(EVT_GAME_GET_PLAYER_TEAMcxx . . $ `lib/d3events.h:82:9`!, &DLLInfocxx . . $ DLLInfo.); |
| 753 | return DLLInfocxx . . $ DLLInfo..iRetcxx . . $ dllinfo#$anonymous_type_0#iRet.; |
| 754 | } |
| 755 | // Call this function to get information/options from a unloaded mod |
| 756 | bool GetDLLGameInfocxx . . $ GetDLLGameInfo(658e70a0a99f1558).(const char *name, tDLLOptionscxx . . $ tDLLOptions# *options) { |
| 757 | modulecxx . . $ module# mod = {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!}; |
| 758 | memset(options, 0, sizeof(tDLLOptionscxx . . $ tDLLOptions#)); |
| 759 | DLLGetGameInfo_fpcxx . . $ DLLGetGameInfo_fp# modGetGameInfo; |
| 760 | if (!InitGameModulecxx . . $ InitGameModule(77c0ecdfcefa3878).(name, &mod)) |
| 761 | return false; |
| 762 | // Clear out error queue |
| 763 | mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 764 | modGetGameInfo = (DLLGetGameInfo_fpcxx . . $ DLLGetGameInfo_fp#)mod_GetSymbolcxx . . $ mod_GetSymbol(434bf6e9929b4f62).(&mod, "DLLGetGameInfo", 4); |
| 765 | if (!modGetGameInfo) { |
| 766 | int err = mod_GetLastErrorcxx . . $ mod_GetLastError(b126dc7c1de90089).(); |
| 767 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Couldn't get a handle to the dll function DLLGetGameInfo!\n"); |
| 768 | Int3cxx . . $ `misc/pserror.h:247:9`!(); |
| 769 | CloseGameModulecxx . . $ CloseGameModule(c82481ae79114c4e).(&mod); |
| 770 | return false; |
| 771 | } |
| 772 | modGetGameInfo(options); |
| 773 | CloseGameModulecxx . . $ CloseGameModule(c82481ae79114c4e).(&mod); |
| 774 | return true; |
| 775 | } |
| 776 | // Call this function to get the list of requirements that the given module needs in order |
| 777 | // to be playable. Returns the number of requirements it needs...-1 on error. |
| 778 | int GetDLLRequirementscxx . . $ GetDLLRequirements(89c8e27db0bdb94e).(const char *name, char *requirements, int buflen) { |
| 779 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(buflen >= 0); |
| 780 | ASSERTcxx . . $ `misc/pserror.h:246:9`!(requirements); |
| 781 | tDLLOptionscxx . . $ tDLLOptions# opt; |
| 782 | if (!GetDLLGameInfocxx . . $ GetDLLGameInfo(658e70a0a99f1558).(name, &opt)) { |
| 783 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Unable to get %s's requirements\n", name); |
| 784 | return -1; |
| 785 | } |
| 786 | strncpy(requirements, opt.requirementscxx . . $ tDLLOptions#requirements., buflen - 1); |
| 787 | requirements[buflen - 1] = '\0'; |
| 788 | uint32_tcxx . . $ uint32_t# opt_req_len = strlen(opt.requirementscxx . . $ tDLLOptions#requirements.); |
| 789 | if (opt_req_len > strlen(requirements)) { |
| 790 | // too small of a buffer! |
| 791 | mprintfcxx . . $ `ddebug/mono.h:82:9`!(0, "Too small of a buffer to fill in all requirements!...need %d\n", opt_req_len + 1); |
| 792 | Int3cxx . . $ `misc/pserror.h:247:9`!(); |
| 793 | // cut off last requirement (which is shortened) |
| 794 | char *p = strrchr(requirements, ','); |
| 795 | if (p) { |
| 796 | *p = '\0'; |
| 797 | } else { |
| 798 | *requirements = '\0'; |
| 799 | } |
| 800 | } |
| 801 | // go through requirements and count em |
| 802 | char *p = requirements; |
| 803 | int count = 0; |
| 804 | while (*p) { |
| 805 | if (*p == ',') |
| 806 | count++; |
| 807 | p++; |
| 808 | } |
| 809 | count++; |
| 810 | return count; |
| 811 | } |
| 812 | // Call this function to get information about the number of teams for the game |
| 813 | // Returns true if it's a team game...false if it's a non-team game. |
| 814 | // If it returns true, then min is filled in with the minumum number of teams needed for the game |
| 815 | // and max is filled in with the maximum number of teams for the game...if they are the same |
| 816 | // value, then it is the only number of teams supported. |
| 817 | bool GetDLLNumTeamInfocxx . . $ GetDLLNumTeamInfo(f3a8223d1a54ec76).(const char *name, int *mint, int *maxt) { |
| 818 | tDLLOptionscxx . . $ tDLLOptions# dllo; |
| 819 | if (!GetDLLGameInfocxx . . $ GetDLLGameInfo(658e70a0a99f1558).(name, &dllo)) { |
| 820 | *mint = 1; |
| 821 | *maxt = 1; |
| 822 | return false; |
| 823 | } |
| 824 | if (!(dllo.flagscxx . . $ tDLLOptions#flags. & DOF_MAXTEAMScxx . . $ `lib/game2dll.h:57:9`!)) { |
| 825 | *mint = 1; |
| 826 | *maxt = 1; |
| 827 | return false; |
| 828 | } |
| 829 | *maxt = (dllo.max_teamscxx . . $ tDLLOptions#max_teams. == 0 || dllo.max_teamscxx . . $ tDLLOptions#max_teams. == 1 || dllo.max_teamscxx . . $ tDLLOptions#max_teams. < 0) ? 1 : stdcxx . . $ std/::mincxx . . $ std/min(2a338fce5842aa6a).(dllo.max_teamscxx . . $ tDLLOptions#max_teams., 4); |
| 830 | if ((*maxt) == 1) { |
| 831 | *mint = 1; |
| 832 | } else { |
| 833 | *mint = 2; |
| 834 | } |
| 835 | if (dllo.flagscxx . . $ tDLLOptions#flags. & DOF_MINTEAMScxx . . $ `lib/game2dll.h:58:9`! && dllo.min_teamscxx . . $ tDLLOptions#min_teams. >= 0) { |
| 836 | *mint = (dllo.min_teamscxx . . $ tDLLOptions#min_teams. == 0 || dllo.min_teamscxx . . $ tDLLOptions#min_teams. == 1) ? 1 : stdcxx . . $ std/::mincxx . . $ std/min(2a338fce5842aa6a).(*maxt, dllo.min_teamscxx . . $ tDLLOptions#min_teams.); |
| 837 | } |
| 838 | return ((*maxt) == 1) ? false : true; |
| 839 | } |