فهرست منبع

tools: silence subprocess output

Daniele Bartolini 6 سال پیش
والد
کامیت
3ca36d107f
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      tools/level_editor/level_editor.vala

+ 4 - 4
tools/level_editor/level_editor.vala

@@ -580,7 +580,7 @@ namespace Crown
 				null
 				null
 			};
 			};
 
 
-			GLib.SubprocessLauncher sl = new GLib.SubprocessLauncher(SubprocessFlags.NONE);
+			GLib.SubprocessLauncher sl = new GLib.SubprocessLauncher(SubprocessFlags.STDOUT_SILENCE | SubprocessFlags.STDERR_SILENCE);
 			sl.set_cwd(ENGINE_DIR);
 			sl.set_cwd(ENGINE_DIR);
 			try
 			try
 			{
 			{
@@ -648,7 +648,7 @@ namespace Crown
 				null
 				null
 			};
 			};
 
 
-			GLib.SubprocessLauncher sl = new GLib.SubprocessLauncher(SubprocessFlags.NONE);
+			GLib.SubprocessLauncher sl = new GLib.SubprocessLauncher(SubprocessFlags.STDOUT_SILENCE | SubprocessFlags.STDERR_SILENCE);
 			sl.set_cwd(ENGINE_DIR);
 			sl.set_cwd(ENGINE_DIR);
 			try
 			try
 			{
 			{
@@ -710,7 +710,7 @@ namespace Crown
 						null
 						null
 					};
 					};
 
 
-					GLib.SubprocessLauncher sl = new GLib.SubprocessLauncher(SubprocessFlags.NONE);
+					GLib.SubprocessLauncher sl = new GLib.SubprocessLauncher(SubprocessFlags.STDOUT_SILENCE | SubprocessFlags.STDERR_SILENCE);
 					sl.set_cwd(ENGINE_DIR);
 					sl.set_cwd(ENGINE_DIR);
 
 
 					try
 					try
@@ -774,7 +774,7 @@ namespace Crown
 					null
 					null
 				};
 				};
 
 
-				GLib.SubprocessLauncher sl = new GLib.SubprocessLauncher(SubprocessFlags.NONE);
+				GLib.SubprocessLauncher sl = new GLib.SubprocessLauncher(SubprocessFlags.STDOUT_SILENCE | SubprocessFlags.STDERR_SILENCE);
 				sl.set_cwd(ENGINE_DIR);
 				sl.set_cwd(ENGINE_DIR);
 				try
 				try
 				{
 				{