mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-15 16:56:00 -05:00
No forward slashes in filepath.Join to satisfy golangci-lint
This commit is contained in:
parent
b18a70cef9
commit
d1c1e8bd26
@ -60,7 +60,7 @@ func DefaultConfig() *Configuration {
|
||||
}
|
||||
case "linux":
|
||||
if usr, err := user.Current(); err == nil {
|
||||
config.MpqPath = filepath.Join(usr.HomeDir, ".wine/drive_c/Program Files (x86)/Diablo II")
|
||||
config.MpqPath = filepath.Join(usr.HomeDir, ".wine", "drive_c", "Program Files (x86)", "Diablo II")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -223,7 +223,7 @@ func (f *HeroStateFactory) getGameBaseSavePath() (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return filepath.Join(configDir, "OpenDiablo2/Saves"), nil
|
||||
return filepath.Join(configDir, "OpenDiablo2", "Saves"), nil
|
||||
}
|
||||
|
||||
func (f *HeroStateFactory) getFirstFreeFileName() string {
|
||||
|
@ -72,7 +72,7 @@ type Credits struct {
|
||||
|
||||
// LoadContributors loads the contributors data from file
|
||||
func (v *Credits) LoadContributors() []string {
|
||||
file, err := os.Open(filepath.Join("./", "CONTRIBUTORS"))
|
||||
file, err := os.Open(filepath.Join(".", "CONTRIBUTORS"))
|
||||
if err != nil || file == nil {
|
||||
v.Warning("CONTRIBUTORS file is missing")
|
||||
return []string{"MISSING CONTRIBUTOR FILES!"}
|
||||
|
Loading…
Reference in New Issue
Block a user