fix: sync current handlers, repair relic data and restore visible launcher consoles

This commit is contained in:
CAtlas0784 committed 2026-10-16 22:19:52 +07:00
1 parent 163d4433e6
commit 74f3c4411b
46 files changed
+4599 -1402

No files matched your search

+6 -2
View File
@@ -11,7 +11,7 @@ import (
func init() {
// The three optional PlayerSettingInfo sub-messages are required by the
// 4.6.51 client: leaving them unset NREs inside _CmdGetBasicInfoScRsp.
// Client requires these when processing _CmdGetBasicInfoScRsp.
handle("GetBasicInfo", func(s *Session, req *goproto.GetBasicInfoCsReq, rsp *goproto.GetBasicInfoScRsp) error {
rsp.Retcode = 0
rsp.Gender = 2
@@ -40,6 +40,10 @@ func init() {
var finalData []byte
finalData = append(finalData, heartbeatLua...)
if probe := s.takeBattleProbe(); len(probe) > 0 {
finalData = append(finalData, '\n')
finalData = append(finalData, probe...)
}
// Load all .lua files from scripts/ directory in deterministic order
if entries, err := os.ReadDir("scripts"); err == nil {
@@ -62,7 +66,7 @@ func init() {
}
rsp.DownloadData = &goproto.ClientDownloadData{
Version: 51,
Version: goproto.ClientDownloadDataLuaVersion,
Time: int64(rsp.ServerTimeMs),
Data: finalData,
}