コード例 #1
0
ファイル: NrNetBase.cs プロジェクト: parikharsh/GLOH_Source
        private bool UpdateBuffer()
        {
            NrTSingleton <NrMainSystem> .Instance.CheckSpentTime(eMSTime.MS_None);

            bool flag = this.m_Buffer.Receive(this.m_Socket, SocketFlags.None);

            if (flag)
            {
                int num = this.ReceiveBuffer(this.m_Buffer.Buffer, this.m_Buffer.Index, this.m_Buffer.Index + this.m_Buffer.TotalLen);
                this.m_Buffer.ReceivedComplete(num);
                this.m_nTotalReceivePacketSize += (long)num;
                if (this.m_nTotalReceivePacketSize - this.m_nPacketSizeLog >= 1048576L)
                {
                    TsPlatform.FileLog(string.Concat(new object[]
                    {
                        "RECEIVE ===> Total ReceivePacket Size : ",
                        this.m_nTotalReceivePacketSize.ToString(),
                        " (startup : ",
                        Time.realtimeSinceStartup,
                        " sec)"
                    }));
                    this.m_nPacketSizeLog = this.m_nTotalReceivePacketSize;
                }
            }
            NrTSingleton <NrMainSystem> .Instance.CheckSpentTime(eMSTime.MS_NetBase);

            return(flag);
        }
コード例 #2
0
 private bool ReadFinalList(ref NDataReader dr)
 {
     this._OutputDebug(string.Format("$$$SysConfig:ReadFinalPatchList! TsCaching.useCustomCacheOnly = {0}", TsCaching.useCustomCacheOnly));
     this.m_LoadPatchListVersion = 0;
     this.m_LoadPatchListVersion = dr["[Header]"]["PatchVersion"];
     TsPlatform.FileLog("test 1 m_LoadPatchListVersion = " + this.m_LoadPatchListVersion.ToString());
     if (dr.BeginSection("[FinalList]"))
     {
         while (!dr.IsEndOfSection())
         {
             NDataReader.Row currentRow = dr.GetCurrentRow();
             if (currentRow.LineType == NDataReader.Row.TYPE.LINE_DATA)
             {
                 PatchFileInfo patchFileInfo = new PatchFileInfo();
                 patchFileInfo.Version  = ((1 >= currentRow.Values.Count) ? 0 : Convert.ToInt32(currentRow.GetColumn(1)));
                 patchFileInfo.FileSize = ((2 >= currentRow.Values.Count) ? 0 : Convert.ToInt32(currentRow.GetColumn(2)));
                 string text = currentRow.GetColumn(0).ToLower();
                 patchFileInfo.bUseCustomCache = this.CheckCustomCache(text);
                 if (this.FilesList.ContainsKey(text))
                 {
                     this._OutputDebug(string.Format("이미 등록된 파일명입니다!! {0}", text));
                     return(false);
                 }
                 this.FilesList.Add(text, patchFileInfo);
             }
             dr.NextLine();
         }
         return(true);
     }
     return(false);
 }
コード例 #3
0
    public void PurchaseComplete(string strParam)
    {
        TsLog.LogError("PurchaseComplete = {0}", new object[]
        {
            strParam
        });
        string[] array = strParam.Split(new char[]
        {
            '\n'
        });
        string text = string.Empty;

        if (!string.IsNullOrEmpty(this.Receipt.ToString()))
        {
            this.Receipt.Append("&");
        }
        string[] array2 = array;
        for (int i = 0; i < array2.Length; i++)
        {
            string text2 = array2[i];
            if (text2.Contains("product_id"))
            {
                text = text2.Substring("product_id:".Length);
                this.Receipt.Append("product_id=" + text);
                break;
            }
        }
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo != null)
        {
            GS_BILLINGCHECK_REQ gS_BILLINGCHECK_REQ = new GS_BILLINGCHECK_REQ();
            gS_BILLINGCHECK_REQ.i64ItemMallIndex = NrTSingleton <ItemMallItemManager> .Instance.GetItemIndex(text);

            TKString.StringChar(this.m_strTid, ref gS_BILLINGCHECK_REQ.UniqueCode);
            TKString.StringChar(this.Receipt.ToString(), ref gS_BILLINGCHECK_REQ.Receipt);
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BILLINGCHECK_REQ, gS_BILLINGCHECK_REQ);
            PlayerPrefs.SetString(NrPrefsKey.SHOP_PRODUCT_ID, gS_BILLINGCHECK_REQ.i64ItemMallIndex.ToString());
            PlayerPrefs.SetString(NrPrefsKey.SHOP_RECEIPT, this.Receipt.ToString());
            TsPlatform.FileLog(string.Format("TStorePurchaseComplete\nReceipt ={0} ProductID = {1} ItemMallIdex = {2}", this.Receipt, text, gS_BILLINGCHECK_REQ.i64ItemMallIndex));
            TsLog.LogWarning("Send BillingCheck ProductID = {0} ItemMallIdex = {1}", new object[]
            {
                text,
                gS_BILLINGCHECK_REQ.i64ItemMallIndex
            });
            this.Receipt.Remove(0, this.Receipt.Length);
        }
        GS_BILLING_ITEM_RECODE_REQ gS_BILLING_ITEM_RECODE_REQ = new GS_BILLING_ITEM_RECODE_REQ();

        gS_BILLING_ITEM_RECODE_REQ.i8Type           = 1;
        gS_BILLING_ITEM_RECODE_REQ.i8Result         = 0;
        gS_BILLING_ITEM_RECODE_REQ.i64ItemMallIndex = NrTSingleton <ItemMallItemManager> .Instance.GetItemIndex(text);

        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BILLING_ITEM_RECODE_REQ, gS_BILLING_ITEM_RECODE_REQ);
        NrTSingleton <NrMainSystem> .Instance.m_bIsBilling = false;
    }
