------------------------------------------------------------------------------------------------------------------------------------
| 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 | { |
nothing calls this directly
no test coverage detected