Skip to content

Commit

Permalink
steam and origin client, quit game on disconnecting from server inste…
Browse files Browse the repository at this point in the history
…ad of going to the menu
  • Loading branch information
zefanjajobse committed Oct 25, 2024
1 parent 505104c commit c0728ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/actions/launchers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ pub fn launch_game_origin(cfg: &structs::SeederConfig, game_id: &str, role: &str
structs::Games::Bf1 => {
if cfg.usable_client {
command.args([
"-webMode",
"MP",
"-Origin_NoAppFocus",
"--activate-webhelper",
"-requestState",
"State_ClaimReservation",
"-gameId",
game_id,
"-gameMode",
Expand Down Expand Up @@ -198,6 +204,12 @@ pub fn launch_game_steam(cfg: &structs::SeederConfig, game_id: &str, role: &str)
if cfg.usable_client {
command.args([
"link2ea://launchgame/1238840?platform=steam&theme=bf1",
"-webMode",
"MP",
"-Origin_NoAppFocus",
"--activate-webhelper",
"-requestState",
"State_ClaimReservation",
"-gameId",
game_id,
"-gameMode",
Expand All @@ -210,6 +222,12 @@ pub fn launch_game_steam(cfg: &structs::SeederConfig, game_id: &str, role: &str)
} else {
command.args([
"link2ea://launchgame/1238840?platform=steam&theme=bf1",
"-webMode",
"MP",
"-Origin_NoAppFocus",
"--activate-webhelper",
"-requestState",
"State_ClaimReservation",
"-Window.Fullscreen",
"false",
"-RenderDevice.MinDriverRequired",
Expand Down

0 comments on commit c0728ac

Please sign in to comment.