1
0
mirror of synced 2024-11-14 23:07:36 +01:00

Separate Aime emulator in APM3 emu

Separate Aime emulator in APM3 emu
This commit is contained in:
Reaver 2021-07-15 03:16:05 +03:00
parent 075609e63e
commit 33a1472137
4 changed files with 213 additions and 194 deletions

View File

@ -4,179 +4,10 @@
#ifdef _M_AMD64
#include "Functions\Global.h"
#include "APM3.h"
#include "Aime.h"
static uint8_t g_APM3IOValues[256];
bool Aime_acceptConfirm()
{
#ifdef _DEBUG
info(true, "Aime_acceptConfirm");
#endif
return Aime_acceptConfirmReturnValue;
}
bool Aime_cancel()
{
#ifdef _DEBUG
info(true, "Aime_cancel");
#endif
return Aime_cancelReturnValue;
}
struct AccessCode
{
const int DigitCount = 20;
const int Size = 10;
const int StrSize = 41;
char values[10];
char valueStr[41];
};
bool __fastcall Aime_getAccessCode(AccessCode *accessCode)
{
#ifdef _DEBUG
info(true, "Aime_getAccessCode");
#endif
return Aime_getAccessCodeReturnValue;
}
bool __fastcall Aime_getAimeId(unsigned int* uid)
{
#ifdef _DEBUG
info(true, "Aime_getAimeId");
#endif
return Aime_getAimeIdReturnValue;
}
enum class AIME_CONFIRM
{
NoneDB,
FeliCaDB,
AimeDB,
};
AIME_CONFIRM Aime_getConfirm()
{
#ifdef _DEBUG
info(true, "Aime_getConfirm");
#endif
return AIME_CONFIRM::AimeDB;
}
enum class AIME_ERROR_CATEGORY
{
NONE,
WARNING,
NETWORK,
FATAL,
UNKNOWN,
};
AIME_ERROR_CATEGORY Aime_getErrorCategory()
{
#ifdef _DEBUG
info(true, "Aime_getErrorCategory");
#endif
return AIME_ERROR_CATEGORY::NONE;
}
bool Aime_hasConfirm()
{
#ifdef _DEBUG
info(true, "Aime_hasConfirm");
#endif
return Aime_hasConfirmReturnValue;
}
bool Aime_hasError()
{
#ifdef _DEBUG
info(true, "Aime_hasError");
#endif
return Aime_hasErrorReturnValue;
}
bool Aime_hasResult()
{
#ifdef _DEBUG
info(true, "Aime_hasResult");
#endif
return Aime_hasResultReturnValue;
}
bool Aime_isBusy()
{
#ifdef _DEBUG
info(true, "Aime_isBusy");
#endif
return Aime_isBusyReturnValue;
}
bool Aime_isDBAlive()
{
#ifdef _DEBUG
info(true, "Aime_isDBAlive");
#endif
return Aime_isDBAliveReturnValue;
}
bool Aime_isMobile()
{
#ifdef _DEBUG
info(true, "Aime_isMobile");
#endif
return Aime_isMobileReturnValue;
}
bool Aime_isReaderDetected()
{
#ifdef _DEBUG
info(true, "Aime_isReaderDetected");
#endif
return Aime_isReaderDetectedReturnValue;
}
enum class AIME_LOG_STATUS
{
BEGIN,
CONTINUE,
END,
};
bool __fastcall Aime_sendLog(unsigned int uid, AIME_LOG_STATUS status, unsigned __int64 count)
{
#ifdef _DEBUG
info(true, "Aime_sendLog");
#endif
return Aime_sendLogReturnValue;
}
bool Aime_setLedError()
{
#ifdef _DEBUG
info(true, "Aime_setLedError");
#endif
return Aime_setLedErrorReturnValue;
}
bool Aime_setLedSuccess()
{
#ifdef _DEBUG
info(true, "Aime_setLedSuccess");
#endif
return Aime_setLedSuccessReturnValue;
}
bool Aime_start()
{
#ifdef _DEBUG
info(true, "Aime_start");
#endif
return Aime_startReturnValue;
}
__int64 __fastcall AllnetAccounting_beginPlay(unsigned int a1)
{
#ifdef _DEBUG

View File

@ -6,32 +6,8 @@ static char LocationName[64];
static char LinkServerName[64];
static char ServerName[64];
static bool Aime_acceptConfirmReturnValue = false;
static bool Aime_cancelReturnValue = false;
static __int64 Aime_getAccessCodeReturnValue = 0;
static bool Aime_getAimeIdReturnValue = false;
static __int64 Aime_getConfirmReturnValue = 0;
static bool Aime_hasConfirmReturnValue = false;
static bool Aime_hasErrorReturnValue = false;
static bool Aime_hasResultReturnValue = false;
static bool Aime_isBusyReturnValue = false;
static bool Aime_isDBAliveReturnValue = false;
static __int64 System_getResolutionReturnValue = 0;
static bool Aime_isMobileReturnValue = false;
static bool Aime_isReaderDetectedReturnValue = false;
static char Aime_sendLogReturnValue = 0;
static bool Aime_setLedErrorReturnValue = false;
static bool Aime_setLedSuccessReturnValue = false;
static bool Aime_startReturnValue = false;
static __int64 AllnetAccounting_beginPlayReturnValue = 0;
static __int64 AllnetAccounting_endPlayReturnValue = 0;

View File

@ -0,0 +1,148 @@
#include <Utility/InitFunction.h>
#include <StdInc.h>
#include <thread>
#ifdef _M_AMD64
#include "Functions\Global.h"
#include "Aime.h"
static uint8_t g_APM3IOValues[256];
bool Aime_acceptConfirm()
{
#ifdef _DEBUG
info(true, "Aime_acceptConfirm");
#endif
return 0;
}
bool Aime_cancel()
{
#ifdef _DEBUG
info(true, "Aime_cancel");
#endif
return 0;
}
bool __fastcall Aime_getAccessCode(AccessCode *accessCode)
{
#ifdef _DEBUG
info(true, "Aime_getAccessCode");
#endif
return 0;
}
bool __fastcall Aime_getAimeId(unsigned int* uid)
{
#ifdef _DEBUG
info(true, "Aime_getAimeId");
#endif
return 0;
}
AIME_CONFIRM Aime_getConfirm()
{
#ifdef _DEBUG
info(true, "Aime_getConfirm");
#endif
return AIME_CONFIRM::AimeDB;
}
AIME_ERROR_CATEGORY Aime_getErrorCategory()
{
#ifdef _DEBUG
info(true, "Aime_getErrorCategory");
#endif
return AIME_ERROR_CATEGORY::NONE;
}
bool Aime_hasConfirm()
{
#ifdef _DEBUG
info(true, "Aime_hasConfirm");
#endif
return 0;
}
bool Aime_hasError()
{
#ifdef _DEBUG
info(true, "Aime_hasError");
#endif
return 0;
}
bool Aime_hasResult()
{
#ifdef _DEBUG
info(true, "Aime_hasResult");
#endif
return 0;
}
bool Aime_isBusy()
{
#ifdef _DEBUG
info(true, "Aime_isBusy");
#endif
return 0;
}
bool Aime_isDBAlive()
{
#ifdef _DEBUG
info(true, "Aime_isDBAlive");
#endif
return 0;
}
bool Aime_isMobile()
{
#ifdef _DEBUG
info(true, "Aime_isMobile");
#endif
return 0;
}
bool Aime_isReaderDetected()
{
#ifdef _DEBUG
info(true, "Aime_isReaderDetected");
#endif
return 0;
}
bool __fastcall Aime_sendLog(unsigned int uid, AIME_LOG_STATUS status, unsigned __int64 count)
{
#ifdef _DEBUG
info(true, "Aime_sendLog");
#endif
return 0;
}
bool Aime_setLedError()
{
#ifdef _DEBUG
info(true, "Aime_setLedError");
#endif
return 0;
}
bool Aime_setLedSuccess()
{
#ifdef _DEBUG
info(true, "Aime_setLedSuccess");
#endif
return 0;
}
bool Aime_start()
{
#ifdef _DEBUG
info(true, "Aime_start");
#endif
return 0;
}
#endif

View File

@ -0,0 +1,64 @@
#ifdef _M_AMD64
bool Aime_acceptConfirm();
bool Aime_cancel();
struct AccessCode
{
const int DigitCount = 20;
const int Size = 10;
const int StrSize = 41;
char values[10];
char valueStr[41];
};
bool __fastcall Aime_getAccessCode(AccessCode* accessCode);
bool __fastcall Aime_getAimeId(unsigned int* uid);
enum class AIME_CONFIRM
{
NoneDB,
FeliCaDB,
AimeDB,
};
AIME_CONFIRM Aime_getConfirm();
enum class AIME_ERROR_CATEGORY
{
NONE,
WARNING,
NETWORK,
FATAL,
UNKNOWN,
};
AIME_ERROR_CATEGORY Aime_getErrorCategory();
bool Aime_hasConfirm();
bool Aime_hasError();
bool Aime_hasResult();
bool Aime_isBusy();
bool Aime_isDBAlive();
bool Aime_isMobile();
bool Aime_isReaderDetected();
enum class AIME_LOG_STATUS
{
BEGIN,
CONTINUE,
END,
};
bool __fastcall Aime_sendLog(unsigned int uid, AIME_LOG_STATUS status, unsigned __int64 count);
bool Aime_setLedError();
bool Aime_setLedSuccess();
bool Aime_start();
#endif