Skip to content

Commit

Permalink
fix(exec_agent): transfermode enum value error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 6, 2023
1 parent e62640c commit 6231c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/MaaToolKit/API/MaaToolKitExecAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ MaaBool RegisterExecutor(ExecutorType type, MaaInstanceHandle handle, MaaStringV
TextTransferMode text_mode =
static_cast<TextTransferMode>(MaaToolKitExecAgentArgvTransferMode_Text_Mask & argv_mode);
ImageTransferMode image_mode =
static_cast<ImageTransferMode>(MaaToolKitExecAgentArgvTransferMode_Image_Mask & argv_mode);
static_cast<ImageTransferMode>((MaaToolKitExecAgentArgvTransferMode_Image_Mask & argv_mode) >> 8);

switch (type) {
case ExecutorType::Recognizer:
Expand Down
4 changes: 2 additions & 2 deletions source/MaaToolKit/ExecAgent/ExecAgentType.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MAA_TOOLKIT_NS_BEGIN

enum class TextTransferMode
{
StdIO,
StdIO = 1,
FileIO,
};
inline std::ostream& operator<<(std::ostream& os, TextTransferMode mode)
Expand All @@ -29,7 +29,7 @@ inline std::ostream& operator<<(std::ostream& os, TextTransferMode mode)

enum class ImageTransferMode
{
FileIO,
FileIO = 1,
};
inline std::ostream& operator<<(std::ostream& os, ImageTransferMode mode)
{
Expand Down

0 comments on commit 6231c8b

Please sign in to comment.