File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ func parseFlags() {
6666 config .ServerIP = * factorioIP
6767 config .ServerPort = * factorioPort
6868 config .FactorioSavesDir = filepath .Join (config .FactorioDir , "saves" )
69- config .FactorioModsDir = filepath .Join (config .FactorioDir , "/ mods" )
69+ config .FactorioModsDir = filepath .Join (config .FactorioDir , "mods" )
7070 config .FactorioConfigFile = filepath .Join (config .FactorioDir , * factorioConfigFile )
7171 config .FactorioBinary = filepath .Join (config .FactorioDir , * factorioBinary )
72- config .FactorioLog = filepath .Join (config .FactorioDir , "/ factorio-current.log" )
72+ config .FactorioLog = filepath .Join (config .FactorioDir , "factorio-current.log" )
7373 config .MaxUploadSize = * factorioMaxUpload
7474}
7575
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ func createModPackDir() error {
8888// returns ModList struct
8989func parseModList () (ModList , error ) {
9090 var mods ModList
91- modListFile := filepath .Join (config .FactorioModsDir , "/ mod-list.json" )
91+ modListFile := filepath .Join (config .FactorioModsDir , "mod-list.json" )
9292
9393 modList , err := ioutil .ReadFile (modListFile )
9494 if err != nil {
@@ -137,7 +137,7 @@ func (m *ModList) toggleMod(name string) error {
137137// Saves ModList object to mod-list.json file
138138// Overwrites old file
139139func (m ModList ) save () error {
140- modListFile := filepath .Join (config .FactorioModsDir , "/ mod-list.json" )
140+ modListFile := filepath .Join (config .FactorioModsDir , "mod-list.json" )
141141 b , _ := json .MarshalIndent (m , "" , " " )
142142
143143 err := ioutil .WriteFile (modListFile , b , 0644 )
You can’t perform that action at this time.
0 commit comments