コード例 #4
0
    public void RecoveryItem()
    {
        this.m_RecoveryItem = this.m_PushPurchaseList.Pop();
        if (this.m_RecoveryItem != null)
        {
            this.Receipt.Remove(0, this.Receipt.Length);
            string arg = string.Concat(new object[]
            {
                "{\"orderId\":\"",
                this.m_RecoveryItem.orderId,
                "\",\"packageName\":\"",
                this.m_RecoveryItem.packageName,
                "\",\"productId\":\"",
                this.m_RecoveryItem.productId,
                "\",\"purchaseTime\":",
                this.m_RecoveryItem.purchaseTime,
                ",\"purchaseState\":",
                (int)this.m_RecoveryItem.purchaseState,
                ",\"developerPayload\":\"",
                this.m_RecoveryItem.developerPayload,
                "\",\"purchaseToken\":\"",
                this.m_RecoveryItem.purchaseToken,
                "\"}"
            });
            this.Receipt.Append(string.Format("MarketType={0}&Signature={1}&SignedData={2}", "android", this.m_RecoveryItem.signature, arg));
            NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

            if (myCharInfo != null)
            {
                GS_BILLINGCHECK_REQ gS_BILLINGCHECK_REQ = new GS_BILLINGCHECK_REQ();
                gS_BILLINGCHECK_REQ.i64ItemMallIndex = NrTSingleton <ItemMallItemManager> .Instance.GetItemIndex(this.m_RecoveryItem.productId);

                gS_BILLINGCHECK_REQ.SN = myCharInfo.m_SN;
                TKString.StringChar(this.Receipt.ToString(), ref gS_BILLINGCHECK_REQ.Receipt);
                SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BILLINGCHECK_REQ, gS_BILLINGCHECK_REQ);
                TsPlatform.FileLog(string.Format("GooglePurchaseComplete\nReceipt ={0} ProductID = {1} ItemMallIdex = {2}", this.Receipt, this.m_RecoveryItem.productId, gS_BILLINGCHECK_REQ.i64ItemMallIndex));
                GS_BILLING_ITEM_RECODE_REQ gS_BILLING_ITEM_RECODE_REQ = new GS_BILLING_ITEM_RECODE_REQ();
                gS_BILLING_ITEM_RECODE_REQ.i8Type           = 2;
                gS_BILLING_ITEM_RECODE_REQ.i8Result         = 0;
                gS_BILLING_ITEM_RECODE_REQ.i64ItemMallIndex = gS_BILLINGCHECK_REQ.i64ItemMallIndex;
                SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BILLING_ITEM_RECODE_REQ, gS_BILLING_ITEM_RECODE_REQ);
                PlayerPrefs.SetString(NrPrefsKey.SHOP_PRODUCT_ID, gS_BILLINGCHECK_REQ.i64ItemMallIndex.ToString());
                PlayerPrefs.SetString(NrPrefsKey.SHOP_RECEIPT, this.Receipt.ToString());
                if (TsPlatform.IsBand)
                {
                    PlayerPrefs.SetString(NrPrefsKey.BAND_RECEIPT, this.m_RecoveryItem.orderId);
                }
            }
        }
        else
        {
            this.m_bRecovery = false;
        }
    }
コード例 #5
0
        private static void _AddTo(string stackName, WWWItem value)
        {
            Dictionary <string, WWWItem> dictionary = Holder._FindStack(stackName);

            if (dictionary.ContainsKey(value.assetPath))
            {
                TsPlatform.FileLog("already added key = " + value.assetPath + ", Name = " + value.assetName);
                return;
            }
            dictionary.Add(value.assetPath, value);
        }
コード例 #6
0
    public void RecoveryItem()
    {
        this.m_RecoveryItem = this.m_PushPurchaseList.Pop();
        if (this.m_RecoveryItem != null)
        {
            this.Receipt.Remove(0, this.Receipt.Length);
            string arg = string.Empty;
            this.NStorePurchase(this.m_RecoveryItem.getOriginalPurchaseAsJsonText().dictionaryFromJson(), ref this.strProductID);
            arg = this.m_RecoveryItem.getSignature();
            if (TsPlatform.IsBand)
            {
                this.Receipt.Append(string.Format("MarketType={0}&Signature={1}&SignedData={2}", "bandnaver", arg, this.m_RecoveryItem.getOriginalPurchaseAsJsonText()));
            }
            else
            {
                this.Receipt.Append(string.Format("MarketType={0}&Signature={1}&SignedData={2}", "naver", arg, this.m_RecoveryItem.getOriginalPurchaseAsJsonText()));
            }
            NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

            if (myCharInfo != null)
            {
                GS_BILLINGCHECK_REQ gS_BILLINGCHECK_REQ = new GS_BILLINGCHECK_REQ();
                gS_BILLINGCHECK_REQ.i64ItemMallIndex = NrTSingleton <ItemMallItemManager> .Instance.GetItemIndex(this.strProductID);

                TKString.StringChar(this.Receipt.ToString(), ref gS_BILLINGCHECK_REQ.Receipt);
                SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BILLINGCHECK_REQ, gS_BILLINGCHECK_REQ);
                PlayerPrefs.SetString(NrPrefsKey.SHOP_PRODUCT_ID, gS_BILLINGCHECK_REQ.i64ItemMallIndex.ToString());
                PlayerPrefs.SetString(NrPrefsKey.SHOP_RECEIPT, this.Receipt.ToString());
                if (TsPlatform.IsBand)
                {
                    PlayerPrefs.SetString(NrPrefsKey.BAND_RECEIPT, this.m_RecoveryItem.getOriginalPurchaseAsJsonText());
                }
                TsPlatform.FileLog(string.Format("TStorePurchaseComplete\nReceipt ={0} ProductID = {1} ItemMallIdex = {2}", this.Receipt, this.strProductID, gS_BILLINGCHECK_REQ.i64ItemMallIndex));
                TsLog.LogWarning("Send BillingCheck ProductID = {0} ItemMallIdex = {1}", new object[]
                {
                    this.strProductID,
                    gS_BILLINGCHECK_REQ.i64ItemMallIndex
                });
                this.Receipt.Remove(0, this.Receipt.Length);
            }
            GS_BILLING_ITEM_RECODE_REQ gS_BILLING_ITEM_RECODE_REQ = new GS_BILLING_ITEM_RECODE_REQ();
            gS_BILLING_ITEM_RECODE_REQ.i8Type           = 1;
            gS_BILLING_ITEM_RECODE_REQ.i8Result         = 0;
            gS_BILLING_ITEM_RECODE_REQ.i64ItemMallIndex = NrTSingleton <ItemMallItemManager> .Instance.GetItemIndex(this.strProductID);

            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BILLING_ITEM_RECODE_REQ, gS_BILLING_ITEM_RECODE_REQ);
            NrTSingleton <NrMainSystem> .Instance.m_bIsBilling = false;
        }
        else
        {
            this.m_bRecovery = false;
        }
    }
