Skip to content

Commit

Permalink
Merge pull request #805 from g-maxime/autoselect
Browse files Browse the repository at this point in the history
Autoselect first found device with --capture -- or --merge option
  • Loading branch information
dericed authored Dec 21, 2023
2 parents b8db24a + 1a79eda commit 507d95c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Common/ProcessFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ void file::Parse(const String& FileName)
Device = Ztring(FileName.substr(9)).To_Local();
if (Device.empty() && Device_Command)
Device = "0";
if (Device.empty() && FileName.empty() && (Device_ForceCapture || !Merge_OutputFileNames.empty()))
Device = "0";
if (!Device.empty())
{
uint64_t Device_Pos, Device_Offset = 0;
Expand Down

0 comments on commit 507d95c

Please sign in to comment.