// Write the EntryList to the server location
Write the EntryList to the server location
// Write the EntryList to the server location
func (e EntryList) Write() error {
	f := ini.NewFile([]ini.DataSource{nil}, ini.LoadOptions{
		IgnoreInlineComment: true,
	})
	_, err := f.NewSection("DEFAULT")
	if err != nil {
		return err
	}
	for k, v := range e {
		s, err := f.NewSection(k)
		if err != nil {
			return err
		}
		err = s.ReflectFrom(&v)
		if err != nil {
			return err
		}
	}
	return f.SaveTo(filepath.Join(ServerInstallPath, ServerConfigPath, entryListFilename))
}
func ( e EntryList ) Write ( ) error { f := ini . NewFile ( [ ] ini . DataSource { nil } , ini . LoadOptions { IgnoreInlineComment : true , } ) _ , err := f . NewSection ( " " ) if err != nil { return err } for k , v := range e { s , err := f . NewSection ( k ) if err != nil { return err } err = s . ReflectFrom ( & v ) if err != nil { return err } } return f . SaveTo ( filepath . Join ( ServerInstallPath , ServerConfigPath , entryListFilename ) ) }
Write the EntryList to the server location
Write the EntryList to the server location
// making and throwing away a default section due to the utter insanity of ini or assetto. i don't know which.