mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 05:18:38 +00:00
31 lines
739 B
C#
31 lines
739 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Launch.Common {
|
|
public abstract class DebugHost {
|
|
protected string[] mArgs;
|
|
|
|
public DebugHost(string[] aArgs) {
|
|
mArgs = aArgs;
|
|
}
|
|
|
|
public int Go() {
|
|
try {
|
|
Console.WriteLine("Cosmos Visual Studio Debug Host.");
|
|
Console.WriteLine("Waiting for start signal.");
|
|
|
|
// This is here to allow this process to start, but pause till the caller tells it to continue.
|
|
Console.ReadLine();
|
|
|
|
return Run();
|
|
} catch (Exception e) {
|
|
Console.WriteLine(e.Message);
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
protected abstract int Run();
|
|
}
|
|
}
|