mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-04-25 08:04:27 -05:00
Actually run the GenV server.
This commit is contained in:
parent
bb3727047d
commit
2b2c967e11
|
|
@ -68,6 +68,9 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="cert.pfx">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="pad.bin">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@ namespace PkmnFoundations.GlobalTerminalService
|
|||
InitializeComponent();
|
||||
}
|
||||
|
||||
private GTServer4 m_server;
|
||||
private GTServer4 m_server_4;
|
||||
private GTServer5 m_server_5;
|
||||
|
||||
protected override void OnStart(string[] args)
|
||||
{
|
||||
|
|
@ -25,13 +26,18 @@ namespace PkmnFoundations.GlobalTerminalService
|
|||
|
||||
public void Start()
|
||||
{
|
||||
m_server = new GTServer4();
|
||||
m_server.BeginPolling();
|
||||
m_server_4 = new GTServer4();
|
||||
m_server_4.BeginPolling();
|
||||
m_server_5 = new GTServer5();
|
||||
m_server_5.BeginPolling();
|
||||
}
|
||||
|
||||
protected override void OnStop()
|
||||
{
|
||||
if (m_server != null) m_server.EndPolling();
|
||||
if (m_server_4 != null) m_server_4.EndPolling();
|
||||
// fixme: it waits for the GenIV server to stop completely before
|
||||
// shutting down the GenV server. Should shut them both down async.
|
||||
if (m_server_5 != null) m_server_5.EndPolling();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
BIN
GlobalTerminalService/cert.pfx
Normal file
BIN
GlobalTerminalService/cert.pfx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user