Skip to content

Commit

Permalink
feat: disable ScreencapRawByNetcat for non-win32
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Feb 26, 2024
1 parent 6249af5 commit 792484c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/MaaAdbControlUnit/Screencap/FastestWay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ MAA_CTRL_UNIT_NS_BEGIN
ScreencapFastestWay::ScreencapFastestWay(const std::filesystem::path& minicap_path, bool lossless)
{
units_ = {
#ifdef _WIN32
{ Method::RawByNetcat, std::make_shared<ScreencapRawByNetcat>() },
#endif
{ Method::RawWithGzip, std::make_shared<ScreencapRawWithGzip>() },
{ Method::Encode, std::make_shared<ScreencapEncode>() },
{ Method::EncodeToFileAndPull, std::make_shared<ScreencapEncodeToFileAndPull>() },
Expand Down

0 comments on commit 792484c

Please sign in to comment.