From 83d2bcc15755877c56e9d44962e710d5f5c1553a Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Tue, 6 Sep 2016 21:20:03 +0100 Subject: [PATCH] Can now handle non default player names. --- ksmplayedsongs.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ksmplayedsongs.nim b/ksmplayedsongs.nim index d5c6ec4..2cd333a 100644 --- a/ksmplayedsongs.nim +++ b/ksmplayedsongs.nim @@ -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