Skip to content

Commit

Permalink
Feat/epic bl3 (#79)
Browse files Browse the repository at this point in the history
* feat: ✨ Add epic borderland 3 support
* ci: 💚 Allow on demand builds
  • Loading branch information
dafzor authored Nov 20, 2022
1 parent e8cbf5c commit 53419e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bnetlauncher-build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build bnetlauncher

on: [push]
on: [push, workflow_dispatch]

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions bnetlauncher/Clients/BnetClient2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ public override bool Launch(string cmd)
try
{
// This is the launch parameters used by the blizzard launchers like "World of Warcraft Launcher.exe"
// While the --game parameter is not suposed to be product code but a specific string like "wow_enus",
// "diablo3_enus" or "hs_beta" which means there's no patern to it or location i can extract it from.
// While the --game parameter is not supposed to be product code but a specific string like "wow_enus",
// "diablo3_enus" or "hs_beta" which means there's no pattern to it or location i can extract it from.
//
// However during testing while --game is required it's content doesn't seem to be used for anything
// putting in any string would still launch the game correctly, so we just fill the product code so
// it's not empty.
// The other two fields, gamepath and productcode must be correct tough.
// The other two fields, gamepath and productcode must be correct though.
Process p = Process.Start(Path.Combine(InstallPath, Exe), $"--game={cmd} --gamepath=\"{path}\" --productcode={cmd}");
p.WaitForExit();

Expand Down
6 changes: 6 additions & 0 deletions bnetlauncher/Resources/gamesdb.ini
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ client=epic
cmd=Cowbird
exe=BatmanAK.exe
[ebl3]
name=Borderlands 3
client=epic
cmd=3A5cf86732e2744fec98a1c8a077d9f3a8
exe=Borderlands3.exe
[dauntless]
name=Dauntless
client=epic
Expand Down

0 comments on commit 53419e6

Please sign in to comment.