Commit 00252f3976ff9de8210cac34dd7e2a8fc4804b5a

Authored by dg
1 parent 0c54c1f9

fix module load


git-svn-id: http://svn.net-core.org/repos/t-engine4@2876 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -281,6 +281,7 @@ function _M:instanciate(mod, name, new_game, no_reboot)
281 281 game.log("#LIGHT_RED#Online profile disabled(switching to offline profile) due to %s.", hash_err or "???")
282 282 end
283 283 end
  284 + print("[MODULE LOADER] done loading module", mod.long_name)
284 285 end
285 286
286 287 --- Setup write dir for a module
... ...
... ... @@ -185,7 +185,7 @@ end
185 185
186 186 function _M:handleOrder(o)
187 187 o = o:unserialize()
188   - if not self.sock and o.o ~= "Login" and o.o ~= "CurrentCharacter" then return end -- Dont do stuff without a connection, unless we try to auth
  188 + if not self.sock and o.o ~= "Login" and o.o ~= "CurrentCharacter" and o.o ~= "CheckModuleHash" then return end -- Dont do stuff without a connection, unless we try to auth
189 189 if self["order"..o.o] then self["order"..o.o](self, o) end
190 190 end
191 191
... ... @@ -266,6 +266,7 @@ function _M:orderSendError(o)
266 266 end
267 267
268 268 function _M:orderCheckModuleHash(o)
  269 + if not self.sock then cprofile.pushEvent("e='CheckModuleHash' ok=false not_connected=true") end
269 270 self:command("CMD5", o.md5, o.module)
270 271 if self:read("200") then
271 272 cprofile.pushEvent("e='CheckModuleHash' ok=true")
... ...