|
|
@ -11,12 +11,6 @@ func createInitialFiles() { |
|
|
|
if _, err := os.Stat(config.NethackLauncher.HackDir); os.IsNotExist(err) { |
|
|
|
if _, err := os.Stat(config.NethackLauncher.HackDir); os.IsNotExist(err) { |
|
|
|
os.Mkdir(config.NethackLauncher.HackDir, os.ModeDir) |
|
|
|
os.Mkdir(config.NethackLauncher.HackDir, os.ModeDir) |
|
|
|
} |
|
|
|
} |
|
|
|
//if _, err := os.Stat(fmt.Sprintf("%s/dumps/", config.NethackLauncher.HackDir)); os.IsNotExist(err) {
|
|
|
|
|
|
|
|
// os.Mkdir(fmt.Sprintf("%s/dumps/", config.NethackLauncher.HackDir), os.ModeDir)
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
//if _, err := os.Stat(fmt.Sprintf("%s/save/", config.NethackLauncher.HackDir)); os.IsNotExist(err) {
|
|
|
|
|
|
|
|
// os.Mkdir(fmt.Sprintf("%s/save/", config.NethackLauncher.HackDir), os.ModeDir)
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// move in nhdat file if it does not exist
|
|
|
|
// move in nhdat file if it does not exist
|
|
|
|
if _, err := os.Stat(fmt.Sprintf("%s/nhdat", config.NethackLauncher.HackDir)); os.IsNotExist(err) { |
|
|
|
if _, err := os.Stat(fmt.Sprintf("%s/nhdat", config.NethackLauncher.HackDir)); os.IsNotExist(err) { |
|
|
|