Пример #1
0
        //------------------------------------------------------------
        public void EnterFrame()
        {
            if (!m_IsRunning)
            {
                return;
            }

            m_Socket.Update();


            if (m_WaitForReconnect)
            {
                if (NetCheck.IsAvailable())
                {
                    Reconnect();
                }
                else
                {
                    Debuger.Log(LOG_TAG_MAIN, "EnterFrame() 等待重连,但是网络不可用!");
                }
            }

            if (m_WaitForSendAuth)
            {
                VerifyAuth();
            }
        }
Пример #2
0
        //------------------------------------------------------------
        public void EnterFrame()
        {
            if (!isRunning)
            {
                return;
            }

            m_Socket.Update();


            if (m_WaitForReconnect)
            {
                if (NetCheck.IsAvailable())
                {
                    Reconnect();
                }
                else
                {
                    MyLogger.Log(LOG_TAG_MAIN, "EnterFrame() wait for reconnection,but network is not available!");
                }
            }

            if (m_WaitForSendAuth)
            {
                VerifyAuth();
            }
        }
Пример #3
0
        private bool ChekInet()
        {
            bool inet = false;

            if (NetCheck.GetCheckForInternetConnection("https://www.google.com"))// проверка интернет соединения
            {
                return(true);
            }
            return(inet);
        }
Пример #4
0
        //------------------------------------------------------------
        public void EnterFrame()
        {
            if (!m_IsRunning)
            {
                return;
            }

            if (m_WaitForReconnect)
            {
                if (NetCheck.IsAvailable())
                {
                    Reconnect();
                }
            }

            if (m_WaitForSendAuth)
            {
                VerifyAuth();
            }
        }
Пример #5
0
        //------------------------------------------------------------
        public void EnterFrame()
        {
            if (!m_IsRunning)
            {
                return;
            }

            if (m_SendIntervalDefault != m_SendIntervalWifi)
            {
                m_UseWifiOptimize = NetCheck.isWifi();
            }

            if (m_WaitForReconnect)
            {
                if (NetCheck.isAvailable())
                {
                    Reconnect();
                }
                else
                {
                    Debuger.Log(LOG_TAG_MAIN, "EnterFrame() 等待重连,但是网络不可用!");
                }
            }

            bool gsdk_need_send_auth = false;

            gsdk_need_send_auth = GSDKManager.Instance.IsNeedSendAuth;
            if (gsdk_need_send_auth)
            {
                Debuger.Log(LOG_TAG_MAIN, "EnterFrame() gsdk_need_send_auth = {0}", gsdk_need_send_auth);
                VerifyAuth();
                GSDKManager.Instance.ResetSendAuth();
            }

            if (m_WaitForSendAuth)
            {
                Debuger.Log(LOG_TAG_MAIN, "EnterFrame() m_CheckFSPTimeoutSeq = {0}", m_CheckFSPTimeoutSeq);
                VerifyAuth();
            }
        }
Пример #6
0
        /// <summary>
        ///     Main function, the args arent used though
        /// </summary>
        /// <param name="args">dunno why these are here</param>
        public static void Main_DEPRECIATED(string[] args)
        {
            JsonCommon.OverrideModInstallerVariables();
            //exe check
            Console.WriteLine("Detecting if " + ModInstallerCommon.Files.execdir + " exists...");
            if (!File.Exists(ModInstallerCommon.Files.execdir) && !ModInstallerCommon.BypassExec)
            {
                ModInstallerCommon.throwexept("H3VR not found!");
                return;
            }

            Console.WriteLine("H3VR found!");
            //online check
            if (!NetCheck.isOnline(ModInstallerCommon.Pingsite))
            {
                ModInstallerCommon.throwexept("Cannot connect to github!");
                return;
            }

            Console.WriteLine("Welcome to the H3VR Mod installer!");
            Console.WriteLine("Please select the mod you would like to install using 'dl [modnamehere]' ");
            Console.WriteLine("ex: 'dl wurstmod'");
            Console.WriteLine("To see a list of downloadable mods, type 'modlists'");
            Console.WriteLine("To see a list of commands, type 'help' \n");
Start:
            var input = Console.ReadLine();

            var inputargs = input.Split(' ');

            Array.Resize(ref inputargs, 10); //ensures no "OUT OF INDEX TIME TO SHIT MYSELF REEEE"


            doCommand(inputargs);

            Console.WriteLine("");
            goto Start;
        }