Exists() public method

public Exists ( string fileName ) : bool
fileName string
return bool
Ejemplo n.º 1
0
        protected override bool CheckMusicAvailable()
        {
            var resource = new MacResManager(ServiceLocator.FileStorage.GetDirectoryName(_vm.Game.Path));

            for (int i = 0; i < monkeyIslandFileNames.Length; i++)
            {
                if (resource.Exists(monkeyIslandFileNames[i]))
                {
                    return true;
                }
            }

//            GUI::MessageDialog dialog(_(
//                "Could not find the 'Monkey Island' Macintosh executable to read the\n"
//                "instruments from. Music will be disabled."), _("OK"));
//            dialog.runModal();
            return false;
        }