Update GaCy-GO

This commit is contained in:
CAtlas0784 committed 2026-10-28 18:54:43 +07:00
1 parent da8a32f60d
commit 0cbe460e49
345 files changed
+98202 -77559

No files matched your search

+4 -4
View File
@@ -3,10 +3,10 @@ package gameserver
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"sort"
"sync"
"gac-hkrpg-go/internal/common"
)
// Tutorial IDs come from the installed Client resource tables, not a list
@@ -31,8 +31,8 @@ func getTutorialResourceIDs() ([]uint32, []uint32, error) {
} `json:"tutorial_guide_config"`
}
load := func(name string, dst any) error {
path := filepath.Join("resources", name)
data, err := os.ReadFile(path)
path := "resources/" + name
data, err := common.ReadResourceFile(path)
if err != nil {
return fmt.Errorf("tutorial resource %s: %w", path, err)
}