MCPcopy Create free account
hub / github.com/bwapi/bwapi / spiInitialize

Function spiInitialize

bwapi/SNP_DirectIP/SNP/SNPModule.cpp:128–154  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

126 }
127 //------------------------------------------------------------------------------------------------------------------------------------
128 BOOL __stdcall spiInitialize(client_info *gameClientInfo,
129 user_info *userData,
130 battle_info *bnCallbacks,
131 module_info *moduleData,
132 HANDLE hEvent)
133 {
134 // Called when the module is loaded
135// DropMessage(0, "spiInitialize");
136
137 gameAppInfo = *gameClientInfo;
138
139 receiveEvent = hEvent;
140
141 critSec.init();
142
143 try
144 {
145 pluggedNetwork->initialize();
146 }
147 catch(GeneralException &e)
148 {
149 DropLastError(__FUNCTION__ " unhandled exception: %s", e.getMessage());
150 return FALSE;
151 }
152
153 return TRUE;
154 }
155 //------------------------------------------------------------------------------------------------------------------------------------
156 BOOL __stdcall spiDestroy()
157 {

Callers

nothing calls this directly

Calls 4

DropLastErrorFunction · 0.85
getMessageMethod · 0.80
initMethod · 0.45
initializeMethod · 0.45

Tested by

no test coverage detected