feat: NSIS 中文安装器(年糕历险记-Setup-v0.1.0.exe 实际构建+静默安装验证)、菜单鼠标可见性修复、首页 UI 原版复刻(土质背景/原版按钮/splash/版本角标)、全 goroutine 崩溃兜底
This commit is contained in:
@@ -4,6 +4,8 @@ package engine
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"mc/internal/crash"
|
||||
)
|
||||
|
||||
// Ticker 世界逻辑接口:每 tick 调用,dt 为固定 tick 间隔秒数。
|
||||
@@ -31,6 +33,7 @@ func Run(ctx context.Context, tick Ticker, render Renderer) {
|
||||
const tickInterval = time.Second / 20
|
||||
stop := make(chan struct{})
|
||||
go func() {
|
||||
defer crash.RecoverGo("engine-tick") // 非主 goroutine 兜底:panic 写崩溃日志(防静默闪退)
|
||||
t := time.NewTicker(tickInterval)
|
||||
defer t.Stop()
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user