mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
refactor.完成 Controller 部分的重构
This commit is contained in:
@@ -89,45 +89,13 @@ void AsstDestroy(asst::Assistant* p_asst)
|
||||
_callback = nullptr;
|
||||
}
|
||||
|
||||
bool AsstCatchDefault(asst::Assistant* p_asst)
|
||||
bool AsstConnect(asst::Assistant* p_asst, const char* adb_path, const char* address, const char* config)
|
||||
{
|
||||
if (p_asst == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return p_asst->catch_default();
|
||||
}
|
||||
|
||||
bool AsstCatchEmulator(asst::Assistant* p_asst)
|
||||
{
|
||||
if (p_asst == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return p_asst->catch_emulator();
|
||||
}
|
||||
|
||||
bool AsstCatchCustom(asst::Assistant* p_asst, const char* address)
|
||||
{
|
||||
if (p_asst == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return p_asst->catch_custom(address);
|
||||
}
|
||||
|
||||
bool AsstCatchFake(asst::Assistant* p_asst)
|
||||
{
|
||||
#ifdef ASST_DEBUG
|
||||
if (p_asst == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return p_asst->catch_fake();
|
||||
#else
|
||||
(void*)p_asst;
|
||||
return false;
|
||||
#endif // ASST_DEBUG
|
||||
return p_asst->connect(adb_path, address, config ? config : std::string());
|
||||
}
|
||||
|
||||
bool ASSTAPI AsstAppendStartUp(asst::Assistant* p_asst)
|
||||
|
||||
Reference in New Issue
Block a user