diff options
-rw-r--r-- | Lingo.asl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lingo.asl b/Lingo.asl index ddd18d8..55a1df8 100644 --- a/Lingo.asl +++ b/Lingo.asl | |||
@@ -9,8 +9,13 @@ state("Lingo") {} | |||
9 | 9 | ||
10 | startup | 10 | startup |
11 | { | 11 | { |
12 | // Relative to Livesplit.exe | ||
13 | vars.logFilePath = Directory.GetCurrentDirectory() + "\\autosplitter_lingo.log"; | ||
12 | vars.log = (Action<string>)((string logLine) => { | 14 | vars.log = (Action<string>)((string logLine) => { |
13 | print("[Lingo ASL] " + logLine); | 15 | print("[Lingo ASL] " + logLine); |
16 | string time = System.DateTime.Now.ToString("dd/MM/yy hh:mm:ss.fff"); | ||
17 | // AppendAllText will create the file if it doesn't exist. | ||
18 | System.IO.File.AppendAllText(vars.logFilePath, time + ": " + logLine + "\r\n"); | ||
14 | }); | 19 | }); |
15 | 20 | ||
16 | settings.Add("every",false,"Split on every panel solve"); | 21 | settings.Add("every",false,"Split on every panel solve"); |