Skip to content

Commit

Permalink
fix: load client resource when playtools is not true (#75)
Browse files Browse the repository at this point in the history
The load of client resource should not be affected by the value of playtools.
  • Loading branch information
wangl-cc authored Oct 12, 2023
1 parent 000f672 commit 778d641
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions maa-cli/src/run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ pub fn run(

match task_type {
TaskOrUnknown::Task(task_type) => match task_type {
TaskType::StartUp if playtools => {
if params.get_or("enable", true)?
TaskType::StartUp => {
if playtools
&& params.get_or("enable", true)?
&& params.get_or("start_game_enabled", false)?
{
start_app = true;
Expand Down

0 comments on commit 778d641

Please sign in to comment.