mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-11-13 16:00:46 +01:00
c80f903cf8
I just wanna say that It is a SHAME that a Windows ONLY project was not able to build without MINGW Also where's the missing `3mpxsc.h` in diva hook? This also fixes the window size issue from hook_CreateWindowExA in gfxhook And Fixes felica issue as described in #45 Reviewed-on: https://gitea.tendokyu.moe/Dniel97/segatools/pulls/48 Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe> Co-authored-by: GEEKiDoS <geek_ds@foxmail.com> Co-committed-by: GEEKiDoS <geek_ds@foxmail.com>
30 lines
577 B
C
30 lines
577 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "hook/iobuf.h"
|
|
|
|
enum {
|
|
FELICA_CMD_POLL = 0x00,
|
|
FELICA_READ_WITHOUT_ENCRYPTION = 0x06,
|
|
FELICA_WRITE_WITHOUT_ENCRYPTION = 0x08,
|
|
FELICA_CMD_GET_SYSTEM_CODE = 0x0c,
|
|
FELICA_CMD_ACTIVE = 0xa4,
|
|
};
|
|
|
|
struct felica {
|
|
uint64_t IDm;
|
|
uint64_t PMm;
|
|
uint16_t system_code;
|
|
};
|
|
|
|
HRESULT felica_transact(
|
|
struct felica *f,
|
|
struct const_iobuf *req,
|
|
struct iobuf *res);
|
|
|
|
uint64_t felica_get_amusement_ic_PMm(void);
|