Skip to content

Commit

Permalink
Logger will create logs directory if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
severedsolo committed Feb 1, 2019
1 parent 6f23a66 commit 0852064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name = EngineFailureModule
baseChanceOfFailure = 0.11
expectedLifetime = 6
spaceEngineBaseChanceOfFailure = 0.1
spaceEngineExpectedLifetime = 3
spaceEngineBaseChanceOfFailure = 0.1
spaceEngineExpectedLifetime = 3
}
}
3 changes: 2 additions & 1 deletion OhScrap/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ class Logger : MonoBehaviour
string directory;
public void Awake()
{
logs.Add("Using Oh Scrap 1.4b5.1");
logs.Add("Using Oh Scrap 1.5.1");
instance = this;
directory = KSPUtil.ApplicationRootPath + "/GameData/Severedsolo/OhScrap/Logs/";
if (!Directory.Exists(directory)) Directory.CreateDirectory(directory);
DirectoryInfo source = new DirectoryInfo(directory);
foreach (FileInfo fi in source.GetFiles())
{
Expand Down

0 comments on commit 0852064

Please sign in to comment.