コード例 #7
0
 public void On_ClickBT_Select3(IUIObject a_cObject)
 {
     if (a_cObject == null)
     {
         return;
     }
     if (TsPlatform.IsIPad() || TsPlatform.IsIPhone)
     {
         return;
     }
     this.OnClose();
     NrTSingleton <NrMainSystem> .Instance.QuitGame(false);
 }
コード例 #8
0
 public void ShowDrawHide(bool bShow)
 {
     this.m_LB_Label01.Hide(bShow);
     this.m_DT_LabelBG01.Hide(bShow);
     this.m_DT_LabelBG02.Hide(bShow);
     this.m_BT_Select01.Hide(bShow);
     this.m_BT_Select02.Hide(bShow);
     this.m_BT_Select03.Hide(bShow);
     if (TsPlatform.IsIPad() || TsPlatform.IsIPhone)
     {
         this.m_BT_Select03.Visible = false;
     }
 }
コード例 #9
0
 private static void RecodeMomorySize(float curTime)
 {
     try
     {
         if (curTime > AutoMemoryCleanUp.m_fMemCheckTime)
         {
             AutoMemoryCleanUp.m_fMemCheckTime = curTime + AutoMemoryCleanUp.MEM_CHECK_TIME;
             NrTSingleton <NrMainSystem> .Instance.AppMemory = TsPlatform.Operator.GetAppMemory();
             TsPlatform.FileLog(string.Format("Stage : {0}  Memory : {1} ", Scene.CurScene, NrTSingleton <NrMainSystem> .Instance.AppMemory));
         }
     }
     catch (Exception message)
     {
         UnityEngine.Debug.LogError(message);
     }
 }
コード例 #10
0
        private void SendSocket(int _idType, object _Obj)
        {
            byte[]       array = null;
            PacketHeader packetHeader;

            if (_Obj != null)
            {
                array             = this.RawSerialize(_Obj);
                packetHeader      = new PacketHeader();
                packetHeader.size = (short)array.Length;
                packetHeader.type = _idType;
            }
            else
            {
                packetHeader = new PacketHeader(_idType);
            }
            byte[] array2 = this.RawSerialize(packetHeader);
            if (this.m_Socket != null)
            {
                this.mBuffer.InsertMerge(array2, array);
                this.mBuffer.Send(this.m_Socket, this.mEncrypt);
                this.m_nTotalSendPacketSize += (long)(array2.Length + (int)packetHeader.size);
                if (this.m_nTotalSendPacketSize - this.m_nPacketSizeLog >= 1048576L)
                {
                    TsPlatform.FileLog(string.Concat(new object[]
                    {
                        "SEND ===> Total SendPacket Size : ",
                        this.m_nTotalSendPacketSize.ToString(),
                        " (startup : ",
                        Time.realtimeSinceStartup,
                        " sec)"
                    }));
                    Debug.LogError(string.Concat(new object[]
                    {
                        "SEND ===> Total SendPacket Size : ",
                        this.m_nTotalSendPacketSize.ToString(),
                        " (startup : ",
                        Time.realtimeSinceStartup,
                        " sec)"
                    }));
                    this.m_nPacketSizeLog = this.m_nTotalSendPacketSize;
                }
            }
        }
コード例 #11
0
    public void SetPlatformPath()
    {
        string text = string.Empty;

        if (TsPlatform.IsEditor)
        {
            text = string.Format("{0}/Mobile/", NrTSingleton <NrGlobalReference> .Instance.basePath);
        }
        else if (TsPlatform.IsIPhone)
        {
            text = string.Format("{0}/at2/cacheroot/", TsPlatform.Operator.GetFileDir());
        }
        else if (TsPlatform.IsAndroid)
        {
            text = string.Format("{0}/at2/cacheroot/", TsPlatform.Operator.GetFileDir());
        }
        else
        {
            TsLog.Assert(false, "Unknown Platform", new object[0]);
        }
        this.m_strLocalFilePath = text;
        Option.SetProtocolRootPath(Protocol.FILE, text);
        UnityEngine.Debug.LogWarning("StageNPatchLauncher : " + text);
        this.m_strWebPath = Option.GetProtocolRootPath(Protocol.HTTP);
        TsLog.LogWarning("HttpPath[{0}] Cachepath[{1}]", new object[]
        {
            this.m_strWebPath,
            text
        });
        TsPlatform.FileLog("HttpPath = " + this.m_strWebPath + ", CacheDpath = " + text);
        NrTSingleton <NrGlobalReference> .Instance.localWWW = true;
        NrTSingleton <NrGlobalReference> .Instance.useCache = true;
        TsCaching.InitiailzeCustomCaching(this.m_strWebPath, text);
        Caching.maximumAvailableDiskSpace = (long)(1048576 * StageNPatchLauncher.UNITY_CACHE_SIZE);
        if (TsPlatform.IsAndroid)
        {
            NrTSingleton <NrGlobalReference> .Instance.STR_MOBILE_VER = TsPlatform.APP_VERSION_AND;
        }
        else if (TsPlatform.IsIPhone || TsPlatform.IsIPad())
        {
            NrTSingleton <NrGlobalReference> .Instance.STR_MOBILE_VER = TsPlatform.APP_VERSION_IOS;
        }
    }
