Skip to content

Commit

Permalink
fix heroic manifests and hardcode fortnite namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
InvoxiPlayGames committed Dec 14, 2024
1 parent 374dcdd commit f2f7111
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,11 @@ static async Task Main(string[] args)
if (!is_up_to_date)
{
Console.WriteLine("Fortnite is not the latest version!");
Console.WriteLine("Please open the Epic Games Launcher to start updating the game.");
Thread.Sleep(2500);
if (!heroic_manifest)
Console.WriteLine("Please open the Epic Games Launcher to start updating the game.");
else
Console.WriteLine("Please open the Heroic Games Launcher to start updating the game.");
Thread.Sleep(5000);
return;
}
} catch
Expand Down Expand Up @@ -492,6 +495,17 @@ static async Task<Process> LaunchGame(string filename, string? exchange, EpicAcc
proper.LaunchCommand = manifest.launch_parameters;
proper.OwnershipToken = manifest.requires_ot.ToString();
proper.DisplayName = manifest.title; // also just a guess
proper.MainGameAppName = manifest.app_name;
// another ugly hack to get Fortnite in particular to work
// i don't like Legendary all too much
if (manifest.app_name == "Fortnite" || manifest.app_name == "Fortnite_Studio") {
proper.MainGameAppName = "Fortnite";
proper.MainGameCatalogNamespace = "fn"; // not stored in legendary installed.json
} else {
proper.MainGameAppName = manifest.app_name;
// do any other games need MainGameCatalogNamespace
// can fortnite quit fucking around
}
return proper;
}
}
Expand Down

0 comments on commit f2f7111

Please sign in to comment.