1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-24 12:16:14 -04:00

fix permissions on .OpenDiablo2 directory (#144)

This commit is contained in:
Robin Eklind 2019-11-12 07:15:50 -06:00 committed by Tim Sarbin
parent a6a9434267
commit e1d9f676cf

View File

@ -121,7 +121,7 @@ func getGameBaseSavePath() string {
log.Panicf(err.Error())
}
basePath := path.Join(homeDir, ".OpenDiablo2", "Saves")
if err := os.MkdirAll(basePath, os.ModeDir); err != nil {
if err := os.MkdirAll(basePath, 0755); err != nil {
log.Panicf(err.Error())
}
// TODO: Is mac supposed to have a super special place for the save games?