Пример #1
0
        /// <summary>
        /// Core / 1st time - i don't not let it Load in case of problem
        /// </summary>
        private async void GrabMyShovel()
        {
            FillInformation();

            // Assignation du dernier chemin visité
            if (string.IsNullOrEmpty(Properties.Settings.Default.LastKPath))
            {
                Properties.Settings.Default.LastKPath = _CHardLink;
            }


            //  MvFolder game = new MvFolder(PlatformFolder, AppPath);
            // game.Platform = Platform;
            // game.MediaType = "Game";

            // Conversion to MvFolder
            //Dictionary<string, IPlatformFolder> dicFolder = new Dictionary<string, IPlatformFolder>();
            _AMVFolders = MvFolder.Convert(_IPFolders, PlatformFolder, AppPath);

            AnalyseProps(_AMVFolders);

            await GenerateInfoPath(_AMVFolders);

            /*
             * // Reorder
             * dicFolder.OrderBy( x => x.Key);
             */

            StyleMainFLP();
            SetMainWindow();
            boxLog.Text += @"Ready." + Environment.NewLine;
        }
Пример #2
0
        /// <summary>
        /// private à la compil
        /// </summary>
        public void DebugTest()
        {
            DebugMode   = true;
            boxLog.Text = "Debug Mode";

            Platform = "Sega Mega Drive";

            // _CRelatLink = @"..\..\Games\Roms\Sega Mega Drive";

            AppPath = @"i:\Frontend\LaunchBox\";
            //PlatformFolder = @"..\..\Games\Roms\Sega Mega Drive";
            PlatformFolder = @".\Roms\Sega Mega Drive";


            IPlatformFolder[] raoul = new IPlatformFolder[15];

            MvFolder mvManuel = new MvFolder();

            mvManuel.FolderPath = @"..\..\Games\Manuels\Sega Mega Drive";
            mvManuel.MediaType  = "Manual";
            raoul[0]            = mvManuel;


            MvFolder mvMusic = new MvFolder();

            mvMusic.FolderPath = @"..\..\Games\Music\Sega Mega Drive";
            mvMusic.MediaType  = "Music";
            raoul[1]           = mvMusic;


            MvFolder mvVideo = new MvFolder();

            mvVideo.FolderPath = @"..\..\Games\Videos\Sega Mega Drive";
            mvVideo.MediaType  = "Video";
            raoul[2]           = mvVideo;

            for (int i = 3; i < 15; i += 3)
            {
                MvFolder mv3 = new MvFolder();
                mv3.FolderPath = @"..\..\Games\Covers\Sega Mega Drive\Steam Banner";
                mv3.MediaType  = "Banner";
                raoul[i]       = mv3;

                MvFolder ac = new MvFolder();
                ac.FolderPath = @"..\..\Games\Covers\Sega Mega Drive\Arcade - Cabinet";
                ac.MediaType  = "Arcade - Cabinet";
                raoul[i + 1]  = ac;

                MvFolder fbf = new MvFolder();
                fbf.FolderPath = @"..\..\Games\Covers\Sega Mega Drive\Fanart - Box - Front";
                fbf.MediaType  = "Fanart - Box - Front";
                raoul[i + 2]   = fbf;
            }

            _IPFolders = raoul;
        }
Пример #3
0
        internal static IPlatformFolder[] Get_PlatformPaths()
        {
            IPlatformFolder[] raoul = new IPlatformFolder[7];

            MvFolder mvManuel = new MvFolder();

            mvManuel.FolderPath = @"G:\Frontend\LaunchBox\Games\Manuels\Sega Mega Drive";
            mvManuel.MediaType  = "Manual";
            raoul[0]            = mvManuel;


            MvFolder mvMusic = new MvFolder();

            mvMusic.FolderPath = @"..\..\Games\Music\Sega Mega Drive";
            mvMusic.MediaType  = "Music";
            raoul[1]           = mvMusic;


            MvFolder mvVideo = new MvFolder();

            mvVideo.FolderPath = @"..\..\Games\Videos\Sega Mega Drive";
            mvVideo.MediaType  = "Video";
            raoul[2]           = mvVideo;

            // --- Images

            raoul[3] = new MvFolder()
            {
                MediaType  = "Banner",
                FolderPath = @"..\..\Games\Covers\Sega Mega Drive\Steam Banner"
            };

            raoul[4] = new MvFolder()
            {
                MediaType  = "Arcade - Cabinet",
                FolderPath = @"..\..\Games\Covers\Sega Mega Drive\Arcade - Cabinet"
            };

            raoul[5] = new MvFolder()
            {
                MediaType  = "Fanart - Box - Front",
                FolderPath = @"..\..\Games\Covers\Sega Mega Drive\Fanart - Box - Front"
            };

            raoul[6] = new MvFolder()
            {
                MediaType  = "Fanart - Card - Front",
                FolderPath = @"..\..\Games\Covers\Sega Mega Drive\Fanart - Card - Front",
            };

            return(raoul);
        }