Skip to content

Commit

Permalink
chore: update csharp sample
Browse files Browse the repository at this point in the history
  • Loading branch information
moomiji committed Oct 24, 2024
1 parent cb34e8d commit 602f2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/csharp/main.csx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var userPath = Environment.CurrentDirectory;
var toolkit = new MaaToolkit(init: true, userPath: userPath);
// Equivalent to `toolkit.Config.InitOption(userPath);`
var adbDevices = toolkit.AdbDevice.Find();
if (!adbDevices.IsEmpty)
if (adbDevices.MaaSizeCount < 1)
throw new InvalidOperationException("No ADB device found.");

// Remember to dispose tasker, controller and resource.
Expand Down

0 comments on commit 602f2ec

Please sign in to comment.