Ejemplo n.º 1
0
    public static string GetApplicationStatus(bool isTag)
    {
        string status = "";

#if API_SELECT_DEBUG || BUILD_TYPE_DEBUG
        if (DebugOption.Instance.disalbeDebugMenu == true)
        {
            return(status);
        }

        string apiversion = GlobalDefine.GetApiVersion();
        SQLiteClient.Instance.UpdateDbClientVersion();

        //サーバタイプ
        string createServer = SQLiteClient.Instance.GetDbServerType().ToString();

        //作成時間
        double   unixTime   = SQLiteClient.Instance.GetDbCreateTime();
        DateTime unixStart  = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
        DateTime date       = unixStart.AddSeconds(unixTime).ToLocalTime();
        string   createDate = " : " + date.ToString("yyyy/MM/dd HH:mm");

        string sizestart = isTag == true ? "<size=22>" : "";
        if (Patcher.Instance.isNextVersion())
        {
            sizestart = isTag == true ? "<size=26>" : "";
        }
        string sizeend    = isTag == true ? "</size>" : "";
        string space      = isTag == true ? "\n" : " / ";
        string colorstart = isTag == true ? "<color=#0000ff>" : "";
        if (Patcher.Instance.isNextVersion())
        {
            colorstart = isTag == true ? "<color=#ff0000>" : "";
        }
        string colorend = isTag == true ? "</color>" : "";

        string dbtext = createServer + createDate;
        if (isTag == true)
        {
            dbtext += "\n" + GetSqliteUrl();
        }

        Uri uri = new Uri(GetResourceBasePath());
        status = StrOpe.i + sizestart +
                 Application.productName +
                 sizeend +
                 space +
                 sizestart +
                 colorstart + ServerDataUtil.GetServerName() + colorend +
                 sizeend +
                 "\nAPI: " + apiversion +
                 "\nAsset: " + uri.Scheme + "://" + uri.Host +
                 "" + uri.AbsolutePath +
                 "\ndb: " + dbtext +
                 "\nuuid: " + LocalSaveManager.Instance.LoadFuncUUID();
#endif

        return(status);
    }
Ejemplo n.º 2
0
    protected override void Start()
    {
        base.Start();

#if UNITY_EDITOR
        BuildAt    = "";
        ServerName = ServerDataUtil.GetServerName();
#else
        BuildAt    = "";
        ServerName = "";
#endif
        //アイコンアトラス更新関数開始
        StartCoroutine(UpdateAtlusList());
    }