示例#1
0
        public static string CookedPath(GameTarget target)
        {
            switch (target.Game)
            {
            case Mod.MEGame.ME1:
                return(ME1Directory.CookedPath(target));

            case Mod.MEGame.ME2:
                return(ME2Directory.CookedPath(target));

            case Mod.MEGame.ME3:
                return(ME3Directory.CookedPath(target));

            default:
                throw new ArgumentOutOfRangeException(nameof(target.Game), target.Game, null);
            }
        }
示例#2
0
        public static string CookedPath(Mod.MEGame game, string forcedPath = null)
        {
            switch (game)
            {
            case Mod.MEGame.ME1:
                return(forcedPath != null?ME1Directory.CookedPath(forcedPath) : ME1Directory.cookedPath);

            case Mod.MEGame.ME2:
                return(forcedPath != null?ME2Directory.CookedPath(forcedPath) : ME2Directory.cookedPath);

            case Mod.MEGame.ME3:
                return(forcedPath != null?ME3Directory.CookedPath(forcedPath) : ME3Directory.cookedPath);

            default:
                throw new ArgumentOutOfRangeException(nameof(game), game, null);
            }
        }