We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faf59d6 commit fc7ec6cCopy full SHA for fc7ec6c
Libs/GameInfo/GameInfo.cs
@@ -83,7 +83,10 @@ internal static bool SetGameData(string directoryName)
83
private static string TryGetgameVersion(string logFile)
84
{
85
if (File.Exists(logFile) is false)
86
+ {
87
File.Create(logFile).Close();
88
+ return string.Empty;
89
+ }
90
using var sr = new StreamReader(logFile);
91
if (sr.ReadLine() is string line)
92
return Regex.Match(line, @"[0-9]+.[0-9]+[^ ]*").Value;
0 commit comments