Can now handle non default player names.

This commit is contained in:
neviyn 2016-09-06 21:20:03 +01:00
parent f1986f54d5
commit 83d2bcc157

View File

@ -2,6 +2,11 @@ import os
echo("Input KSM directory")
let mainDir: string = readLine(stdin)
var playerName: string = ""
echo("If your ingame player name is not 'PLAYER' enter it now (otherwise press enter)")
playerName = readLine(stdin)
if playerName == "":
playerName = "PLAYER"
let userDir: string = mainDir & DirSep & "score" & DirSep & "PLAYER"
let outFileName: string = mainDir & DirSep & "songs" & DirSep & "Played.fav"
var f: File