mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
33 lines
449 B
C++
33 lines
449 B
C++
#include "AsstCaller.h"
|
|
#include <stdio.h>
|
|
|
|
using namespace asst;
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
Assistance* ptr = AsstCreate();
|
|
auto ret = AsstCatchEmulator(ptr);
|
|
if (!ret) {
|
|
getchar();
|
|
if (ptr) {
|
|
AsstDestory(ptr);
|
|
ptr = nullptr;
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
char ch = 0;
|
|
while (ch != 'q') {
|
|
AsstStartInfrast(ptr);
|
|
//AsstStartDebugTask(ptr);
|
|
|
|
ch = getchar();
|
|
}
|
|
|
|
if (ptr) {
|
|
AsstDestory(ptr);
|
|
ptr = nullptr;
|
|
}
|
|
|
|
return 0;
|
|
} |