コード例 #12
0
 public void PurchasesignData(string strParam)
 {
     TsPlatform.FileLog(string.Format("PurchasesignData signData ={0} ", strParam));
     this.Receipt.Remove(0, this.Receipt.Length);
     TsLog.Log("{0}", new object[]
     {
         strParam
     });
     this.Receipt.Append("MarketType=tstore");
     string[] array = strParam.Split(new char[]
     {
         ','
     });
     string[] array2 = array;
     for (int i = 0; i < array2.Length; i++)
     {
         string   text   = array2[i];
         string[] array3 = text.Split(new char[]
         {
             ':'
         });
         Debug.Log("Param Count =" + array3.Length);
         if (!string.IsNullOrEmpty(this.Receipt.ToString()))
         {
             this.Receipt.Append("&");
         }
         if (array3[0].Contains("signdata"))
         {
             this.Receipt.Append(string.Format("signdata={0}", array3[1]));
         }
         if (array3[0].Contains("txid"))
         {
             this.Receipt.Append(string.Format("txid={0}", array3[1]));
         }
         if (array3[0].Contains("appid"))
         {
             this.Receipt.Append(string.Format("appid={0}", array3[1]));
         }
     }
 }
コード例 #13
0
    public override void OnEnter()
    {
        string text = string.Format("{0} OnEnter OnEnter Memory = {1}MB", base.GetType().FullName, NrTSingleton <NrMainSystem> .Instance.AppMemory);

        TsPlatform.FileLog(text);
        TsLog.LogWarning(text, new object[0]);
        TsLog.Log("====== {0}.OnEnter", new object[]
        {
            base.GetType().FullName
        });
        Scene.ChangeSceneType(this.SceneType());
        NrMainSystem.CheckAndSetReLoginMainCamera();
        Camera.main.gameObject.AddComponent <DefaultCameraController>();
        TsCaching.useCustomCacheOnly = true;
        base.StartTaskSerial(CommonTasks.InitializeChangeScene());
        base.StartTaskSerial(this._RequestPredownloadTables());
        base.StartTaskSerial(this._CheckRePredownload(1));
        base.StartTaskSerial(this._CheckRePredownload(2));
        base.StartTaskSerial(this._CheckRePredownload(3));
        base.StartTaskSerial(this._DownloadAssetBundles());
        base.StartTaskSerial(CommonTasks.FinalizeChangeScene(true));
        base.StartTaskPararell(this._PredownloadProgressUpdate());
    }
