forked from devcat-studio/VSCodeLuaDebug
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (27 loc) · 768 Bytes
/
Copy pathProgram.cs
File metadata and controls
29 lines (27 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
namespace GiderosPlayerRemote
{
class Program
{
class Logger : IRemoteControllerListener
{
void IRemoteControllerListener.X_Log(LogType logType, string content)
{
Console.WriteLine(logType + " " + content);
}
}
static void Main(string[] args)
{
var rc = new RemoteController();
//rc.Run("127.0.0.1", 15000, @"C:\dev\VSCodeLuaDebug\debuggee\gideros.gproj");
if (rc.TryStart("127.0.0.1", 15000, @"C:\dev\MTCG\MTCG.gproj", new Logger()))
{
rc.ReadLoop();
}
else
{
Console.WriteLine("connection failed");
}
}
}
}