WIP add profile menu example

This commit is contained in:
lash
2023-04-15 07:06:03 +01:00
parent d8c112fa92
commit 355b466746
17 changed files with 107 additions and 8 deletions

View File

@@ -37,13 +37,13 @@ func NewEngine(cfg Config, st *state.State, rs resource.Resource, ca cache.Memor
if cfg.OutputSize > 0 {
szr = render.NewSizer(cfg.OutputSize)
}
ctx = context.WithValue(ctx, "sessionId", cfg.SessionId)
engine := Engine{
st: st,
rs: rs,
ca: ca,
vm: vm.NewVm(st, rs, ca, szr),
}
//if cfg.Root != "" {
if st.Moves == 0 {
engine.Init(cfg.Root, ctx)
}