コード例 #14
0
 public override void OnEnter()
 {
     TsLog.Log("====== {0}.OnEnter", new object[]
     {
         base.GetType().FullName
     });
     if (TsPlatform.IsLowSystemMemory)
     {
         TsSceneSwitcher.Instance.DeleteScene(TsSceneSwitcher.ESceneType.WorldScene);
         Holder.ClearStackItem(Option.IndependentFromStageStackName, false);
         base.StartTaskSerial(CommonTasks.LoadEmptyMainScene());
         base.StartTaskSerial(CommonTasks.MemoryCleaning(true, 8));
     }
     TsPlatform.FileLog("SoldierBatch OnEnter Mem=" + NrTSingleton <NrMainSystem> .Instance.AppMemory);
     Scene.ChangeSceneType(this.SceneType());
     if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_PLUNDER || SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_INFIBATTLE || SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_PRACTICE_INFIBATTLE)
     {
         base.StartTaskSerial(CommonTasks.DownloadAsset(string.Format("Effect/Instant/fx_plunderloading{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset), new PostProcPerItem(this._fundPlunderPrepareLoading), null, true));
     }
     else if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_BABEL_TOWER || SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MINE_MAKEUP || SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_GUILDBOSS_MAKEUP || SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MYTHRAID || SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_DAILYDUNGEON)
     {
         string path = string.Format("Effect/Instant/fx_direct_chaostower_gate{0}{1}", NrTSingleton <UIDataManager> .Instance.AddFilePath, Option.extAsset);
         base.StartTaskSerial(CommonTasks.DownloadAsset(path, new PostProcPerItem(this._fundPlunderPrepareLoading), null, true));
     }
     base.StartTaskSerial(CommonTasks.InitializeChangeScene());
     base.StartTaskSerial(CommonTasks.ExceptMuteAudioOnOff(EAudioType.UI, true));
     base.StartTaskSerial(this._StageProcess());
     base.StartTaskSerial(this._StageAfterPlunderMapLoadProcess());
     base.StartTaskSerial(CommonTasks.MemoryCleaning(true, 8));
     base.StartTaskSerial(CommonTasks.ExceptMuteAudioOnOff(EAudioType.UI, false));
     base.StartTaskSerial(this._StageStartPlunderPrepare());
     base.StartTaskSerial(CommonTasks.LoadEnvironment(true));
     base.StartTaskSerial(CommonTasks.FinalizeChangeScene(true));
     base.StartTaskSerial(this._StageLoadingComplete());
     base.StartTaskPararell(CommonTasks.WaitGoToBattleSoldierBatch());
 }
コード例 #15
0
 public static void ChagneResolution()
 {
     if (TsPlatform.IsMobile)
     {
         Screen.sleepTimeout = -1;
         if (Screen.width > 1280)
         {
             if (TsPlatform.IsAndroid)
             {
                 if (Screen.width == 2048)
                 {
                     Screen.SetResolution(Screen.width / 2, Screen.height / 2, true);
                 }
                 else if (NrTSingleton <ScreenSizeManager> .Instance.IsScreen4_3())
                 {
                     Screen.SetResolution(1024, 768, true);
                 }
                 else
                 {
                     Screen.SetResolution(1280, 720, true);
                 }
             }
             else if (Screen.width == 2048)
             {
                 Screen.SetResolution(1024, 768, true);
             }
             else
             {
                 Screen.SetResolution(1280, 720, true);
             }
         }
         Application.runInBackground    = true;
         LightmapSettings.lightmapsMode = LightmapsMode.Single;
         TsPlatform.FileLog("==== CHANGE RESOULUTION =======");
     }
 }
コード例 #16
0
    public void RequestLogin()
    {
        NrTSingleton <NkClientLogic> .Instance.SetLoginGameServer(true);

        Debug.LogWarning("========== NrMobileAuthSystem.RequestLogin : SetLoginGameServer true ----- ");
        string @string = PlayerPrefs.GetString(NrPrefsKey.PLAYER_PREFS_MOBILEAUTHKEY);
        string uRL     = string.Empty;
        byte   b       = 3;
        string text    = string.Empty;

        if (TsPlatform.IsAndroid)
        {
            b    = 2;
            text = TsPlatform.APP_VERSION_AND;
        }
        else if (TsPlatform.IsIPhone)
        {
            b    = 1;
            text = TsPlatform.APP_VERSION_IOS;
        }
        TsLog.LogError("AUTHKEY = {0}  SERVICECODE = {1}", new object[]
        {
            @string,
            NrGlobalReference.SERVICECODE
        });
        if (!string.IsNullOrEmpty(@string) && @string.Length > 0 && !NrTSingleton <NrGlobalReference> .Instance.IsLocalServiceArea())
        {
            uRL = string.Format("{0}://{1}/mobile/android_server_ck.aspx?authkey={2}&platform={3}&GameVer={4}&HpType={5}&HpOS={6}&HpMem={7}", new object[]
            {
                (!NrTSingleton <NrGlobalReference> .Instance.IsLocalServiceArea()) ? "https" : "http",
                NrGlobalReference.strWebPageDomain,
                @string,
                b.ToString(),
                text,
                SystemInfo.deviceModel,
                SystemInfo.operatingSystem,
                SystemInfo.systemMemorySize
            });
            TsPlatform.Operator.OpenURL(uRL, this, true, true, false, true);
        }
        else
        {
            if (TsPlatform.IsAndroid)
            {
                uRL = string.Format("{0}://{1}/mobile/login.aspx?clientpath={2}&device={3}&platform={4}&GameVer={5}&HpType={6}&HpOS={7}&HpMem={8}", new object[]
                {
                    (!NrTSingleton <NrGlobalReference> .Instance.IsLocalServiceArea()) ? "https" : "http",
                    NrGlobalReference.strWebPageDomain,
                    NrGlobalReference.SERVICECODE,
                    TsPlatform.Operator.GetMobileDeviceId(),
                    b.ToString(),
                    text,
                    SystemInfo.deviceModel,
                    SystemInfo.operatingSystem,
                    SystemInfo.systemMemorySize
                });
            }
            else if (TsPlatform.IsIPhone || TsPlatform.IsIPad())
            {
                uRL = string.Format("{0}://{1}/mobile/login.aspx?clientpath={2}&device={3}&platform={4}&GameVer={5}&HpType={6}&HpMem={7}", new object[]
                {
                    (!NrTSingleton <NrGlobalReference> .Instance.IsLocalServiceArea()) ? "https" : "http",
                    NrGlobalReference.strWebPageDomain,
                    NrGlobalReference.SERVICECODE,
                    TsPlatform.Operator.GetMobileDeviceId(),
                    b.ToString(),
                    text,
                    SystemInfo.deviceModel,
                    SystemInfo.systemMemorySize
                });
            }
            TsPlatform.Operator.OpenURL(uRL, this, true, true, false, true);
        }
    }
コード例 #17
0
 public void ChangeEdgeDataCDNPath()
 {
     Option.SetProtocolRootPath(this.m_kCurrentServiceAreaInfo.eProtocolType, this.m_kCurrentServiceAreaInfo.szEdgeDataCDNPath);
     TsPlatform.FileLog("EdgeCDNPath = " + this.m_kCurrentServiceAreaInfo.szEdgeDataCDNPath);
 }
コード例 #18
0
    private void SetCurrentServiceAreaInfo(string servicekey)
    {
        NkServiceAreaInfo nkServiceAreaInfo = this.FindServiceArea(servicekey);

        if (nkServiceAreaInfo == null)
        {
            UnityEngine.Debug.LogError("##### Game service area can't find. ###### - " + servicekey);
            if (TsPlatform.IsAndroid)
            {
                this.m_kCurrentServiceAreaInfo = this.FindServiceArea(eSERVICE_AREA.SERVICE_ANDROID_KORLOCAL.ToString());
            }
            else if (TsPlatform.IsIPhone)
            {
                this.m_kCurrentServiceAreaInfo = this.FindServiceArea(eSERVICE_AREA.SERVICE_IOS_KORLOCAL.ToString());
            }
            Option.SetProtocolRootPath(Protocol.FILE, "/D:/ndoors/at2dev/Mobile/");
            PlayerPrefs.SetString(NrPrefsKey.LOCAL_WWW_PATH, "file:///D:/ndoors/at2dev/Mobile/");
            this.localWWW = true;
            this.useCache = false;
        }
        else
        {
            this.m_kCurrentServiceAreaInfo = nkServiceAreaInfo;
            Option.SetProtocolRootPath(nkServiceAreaInfo.eProtocolType, nkServiceAreaInfo.szOriginalDataCDNPath);
            TsPlatform.FileLog("OriginalCDNPath = " + nkServiceAreaInfo.szOriginalDataCDNPath);
            if (nkServiceAreaInfo.eProtocolType == Protocol.FILE)
            {
                this.localWWW = true;
                this.useCache = false;
            }
            else
            {
                this.localWWW = false;
                this.useCache = true;
            }
            if (!PlayerPrefs.HasKey(NrPrefsKey.BASE_PATH))
            {
                PlayerPrefs.SetString(NrPrefsKey.BASE_PATH, servicekey);
            }
            if (!PlayerPrefs.HasKey(nkServiceAreaInfo.szPrefsKey))
            {
                PlayerPrefs.SetString(nkServiceAreaInfo.szPrefsKey, Option.GetProtocolRootPath(nkServiceAreaInfo.eProtocolType));
            }
            if (!this.PUBLICMODE.Equals("no"))
            {
                int num = UnityEngine.Random.Range(0, 3);
                if (num >= 3)
                {
                    num = 2;
                }
                NrGlobalReference.strLoginServerIP = nkServiceAreaInfo.szLoginIP[num];
                NrGlobalReference.strWebPageDomain = nkServiceAreaInfo.szWebDomain;
            }
            else
            {
                NrGlobalReference.strLoginServerIP = nkServiceAreaInfo.szPrivateIP;
                NrGlobalReference.strWebPageDomain = nkServiceAreaInfo.szPrivateDomain;
                NkServiceAreaInfo expr_186 = nkServiceAreaInfo;
                expr_186.szImageURL += "de";
            }
            TsLog.LogWarning("LoginServerIP : {0}, WebPageDomain : {1}", new object[]
            {
                NrGlobalReference.strLoginServerIP,
                NrGlobalReference.strWebPageDomain
            });
        }
        UnityEngine.Debug.LogWarning(" ##### Changed service area to " + this.m_kCurrentServiceAreaInfo.eServiceArea.ToString() + " ##### ");
        this.m_bSetServiceArea = true;
    }
コード例 #19
0
        private bool ReadFinalList2(ref NDataReader dr)
        {
            this._OutputDebug(string.Format("$$$SysConfig:ReadFinalPatchList2! TsCaching.useCustomCacheOnly = {0}", TsCaching.useCustomCacheOnly));
            this.m_LoadPatchListVersion = 0;
            string text = string.Empty;

            text = dr["[Header]"]["PatchVersion"];
            if (text.ToLower().Equals("final"))
            {
                this.m_LoadPatchListVersion = PatchFileInfo.VER_FINAL;
            }
            else
            {
                int.TryParse(text, out this.m_LoadPatchListVersion);
            }
            this._OutputDebug("test 3 m_LoadPatchListVersion = " + this.m_LoadPatchListVersion.ToString());
            TsPlatform.FileLog("test 3 m_LoadPatchListVersion = " + this.m_LoadPatchListVersion.ToString());
            bool result;

            try
            {
                StringBuilder stringBuilder  = new StringBuilder(512);
                StringBuilder stringBuilder2 = new StringBuilder(512);
                StringBuilder stringBuilder3 = new StringBuilder(512);
                if (dr.BeginSection("[FinalList2]"))
                {
                    while (!dr.IsEndOfSection())
                    {
                        NDataReader.Row currentRow = dr.GetCurrentRow();
                        if (currentRow.LineType == NDataReader.Row.TYPE.LINE_DATA)
                        {
                            stringBuilder.Length = 0;
                            stringBuilder.Append(currentRow.GetColumn(0));
                            stringBuilder = PatchFinalList.ReplaceWord(stringBuilder, false);
                            if (stringBuilder[0] == '?')
                            {
                                stringBuilder.Remove(0, 1);
                                stringBuilder3.Length = 0;
                                stringBuilder3.Append(stringBuilder.ToString());
                            }
                            else
                            {
                                PatchFileInfo patchFileInfo = new PatchFileInfo(currentRow);
                                stringBuilder2.Length = 0;
                                stringBuilder2.AppendFormat("{0}/{1}", stringBuilder3, stringBuilder);
                                stringBuilder2 = stringBuilder2.Replace("//", "/");
                                string text2 = stringBuilder2.ToString();
                                patchFileInfo.bUseCustomCache = this.CheckCustomCache(text2);
                                patchFileInfo.szMD5           = currentRow.GetColumn(4);
                                if (!text2.Contains("duplicationfilelist"))
                                {
                                    if (this.FilesList.ContainsKey(text2))
                                    {
                                        PatchFileInfo patchFileInfo2 = new PatchFileInfo();
                                        this.FilesList.TryGetValue(text2, out patchFileInfo2);
                                        this._OutputDebug(string.Format("Warning - duplicated patch list item : {0} / already:{1} new:{2}", text2, patchFileInfo2.nVersion, patchFileInfo.nVersion));
                                        if (patchFileInfo2.nVersion < patchFileInfo.nVersion)
                                        {
                                            this.FilesList[text2] = patchFileInfo;
                                        }
                                    }
                                    else
                                    {
                                        this.FilesList.Add(text2, patchFileInfo);
                                    }
                                }
                            }
                        }
                        dr.NextLine();
                    }
                    result = true;
                }
                else
                {
                    result = false;
                }
            }
            catch (Exception ex)
            {
                this._OutputDebug(ex.ToString());
                result = false;
            }
            return(result);
        }
コード例 #20
0
    public override void OnEnter()
    {
        if (StageNPatchLauncher.Instance != null)
        {
            StageNPatchLauncher.Instance = this;
        }
        if (this.PreDownloadDlg == null)
        {
            NrLoadPageScreen.ShowHideLoadingImg(false);
            this.PreDownloadDlg = (Mobile_PreDownloadDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.PREDOWNLOAD_DLG);
        }
        string text = string.Format("{0} OnEnter OnEnter Memory = {1}MB", base.GetType().FullName, NrTSingleton <NrMainSystem> .Instance.AppMemory);

        TsPlatform.FileLog(text);
        TsLog.LogWarning(text, new object[0]);
        TsLog.Log("====== {0}.OnEnter", new object[]
        {
            base.GetType().FullName
        });
        Scene.ChangeSceneType(this.SceneType());
        NrMainSystem.CheckAndSetReLoginMainCamera();
        Camera.main.gameObject.AddComponent <DefaultCameraController>();
        TsCaching.useCustomCacheOnly = true;
        int num = 0;

        if (!int.TryParse(NrTSingleton <NrGlobalReference> .Instance.ResourcesVer, out num))
        {
            UnityEngine.Debug.LogError(string.Concat(new object[]
            {
                "======================== end",
                NrTSingleton <NrGlobalReference> .Instance.ResourcesVer,
                "== ",
                num
            }));
            if (TsPlatform.IsAndroid)
            {
                NrTSingleton <NrMainSystem> .Instance.QuitGame(false);
            }
            else if (TsPlatform.IsIPhone)
            {
                NrTSingleton <NrMainSystem> .Instance.m_ReLogin     = false;
                NrTSingleton <NrMainSystem> .Instance.m_Login_BG    = true;
                NrTSingleton <NrGlobalReference> .Instance.localWWW = true;
                NrTSingleton <NrMainSystem> .Instance.ReLogin(false);
            }
            return;
        }
        string text2 = string.Format("http://{0}", NrTSingleton <NrGlobalReference> .Instance.GetCurrentServiceAreaInfo().szOriginalDataCDNPath);

        UnityEngine.Debug.LogError("======================== WebPath url : " + text2);
        NPatchLauncherBehaviour.PatchStart(this.m_strLocalFilePath, text2, new NPatchLauncherHandler_forInGame(), false, num, false, string.Empty);
        if (this.PreDownloadDlg != null)
        {
            this.PreDownloadDlg.SetText("Check File...");
        }
        StageNPatchLauncher.DownloadOmniataLog(true);
        base.StartTaskSerial(CommonTasks.InitializeChangeScene());
        base.StartTaskPararell(this._PatchWorkflow());
        base.StartTaskSerial(CommonTasks.FinalizeChangeScene(true));
        this.bPatchEnd = false;
        if (!Launcher.Instance.IsFullPatchLevel)
        {
            NrTSingleton <MATEventManager> .Instance.MeasureEvent("Content DL Start");
        }
        else
        {
            NrTSingleton <MATEventManager> .Instance.MeasureEvent("Add Content DL start");
        }
    }
コード例 #21
0
    public override void OnEnter()
    {
        string text = string.Format("{0} OnEnter OnEnter Memory = {1}MB", base.GetType().FullName, TsPlatform.Operator.GetAppMemory());

        TsPlatform.FileLog(text);
        TsLog.LogWarning(text, new object[0]);
        if (!TsPlatform.IsEditor && TsPlatform.IsAndroid && SystemInfo.processorCount < 2)
        {
            IntroMsgBoxDlg introMsgBoxDlg = (IntroMsgBoxDlg)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.INTROMSGBOX_DLG);

            if (introMsgBoxDlg != null)
            {
                string textFromPreloadText = NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("10");

                introMsgBoxDlg.SetBtnChangeName(NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("8"));
                introMsgBoxDlg.SetMsg(null, null, null, null, NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("8"), textFromPreloadText, eMsgType.MB_OK);
            }
        }
        if (TsPlatform.IsEditor)
        {
            NmMainFrameWork.AddBGM();
        }
        if (TsPlatform.IsAndroid)
        {
            PlayGamesPlatform.DebugLogEnabled = true;
            PlayGamesPlatform.Activate();
        }
        TsLog.Log("====== {0}.OnEnter", new object[]
        {
            base.GetType().FullName
        });
        Scene.ChangeSceneType(this.SceneType());
        if (Camera.main != null && Camera.main.gameObject != null)
        {
            DefaultCameraController component = Camera.main.gameObject.GetComponent <DefaultCameraController>();
            if (component == null)
            {
                Camera.main.gameObject.AddComponent <DefaultCameraController>();
            }
            GameObject target = GameObject.Find("MainFramework");
            UnityEngine.Object.DontDestroyOnLoad(target);
        }
        else
        {
            NrMainSystem.CheckAndSetReLoginMainCamera();
        }
        if (NrTSingleton <NrMainSystem> .Instance.m_ReLogin)
        {
            TsSceneSwitcher.Instance.DeleteScene(TsSceneSwitcher.ESceneType.WorldScene);
            TsSceneSwitcher.Instance.DeleteScene(TsSceneSwitcher.ESceneType.BattleScene);
            base.StartTaskSerial(this.LoadLoginSleep());
            base.StartTaskSerial(CommonTasks.LoadEmptyMainScene());
            base.StartTaskSerial(CommonTasks.ClearAudioStack());
            base.StartTaskSerial(CommonTasks.MemoryCleaning(true, 8));
            NmMainFrameWork.LoadImage();
            NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.LOGINBG_DLG);
        }
        base.StartTaskSerial(CommonTasks.SetGUIBehaviourScene());
        if (!NrTSingleton <NrMainSystem> .Instance.m_ReLogin && TsPlatform.IsEditor)
        {
            string         strFileName    = string.Format("{0}/../SystemData/ServerList.txt", Application.dataPath);
            NrConnectTable nrConnectTable = new NrConnectTable();
            nrConnectTable.AddServerList(strFileName);
        }
        if (!TsPlatform.IsEditor)
        {
            base.StartTaskSerial(this._RequestNoticeCheck());
            base.StartTaskSerial(this._RequestNoticePage());
            NrTSingleton <NrMainSystem> .Instance.m_bIsAutoLogin = true;
        }
        base.StartTaskSerial(this._RequestLoginNexonAuthorize());
        base.StartTaskSerial(this._StageProcess());
        base.StartTaskSerial(CommonTasks.FinalizeChangeScene(true));
    }
