Skip to content
Snippets Groups Projects
Commit 00252f39 authored by dg's avatar dg
Browse files

fix module load

git-svn-id: http://svn.net-core.org/repos/t-engine4@2876 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0c54c1f9
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,7 @@ function _M:instanciate(mod, name, new_game, no_reboot)
game.log("#LIGHT_RED#Online profile disabled(switching to offline profile) due to %s.", hash_err or "???")
end
end
print("[MODULE LOADER] done loading module", mod.long_name)
end
--- Setup write dir for a module
......
......@@ -185,7 +185,7 @@ end
function _M:handleOrder(o)
o = o:unserialize()
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
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
if self["order"..o.o] then self["order"..o.o](self, o) end
end
......@@ -266,6 +266,7 @@ function _M:orderSendError(o)
end
function _M:orderCheckModuleHash(o)
if not self.sock then cprofile.pushEvent("e='CheckModuleHash' ok=false not_connected=true") end
self:command("CMD5", o.md5, o.module)
if self:read("200") then
cprofile.pushEvent("e='CheckModuleHash' ok=true")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment