diff --git a/d2core/d2config/defaults.go b/d2core/d2config/defaults.go index cc9ad911..ce6fa305 100644 --- a/d2core/d2config/defaults.go +++ b/d2core/d2config/defaults.go @@ -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") } } diff --git a/d2core/d2hero/hero_state_factory.go b/d2core/d2hero/hero_state_factory.go index 2bf5446a..97708b95 100644 --- a/d2core/d2hero/hero_state_factory.go +++ b/d2core/d2hero/hero_state_factory.go @@ -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 { diff --git a/d2game/d2gamescreen/credits.go b/d2game/d2gamescreen/credits.go index 5a881912..85c96095 100644 --- a/d2game/d2gamescreen/credits.go +++ b/d2game/d2gamescreen/credits.go @@ -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!"}