mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Fixed error code issue
This commit is contained in:
@@ -5,12 +5,15 @@ multi.defaultSettings.debugging = true
|
||||
local dbg = {}
|
||||
|
||||
local creation_hook
|
||||
local types
|
||||
|
||||
creation_hook = function(obj, process)
|
||||
local types = multi:getTypes()
|
||||
print("Created: ",obj.Type, "in", process.Type, process:getFullName())
|
||||
if obj.Type == multi.PROCESS then
|
||||
obj.OnObjectCreated(creation_hook)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
local debug_stats = {}
|
||||
@@ -19,6 +22,8 @@ local tmulti = multi:getThreadManagerProcess()
|
||||
multi.OnObjectCreated(creation_hook)
|
||||
tmulti.OnObjectCreated(creation_hook)
|
||||
|
||||
multi
|
||||
|
||||
--[[
|
||||
multi.ROOTPROCESS = "rootprocess"
|
||||
multi.CONNECTOR = "connector"
|
||||
|
||||
Reference in New Issue
Block a user