chore: don't use a default game path when config read fails

This commit is contained in:
goat 2022-07-09 03:14:56 +02:00
parent 50c812f551
commit eb98a52e14
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5

View file

@ -546,8 +546,8 @@ namespace Dalamud.Injector
} }
catch (Exception) catch (Exception)
{ {
gamePath = @"C:\Program Files (x86)\SquareEnix\FINAL FANTASY XIV - A Realm Reborn\game\ffxiv_dx11.exe"; Log.Error("Failed to read launcherConfigV3.json to get the set-up game path, please specify one using -g");
Log.Warning("Failed to read launcherConfigV3.json. Using default game installation path: {0}", gamePath); return -1;
} }
if (!File.Exists(gamePath)) if (!File.Exists(gamePath))