Example #1
0
        private static void countFiles(GameType gameType, CPUArch cpuArch)
        {
            switch (cpuArch)
            {
            case CPUArch.x64:
            {
                total += ZipManager.countFiles(Properties.Resources.x64);
                break;
            }

                /*case CPUArch.x86:
                 *  {
                 *      total += ZipManager.countFiles(Properties.Resources.x86);
                 *      break;
                 *  }*/
            }

            switch (gameType)
            {
            case GameType.BFG:
            {
                total += ZipManager.countFiles(Properties.Resources._base);
                total += ZipManager.countFiles(Properties.Resources.base_BFG);
                break;
            }

            case GameType.NEW:
            {
                total += ZipManager.countFiles(Properties.Resources._base);
                total += ZipManager.countFiles(Properties.Resources.base_NEW);
                break;
            }

            case GameType.CLASSIC:
            {
                total += ZipManager.countFiles(Properties.Resources.base_CLASSIC);
                break;
            }
            }
        }