Example #1
0
        /// <summary>Saves the all changable variables.</summary>
        public static void Save()
        {
            CTPlayerPrefs.SetBool(Constants.KEY_CUSTOM_PATH_CACHE, CUSTOM_PATH_CACHE);
            CTPlayerPrefs.SetString(Constants.KEY_PATH_CACHE, PATH_CACHE);
            CTPlayerPrefs.SetInt(Constants.KEY_VCS, VCS);
            CTPlayerPrefs.SetString(Constants.KEY_EXECUTE_METHOD, EXECUTE_METHOD);
            CTPlayerPrefs.SetBool(Constants.KEY_COPY_SETTINGS, COPY_SETTINGS);
            CTPlayerPrefs.SetBool(Constants.KEY_CONFIRM_SWITCH, CONFIRM_SWITCH);
            CTPlayerPrefs.SetBool(Constants.KEY_DEBUG, DEBUG);
            CTPlayerPrefs.SetBool(Constants.KEY_UPDATE_CHECK, UPDATE_CHECK);
            CTPlayerPrefs.SetBool(Constants.KEY_UPDATE_OPEN_UAS, UPDATE_OPEN_UAS);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_WINDOWS, PLATFORM_WINDOWS);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_MAC, PLATFORM_MAC);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_LINUX, PLATFORM_LINUX);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_ANDROID, PLATFORM_ANDROID);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_IOS, PLATFORM_IOS);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_WSA, PLATFORM_WSA);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_WEBPLAYER, PLATFORM_WEBPLAYER);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_WEBGL, PLATFORM_WEBGL);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_TVOS, PLATFORM_TVOS);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_TIZEN, PLATFORM_TIZEN);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_SAMSUNGTV, PLATFORM_SAMSUNGTV);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_PS3, PLATFORM_PS3);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_PS4, PLATFORM_PS4);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_PSP2, PLATFORM_PSP2);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_XBOX360, PLATFORM_XBOX360);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_XBOXONE, PLATFORM_XBOXONE);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_WIIU, PLATFORM_WIIU);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_3DS, PLATFORM_3DS);
            CTPlayerPrefs.SetBool(Constants.KEY_PLATFORM_SWITCH, PLATFORM_SWITCH);
            CTPlayerPrefs.SetInt(Constants.KEY_ARCH_WINDOWS, ARCH_WINDOWS);
            CTPlayerPrefs.SetInt(Constants.KEY_ARCH_MAC, ARCH_MAC);
            CTPlayerPrefs.SetInt(Constants.KEY_ARCH_LINUX, ARCH_LINUX);
            CTPlayerPrefs.SetInt(Constants.KEY_TEX_ANDROID, TEX_ANDROID);
            CTPlayerPrefs.SetBool(Constants.KEY_SHOW_COLUMN_PLATFORM, SHOW_COLUMN_PLATFORM);
            CTPlayerPrefs.SetBool(Constants.KEY_SHOW_COLUMN_ARCHITECTURE, SHOW_COLUMN_ARCHITECTURE);
            CTPlayerPrefs.SetBool(Constants.KEY_SHOW_COLUMN_TEXTURE, SHOW_COLUMN_TEXTURE);
            CTPlayerPrefs.SetBool(Constants.KEY_SHOW_COLUMN_CACHE, SHOW_COLUMN_CACHE);

            CTPlayerPrefs.Save();
        }
