////////////////////////////////////////////////////////////////////////// private ForceSocket() { string wsurl = CommandLineParms.String("wsserver"); if (wsurl != "") { _ws_url = wsurl; } }
///////////////////////////////////////////// private CrashReporter() { // if the ReportUrl is empty then try to pull the root server from the command line if (string.IsNullOrEmpty(ReportURL)) { string serverRoot = CommandLineParms.String("server"); // this should be something like http://127.0.0.1:61710 if (string.IsNullOrEmpty(serverRoot)) { Debug.LogWarning("CrashReporter URL not set, reports will not be enabled."); return; } ReportURL = serverRoot += "/$playercrash"; // the $playercrash handler parses and redirects to "http://bertec.com/_WBServices/unitycrashreport.php" } Application.logMessageReceivedThreaded += HandleLog; }