Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Jun 10, 2024
1 parent 8a3b0e9 commit 72e439d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Tools/MonoGame.Content.Builder/BuildContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ public void Build(out int successCount, out int errorCount)
var dstTime = File.GetLastWriteTimeUtc(dest);
if (srcTime <= dstTime)
{
if (!Quiet) {
if (!Quiet)
{
if (string.IsNullOrEmpty(c.Link))
Console.WriteLine("Skipping {0}", c.SourceFile);
else
Expand Down Expand Up @@ -485,7 +486,8 @@ public void Build(out int successCount, out int errorCount)

var buildTime = DateTime.UtcNow - startTime;

if (!Quiet) {
if (!Quiet)
{
if (string.IsNullOrEmpty(c.Link))
Console.WriteLine("{0}", c.SourceFile);
else
Expand Down
6 changes: 4 additions & 2 deletions Tools/MonoGame.Content.Builder/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ static int Main(string[] args)
{
var currentProcess = Process.GetCurrentProcess();
Console.WriteLine($"Waiting for debugger to attach ({currentProcess.MainModule.FileName} PID {currentProcess.Id}). Press any key to continue without debugger.");
while (!Debugger.IsAttached) {
if (Console.KeyAvailable) {
while (!Debugger.IsAttached)
{
if (Console.KeyAvailable)
{
break;
}
Thread.Sleep(100);
Expand Down

0 comments on commit 72e439d

Please sign in to comment.