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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@984 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0e3de789
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,10 @@ function _M:init(runmod)
if self.name:len() >= 2 then
game:unregisterDialog(self)
profile.generic.modules_loaded = profile.generic.modules_loaded or {}
profile.generic.modules_loaded[self.runmod.short_name] = (profile.generic.modules_loaded[self.runmod.short_name] or 0) + 1
profile:saveGenericProfile("modules_loaded", profile.generic.modules_loaded)
-- Ok run the module
local M, W = self.runmod.load()
_G.game = M.new()
......
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