コード例 #22
0
 public void Print(string str)
 {
     TsPlatform.FileLog(str);
 }
コード例 #23
0
    public override void Update()
    {
        NrTSingleton <NrUpdateProcessor> .Instance.MainUpdate();

        if (NkInputManager.GetKeyDown(KeyCode.Escape))
        {
            this.m_ResolutionWindow = !this.m_ResolutionWindow;
        }
        if (!TsPlatform.IsEditor || NkInputManager.GetKeyUp(KeyCode.Alpha3))
        {
        }
        if (NkInputManager.GetKey(KeyCode.LeftShift) && NkInputManager.GetKeyUp(KeyCode.Alpha3))
        {
            TsLog.LogError("GetMonoHeapSize = {0},  GetMonoUsedSize = {1} , usedHeapSize = {2} ", new object[]
            {
                Profiler.GetMonoHeapSize(),
                Profiler.GetMonoUsedSize(),
                Profiler.usedHeapSize
            });
            MemoryCollection.Print(MemoryCollection.Mode.LoadedAll);
        }
        if (NkInputManager.GetKey(KeyCode.LeftShift) && NkInputManager.GetKeyUp(KeyCode.Alpha2))
        {
            NrTSingleton <NrMainSystem> .Instance.CleanUpImmediate();
        }
        if (NkInputManager.GetKey(KeyCode.LeftShift) && NkInputManager.GetKeyUp(KeyCode.Alpha4))
        {
            NrTSingleton <FormsManager> .Instance.DeleteAll();
        }
        if (!TsPlatform.IsEditor || !NkInputManager.GetKey(KeyCode.LeftShift) || NkInputManager.GetKeyUp(KeyCode.Alpha0))
        {
        }
        if (NkInputManager.GetKey(KeyCode.LeftShift) && NkInputManager.GetKeyUp(KeyCode.Alpha5))
        {
            TsPlatform.FileLog("AppMemory : " + NrTSingleton <NrMainSystem> .Instance.AppMemory);
        }
        if (TsPlatform.IsMobile && !TsPlatform.IsEditor && Input.GetKeyUp(KeyCode.Escape))
        {
            string   text     = "FromESC";
            MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

            if (msgBoxUI != null)
            {
                string b = msgBoxUI.GetYesObject() as string;
                if (text != null && text == b && this.IsBattleStop())
                {
                    Battle_Control_Dlg battle_Control_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BATTLE_CONTROL_DLG) as Battle_Control_Dlg;

                    if (battle_Control_Dlg != null)
                    {
                        battle_Control_Dlg.bESC = false;
                    }
                    this.BattleStopStart(false);
                }
            }
            bool flag = NrTSingleton <FormsManager> .Instance.CloseFormESC();

            if (NrTSingleton <FormsManager> .Instance.IsForm(G_ID.ITEMMALL_POPUPSHOP_DLG))
            {
                return;
            }
            if (NrTSingleton <FormsManager> .Instance.IsForm(G_ID.TOASTMSG_DLG))
            {
                MsgBoxUI msgBoxUI2 = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

                if (msgBoxUI2 != null)
                {
                    this.BattleStopStart(false);
                    if (Battle.BATTLE != null && !NrTSingleton <ContentsLimitManager> .Instance.IsBattleStopLimit())
                    {
                        Battle_Control_Dlg battle_Control_Dlg2 = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BATTLE_CONTROL_DLG) as Battle_Control_Dlg;

                        if (battle_Control_Dlg2 != null)
                        {
                            battle_Control_Dlg2.ShowRetreatWithCancel();
                        }
                    }
                    else
                    {
                        msgBoxUI2.SetMsg(new YesDelegate(this.EscQuitGame), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("7"), NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("38"), eMsgType.MB_OK_CANCEL, 2);
                    }
                }
            }
            else if (!flag && Scene.CurScene != Scene.Type.SELECTCHAR)
            {
                MsgBoxUI msgBoxUI3 = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

                if (msgBoxUI3 != null)
                {
                    this.BattleStopStart(true);
                    if (Battle.BATTLE != null && !NrTSingleton <ContentsLimitManager> .Instance.IsBattleStopLimit())
                    {
                        Battle_Control_Dlg battle_Control_Dlg3 = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BATTLE_CONTROL_DLG) as Battle_Control_Dlg;

                        if (battle_Control_Dlg3 != null)
                        {
                            battle_Control_Dlg3.ShowRetreatWithCancel();
                        }
                    }
                    else
                    {
                        msgBoxUI3.SetMsg(new YesDelegate(this.EscQuitGame), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("7"), NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("38"), eMsgType.MB_OK_CANCEL, 2);
                    }
                }
                NrTSingleton <FiveRocksEventManager> .Instance.Placement("backbutton_click");
            }
        }
        if (NkInputManager.GetKeyDown(KeyCode.Alpha1) && NkInputManager.GetKey(KeyCode.RightShift))
        {
            this.m_bSwitchMyCharInfoGUI = !this.m_bSwitchMyCharInfoGUI;
        }
    }
