Ejemplo n.º 1
0
        public static string GetExecutablePath(MEGame game, string gamePathRoot = null)
        {
            switch (game)
            {
            case MEGame.ME1:
                return(ME1Directory.GetExecutablePath(gamePathRoot));

            case MEGame.ME2:
                return(ME2Directory.GetExecutablePath(gamePathRoot));

            case MEGame.ME3:
                return(ME3Directory.GetExecutablePath(gamePathRoot));

            default:
                throw new ArgumentOutOfRangeException(nameof(game), game, null);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Refreshes the registry active paths for all three games
 /// </summary>
 public static void ReloadGamePaths(bool forceUseRegistry)
 {
     ME1Directory.ReloadDefaultGamePath(forceUseRegistry);
     ME2Directory.ReloadDefaultGamePath(forceUseRegistry);
     ME3Directory.ReloadDefaultGamePath(forceUseRegistry);
 }