From 2379a325e515f1928a51e71ac6baa9b750805e9d Mon Sep 17 00:00:00 2001 From: SWY1985 Date: Fri, 13 Apr 2018 09:09:56 +0200 Subject: [PATCH] #453 Do not use Console in release builds --- runtime/sdl/src/Runtime.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/sdl/src/Runtime.cs b/runtime/sdl/src/Runtime.cs index dcab61e1..55fa4fa9 100644 --- a/runtime/sdl/src/Runtime.cs +++ b/runtime/sdl/src/Runtime.cs @@ -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");