Skip to content

Commit

Permalink
#453 Do not use Console in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanWouters committed Apr 13, 2018
1 parent 9f58400 commit 2379a32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/sdl/src/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ public IBitmap Cursor
CursorChanged?.Invoke(this, EventArgs.Empty);
}
}

#if RELEASE
public void Log(string value, params object[] formatArgs) { }
#else
public void Log(string value, params object[] formatArgs) => Console.WriteLine(value, formatArgs);
#endif

Platform IRuntime.CurrentPlatform => Platform.Windows;
string IRuntime.StorageDirectory => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CivOne");
Expand Down

0 comments on commit 2379a32

Please sign in to comment.