Ejemplo n.º 1
0
    private static void InitList()
    {
        string    iniPath = Application.dataPath + "/Resources/SDKManager.bytes";
        INIParser ini     = new INIParser();

        ini.Open(iniPath);
        List <string> sections = ini.GetAllSections();

        _listPlatform.Clear();
        _dicEnumSelect.Clear();
        bSelectAll = false;
        for (int k = 0; k < sections.Count; k++)
        {
            if (ini.IsKeyExists(sections[k], "apkname"))
            {
                string apk_name = ini.ReadValue(sections[k], "apkname", sections[k]);
                _listPlatform.Add(sections[k], apk_name);
                _dicEnumSelect.Add(sections[k], false);
            }
        }
        ini.Close();
    }