Skip to content

Commit

Permalink
launch: add a flag to disable file patching (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson authored Jul 1, 2024
1 parent 0e18878 commit 7f43633
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/src/commands/launch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ pub fn cli() -> Command {
.short('Q')
.help("Skips the build step, launching the last built version")
.action(ArgAction::SetTrue),
),
)
.arg(
clap::Arg::new("no-filepatching")
.long("no-filepatching")
.short('F')
.help("Disables file patching")
.action(ArgAction::SetTrue),
)
)
}

Expand Down Expand Up @@ -328,7 +335,7 @@ pub fn execute(matches: &ArgMatches) -> Result<Report, Error> {
let mut args = args.clone();
if with_server {
args.push("-connect=127.0.0.1".to_string());
} else {
} else if !matches.get_flag("no-filepatching") {
args.push("-filePatching".to_string());
}
instances.push(args);
Expand Down

0 comments on commit 7f43633

Please sign in to comment.