1package app23import (4 "github.com/FelineStateMachine/puzzletea/store"5 "github.com/FelineStateMachine/puzzletea/weekly"6)78type gameOpenOptions struct {9 readOnly bool10 returnState viewState11 weeklyInfo *weekly.Info12}1314func (m model) importAndActivateRecord(rec store.GameRecord) (model, bool) {15 return m.importAndActivateRecordWithOptions(rec, gameOpenOptions{returnState: mainMenuView})16}1718func (m model) importAndActivateRecordWithOptions(rec store.GameRecord, options gameOpenOptions) (model, bool) {19 ok := newSessionController(&m).importRecord(rec, options)20 return m, ok21}