func InitGeoIPDB() { if !config.Constants.GeoIP { return } var err error geodb, err = geoip2.FromBytes(assets.MustAsset("assets/geoip.mmdb")) if err != nil { logrus.Fatal(err.Error()) } }
func LoadLobbySettingsFromFile(fileName string) error { data := assets.MustAsset(fileName) return LoadLobbySettings(data) }