Fix build with Microsoft Visual C++, Fix gfxhook and felica issue (#48)

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: Dniel97/segatools#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>
This commit is contained in:
2024-11-11 16:28:24 +00:00
committed by Dniel97
parent ceb2b63e8b
commit c80f903cf8
18 changed files with 432 additions and 58 deletions

View File

@ -98,7 +98,7 @@ int WINAPI chcusb_imageformat_330(
uint16_t width,
uint16_t height,
uint16_t *rResult);
int __thiscall chcusb_setmtf(int32_t *mtf);
int __fastcall chcusb_setmtf(int32_t *mtf);
int WINAPI chcusb_makeGamma(uint16_t k, uint8_t *intoneR, uint8_t *intoneG, uint8_t *intoneB);
int WINAPI chcusb_setIcctable(
LPCSTR icc1,
@ -1634,7 +1634,7 @@ int WINAPI fwdlusb_open(uint16_t *rResult) {
return 1;
}
void fwdlusb_close() {}
void WINAPI fwdlusb_close() {}
int WINAPI fwdlusb_listupPrinter(uint8_t *rIdArray) {
dprintf("Printer: C3XXFWDLusb: %s\n", __func__);
@ -2115,7 +2115,7 @@ int WINAPI chcusb_open(uint16_t *rResult) {
return 1;
}
void chcusb_close() {
void WINAPI chcusb_close() {
dprintf("Printer: C3XXusb: %s\n", __func__);
}
@ -2334,7 +2334,7 @@ int WINAPI chcusb_imageformat_330(
return 1;
}
int __thiscall chcusb_setmtf(int32_t *mtf) {
int __fastcall chcusb_setmtf(int32_t *mtf) {
dprintf("Printer: C3XXusb: %s\n", __func__);
memcpy(MTF, mtf, sizeof(MTF));
@ -3351,4 +3351,4 @@ DWORD WriteArrayToFile(LPCSTR lpOutputFilePath, LPVOID lpDataTemp, DWORD nDataSi
void printer_set_dimensions(int width, int height){
WIDTH = width;
HEIGHT = height;
}
}