refactor(config): rename package _config to config with cfg alias

The config package used `package _config` with a leading underscore,
which is unconventional in Go. Rename to `package config` (matching the
directory name) and use `cfg` as the standard import alias across all
93 importing files.
This commit is contained in:
Houmgaor
2026-02-21 13:20:15 +01:00
parent ad73f2fb55
commit f17cb96b52
98 changed files with 719 additions and 719 deletions

View File

@@ -2,7 +2,7 @@ package channelserver
import (
"erupe-ce/common/byteframe"
_config "erupe-ce/config"
cfg "erupe-ce/config"
"erupe-ce/network/mhfpacket"
"math/bits"
"time"
@@ -73,7 +73,7 @@ func handleMsgMhfGetEarthStatus(s *Session, p mhfpacket.MHFPacket) {
bf.WriteInt32(s.server.erupeConfig.EarthStatus)
bf.WriteInt32(s.server.erupeConfig.EarthID)
for i, m := range s.server.erupeConfig.EarthMonsters {
if s.server.erupeConfig.RealClientMode <= _config.G9 {
if s.server.erupeConfig.RealClientMode <= cfg.G9 {
if i == 3 {
break
}
@@ -157,12 +157,12 @@ const (
skinHistSizeZ1 = 1280 // Z1 and older
)
func equipSkinHistSize(mode _config.Mode) int {
func equipSkinHistSize(mode cfg.Mode) int {
size := skinHistSizeZZ
if mode <= _config.Z2 {
if mode <= cfg.Z2 {
size = skinHistSizeZ2
}
if mode <= _config.Z1 {
if mode <= cfg.Z1 {
size = skinHistSizeZ1
}
return size