4 local function protected()
6 debugInfo("r2.init begin")
7 profileFunction(r2
.registerHighLevel
, "r2.registerHighLevel")
8 profileFunction(r2
.registerBasicBricks
, "r2.registerBasicBricks")
9 profileFunction(r2
.loadFeatures
, "r2.loadFeatures")
10 profileFunction(r2
.loadPalette
, "r2.loadPalette")
12 profileFunction(r2
.setupClasses
, "r2.setupClasses")
15 if r2
.InClient
== true then
16 --r2:testPropertySheet()
17 profileMethod(r2
, "buildAllPropertySheetsAndForms", "r2:buildAllPropertySheetsAndForms")
19 -- IMPORTANT : should be called after all parameters of classes (displayers ...) have been initialized
20 r2
.TextMgr
= r2
.newComponent("TextManager")
23 debugInfo("r2.init end")
27 local ok
, errMsg
= pcall(protected
)
30 debugInfo("Error while initialization:'".. errMsg
.."'")