diff --git a/Code/Flowframes.csproj b/Code/Flowframes.csproj index 2bbd236..7b93659 100644 --- a/Code/Flowframes.csproj +++ b/Code/Flowframes.csproj @@ -251,7 +251,7 @@ - + diff --git a/Code/Logger.cs b/Code/IO/Logger.cs similarity index 88% rename from Code/Logger.cs rename to Code/IO/Logger.cs index 6f4c234..59c8660 100644 --- a/Code/Logger.cs +++ b/Code/IO/Logger.cs @@ -38,21 +38,21 @@ namespace Flowframes LogToFile(s, false, filename); } - public static void LogToFile(string s, bool noLineBreak, string filename) + public static void LogToFile(string logStr, bool noLineBreak, string filename) { if (string.IsNullOrWhiteSpace(filename)) filename = defaultLogName; file = Path.Combine(Paths.GetLogPath(), filename); - + logStr = logStr.Replace(Environment.NewLine, " | "); string time = DT.Now.Month + "-" + DT.Now.Day + "-" + DT.Now.Year + " " + DT.Now.Hour + ":" + DT.Now.Minute + ":" + DT.Now.Second; try { if (!noLineBreak) - File.AppendAllText(file, Environment.NewLine + time + ": " + s); + File.AppendAllText(file, Environment.NewLine + time + ": " + logStr); else - File.AppendAllText(file, " " + s); + File.AppendAllText(file, " " + logStr); } catch { diff --git a/Code/IO/Setup.cs b/Code/IO/Setup.cs index 3e47551..1f1094b 100644 --- a/Code/IO/Setup.cs +++ b/Code/IO/Setup.cs @@ -23,10 +23,6 @@ namespace Flowframes Application.Exit(); //new InstallerForm().ShowDialog(); } - else - { - - } } @@ -43,7 +39,7 @@ namespace Flowframes // if pkg is required and not installed, return false if (pkg.friendlyName.ToLower().Contains("required") && !PkgUtils.IsInstalled(pkg)) { - Logger.Log($"Required packages \"{pkg.friendlyName}\" was not found!", true); + Logger.Log($"Required package \"{pkg.friendlyName}\" was not found!", true); return false; } }