Simplify GUI g_IsController variable init, equivalent to 100be98215.

Just test if a NetServer is present rather than passing a state boolean
from GUI page to GUI page.

This was SVN commit r21651.
This commit is contained in:
elexis
2018-04-04 12:43:25 +00:00
parent 100be98215
commit f4749a8e2c
5 changed files with 23 additions and 15 deletions
@@ -24,6 +24,7 @@
namespace JSI_Network
{
u16 GetDefaultPort(ScriptInterface::CxPrivate* pCxPrivate);
bool HasNetServer(ScriptInterface::CxPrivate* pCxPrivate);
bool HasNetClient(ScriptInterface::CxPrivate* pCxPrivate);
void StartNetworkGame(ScriptInterface::CxPrivate* pCxPrivate);
void SetNetworkGameAttributes(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue attribs1);