コード例 #24
0
        public void _InternalOnly_ChangeStateErrorOrRetry(string error)
        {
            string text = string.Format("{5}\t[TsBundle] {0} (AssetPath=\"{1}\", Stack=\"{2}\", Type={3})\r\nRequestCallStack=\"{4}\"", new object[]
            {
                error,
                this.assetPath,
                this.stackName,
                this.itemType,
                this.RequestCallStack,
                Scene.CurScene.ToString()
            });

            if (TsPlatform.IsMobile)
            {
                TsPlatform.FileLog(text);
            }
            if (error.Contains("404 Not Found"))
            {
                TsLog.LogWarning(text, new object[0]);
                this.wiState        = WWWItem.StateWI.ERROR;
                this.isFileNotFound = true;
            }
            else if (error.Contains("Exception!"))
            {
                this.wiState = WWWItem.StateWI.ERROR;
            }
            else
            {
                int num = 2;
                if (string.IsNullOrEmpty(this.anotherURL))
                {
                    if (TsPlatform.IsMobile)
                    {
                        num = 5;
                    }
                }
                else
                {
                    TsLog.LogWarning(text, new object[0]);
                }
                if (!this.retryRequested)
                {
                    if (!Option.isPause && this.retryCnt >= num)
                    {
                        if (string.IsNullOrEmpty(this.anotherURL))
                        {
                            string text2 = string.Format("{6}\t[TsBundle] Retry: {5} - {0} (AssetPath=\"{1}\", Stack=\"{2}\", Type={3})\r\nRequestCallStack=\"{4}\"", new object[]
                            {
                                error,
                                this.assetPath,
                                this.stackName,
                                this.itemType,
                                this.RequestCallStack,
                                this.retryCnt,
                                Scene.CurScene.ToString()
                            });
                            TsLog.Assert(false, text2, new object[0]);
                            if (WWWItem._errorCallback != null)
                            {
                                WWWItem._errorCallback(text2);
                            }
                            if (TsPlatform.IsMobile)
                            {
                                TsPlatform.FileLog(text2);
                            }
                        }
                        this.wiState = WWWItem.StateWI.ERROR;
                    }
                    else
                    {
                        this.wiState = WWWItem.StateWI.CREATED;
                    }
                }
            }
        }