Files
MaaAssistantArknights/tools/TestCaller/main.cpp
2021-10-15 11:29:40 +08:00

36 lines
717 B
C++

#include "AsstCaller.h"
#include <stdio.h>
int main(int argc, char** argv)
{
void* ptr = AsstCreate();
auto ret = AsstCatchEmulator(ptr);
if (!ret) {
getchar();
if (ptr) {
AsstDestory(ptr);
ptr = nullptr;
}
return -1;
}
char ch = 0;
while (ch != 'q') {
//AsstStartSanity(ptr);
//AsstStartVisit(ptr, true);
{
const int required[] = { 3, 4, 5, 6 };
AsstStartRecruiting(ptr, required, sizeof(required) / sizeof(int), true);
}
//AsstStartDebugTask(ptr);
ch = getchar();
}
if (ptr) {
AsstDestory(ptr);
ptr = nullptr;
}
return 0;
}