Example #2
0
        /// <summary>Loads the all changable variables.</summary>
        public static void Load()
        {
            if (CTPlayerPrefs.HasKey(Constants.KEY_CUSTOM_PATH_CACHE))
            {
                CUSTOM_PATH_CACHE = CTPlayerPrefs.GetBool(Constants.KEY_CUSTOM_PATH_CACHE);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PATH_CACHE))
            {
                PATH_CACHE = CTPlayerPrefs.GetString(Constants.KEY_PATH_CACHE);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_VCS))
            {
                VCS = CTPlayerPrefs.GetInt(Constants.KEY_VCS);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_EXECUTE_METHOD))
            {
                EXECUTE_METHOD = CTPlayerPrefs.GetString(Constants.KEY_EXECUTE_METHOD);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_COPY_SETTINGS))
            {
                COPY_SETTINGS = CTPlayerPrefs.GetBool(Constants.KEY_COPY_SETTINGS);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_CONFIRM_SWITCH))
            {
                CONFIRM_SWITCH = CTPlayerPrefs.GetBool(Constants.KEY_CONFIRM_SWITCH);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_DEBUG))
            {
                DEBUG = CTPlayerPrefs.GetBool(Constants.KEY_DEBUG);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_UPDATE_CHECK))
            {
                UPDATE_CHECK = CTPlayerPrefs.GetBool(Constants.KEY_UPDATE_CHECK);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_UPDATE_OPEN_UAS))
            {
                UPDATE_OPEN_UAS = CTPlayerPrefs.GetBool(Constants.KEY_UPDATE_OPEN_UAS);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_WINDOWS))
            {
                PLATFORM_WINDOWS = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_WINDOWS);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_MAC))
            {
                PLATFORM_MAC = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_MAC);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_LINUX))
            {
                PLATFORM_LINUX = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_LINUX);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_ANDROID))
            {
                PLATFORM_ANDROID = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_ANDROID);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_IOS))
            {
                PLATFORM_IOS = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_IOS);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_WSA))
            {
                PLATFORM_WSA = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_WSA);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_WEBPLAYER))
            {
                PLATFORM_WEBPLAYER = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_WEBPLAYER);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_WEBGL))
            {
                PLATFORM_WEBGL = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_WEBGL);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_TVOS))
            {
                PLATFORM_TVOS = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_TVOS);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_TIZEN))
            {
                PLATFORM_TIZEN = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_TIZEN);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_SAMSUNGTV))
            {
                PLATFORM_SAMSUNGTV = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_SAMSUNGTV);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_PS3))
            {
                PLATFORM_PS3 = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_PS3);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_PS4))
            {
                PLATFORM_PS4 = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_PS4);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_PSP2))
            {
                PLATFORM_PSP2 = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_PSP2);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_XBOX360))
            {
                PLATFORM_XBOX360 = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_XBOX360);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_XBOXONE))
            {
                PLATFORM_XBOXONE = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_XBOXONE);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_WIIU))
            {
                PLATFORM_WIIU = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_WIIU);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_3DS))
            {
                PLATFORM_3DS = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_3DS);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_PLATFORM_SWITCH))
            {
                PLATFORM_SWITCH = CTPlayerPrefs.GetBool(Constants.KEY_PLATFORM_SWITCH);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_ARCH_WINDOWS))
            {
                ARCH_WINDOWS = CTPlayerPrefs.GetInt(Constants.KEY_ARCH_WINDOWS);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_ARCH_MAC))
            {
                ARCH_MAC = CTPlayerPrefs.GetInt(Constants.KEY_ARCH_MAC);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_ARCH_LINUX))
            {
                ARCH_LINUX = CTPlayerPrefs.GetInt(Constants.KEY_ARCH_LINUX);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_TEX_ANDROID))
            {
                TEX_ANDROID = CTPlayerPrefs.GetInt(Constants.KEY_TEX_ANDROID);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_SHOW_COLUMN_PLATFORM))
            {
                SHOW_COLUMN_PLATFORM = CTPlayerPrefs.GetBool(Constants.KEY_SHOW_COLUMN_PLATFORM);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_SHOW_COLUMN_ARCHITECTURE))
            {
                SHOW_COLUMN_ARCHITECTURE = CTPlayerPrefs.GetBool(Constants.KEY_SHOW_COLUMN_ARCHITECTURE);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_SHOW_COLUMN_TEXTURE))
            {
                SHOW_COLUMN_TEXTURE = CTPlayerPrefs.GetBool(Constants.KEY_SHOW_COLUMN_TEXTURE);
            }

            if (CTPlayerPrefs.HasKey(Constants.KEY_SHOW_COLUMN_CACHE))
            {
                SHOW_COLUMN_CACHE = CTPlayerPrefs.GetBool(Constants.KEY_SHOW_COLUMN_CACHE);
            }
        }