Update GaCy-GO
This commit is contained in:
1 parent
da8a32f60d
commit
0cbe460e49
345 files changed
+98202
-77559
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user