コード例 #1
0
        private void ReplaceDynamicObservatory(ListViewItem item, string newMapPath)
        {
            var mapNumber = item.SubItems[4].Text;

            switch (mapNumber)
            {
            case "1" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory1):
                return;

            case "1":
                DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory1);
                break;

            case "2" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory2):
                return;

            case "2":
                DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory2);
                break;

            case "3" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory3):
                return;

            case "3":
                DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory3);
                break;

            case "4" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory4):
                return;

            case "4":
                DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory4);
                break;
            }
        }
コード例 #2
0
 private void ReplaceBowsersCastle(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.BowsersCastle))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.BowsersCastle);
 }
コード例 #3
0
 private void ReplaceGoodEggGalaxy(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.GoodEggGalaxy))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.GoodEggGalaxy);
 }
コード例 #4
0
 private void ReplaceSingleColossus(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Colossus1))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Colossus1);
 }
コード例 #5
0
 private void ReplaceAlltradesAbbey(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.AlltradesAbbey))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.AlltradesAbbey);
 }
コード例 #6
0
 private void ReplaceMarioStadium(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.MarioStadium))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.MarioStadium);
 }
コード例 #7
0
 private void ReplaceStarshipMario(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.StarshipMario))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.StarshipMario);
 }
コード例 #8
0
 private void ReplaceDelfinoPlaza(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.DelfinoPlaza))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.DelfinoPlaza);
 }
コード例 #9
0
 private void ReplaceStaticMtMagmageddon(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.MtMag1))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.MtMag1);
 }
コード例 #10
0
 private void ReplaceRobbinHoodRuins(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.RobbinHoodRuins))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.RobbinHoodRuins);
 }
コード例 #11
0
 private void ReplaceGhostShip(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.GhostShip))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.GhostShip);
 }
コード例 #12
0
 private void ReplaceSingleObservatory(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Observatory1))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Observatory1);
 }
コード例 #13
0
 private void ReplaceCastleTrodain(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.CastleTrodain))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.CastleTrodain);
 }
コード例 #14
0
 private void ReplaceSmb(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.SMB))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.SMB);
 }
コード例 #15
0
 private void ReplaceYoshisIsland(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.YoshisIsland))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.YoshisIsland);
 }
コード例 #16
0
 private void ReplaceAlefgard(string newMapPath)
 {
     if (!File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Alefgard))
     {
         return;
     }
     DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Alefgard);
 }
コード例 #17
0
        private void ReplaceDynamicColossus(ListViewItem item, string newMapPath)
        {
            var mapNumber = item.SubItems[4].Text;

            switch (mapNumber)
            {
            case "1" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Colossus1):
                return;

            case "1":
                DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Colossus1);
                break;

            case "2" when !File.Exists(newMapPath) || !File.Exists(_discPath + MapFilePaths.Colossus2):
                return;

            case "2":
                DiscIo.MoveFile(newMapPath, _discPath + MapFilePaths.Colossus2);
                break;
            }
        }