Compare commits

...

3 Commits
QR ... main

Author SHA1 Message Date
a3613d32e2 Fixed download links 2024-05-18 19:47:23 +02:00
ac39fd08f9 Turns out i'm retarded
No longer stopping the cardIO polling thread once we read a card.
2024-05-18 19:18:42 +02:00
e66ea42f54 Update README.md 2024-04-26 08:43:39 +02:00
2 changed files with 59 additions and 48 deletions

View File

@ -12,14 +12,14 @@ Initial project setup done with the help of [Stepland](https://github.com/Stepla
# How to use # How to use
To build this, you'll need two things : Copy cardreader.dll and it's config file to your TAL's plugin folder (\Executable\Release\plugins\). You should be able to see the plugin initializing in the game's console.
- [Meson 1.1.0](https://mesonbuild.com) *There are two versions of this plugin :*
- [Build Tools pour Visual Studio 2022](https://visualstudio.microsoft.com/fr/downloads/)
Once you've edited your build64.bat file to point to your local installation of the VS2022 build tools, you should be good to go. * For JPN or ASIA dumps, use the [CARD Insert](https://gitea.farewell.dev/AkaiiKitsune/tal-cardreader/releases/download/CARD-Fix/cardreader-card.zip) build.
* If you're playing on CHN instead, use the [QR Insert](https://gitea.farewell.dev/AkaiiKitsune/tal-cardreader/releases/download/QR-Fix/cardreader-qr.zip) build.
Copy cardreader.dll to your TAL's plugin folder. You should be able to see the plugin initializing in the game's console. If there's an error when you log-in, make sure you're using the right version for your game dump and that you're using an updated version of esuo1198's TAL fork (Commit [3920cc2](https://github.com/esuo1198/TaikoArcadeLoader/commit/3920cc2) and above !).
# Settings # Settings
@ -28,3 +28,12 @@ Copy cardreader.dll to your TAL's plugin folder. You should be able to see the p
- read_cooldown (default : 20) - read_cooldown (default : 20)
* _Cooldown between each read attempt, a low value (below 15) can lead to game crashes, a high value (above 500) will break SmartCard readers._ * _Cooldown between each read attempt, a low value (below 15) can lead to game crashes, a high value (above 500) will break SmartCard readers._
# Compiling
To build this, you'll need two things :
- [Meson 1.1.0](https://mesonbuild.com)
- [Build Tools pour Visual Studio 2022](https://visualstudio.microsoft.com/fr/downloads/)
Once you've edited your build64.bat file to point to your local installation of the VS2022 build tools, you should be good to go.

View File

@ -37,8 +37,9 @@ static unsigned int __stdcall reader_poll_thread_proc(void *ctx)
if (HasCard && !usingSmartCard) // A Cardio scan is already in progress, SmartCard doesn't need any extra cooldown. if (HasCard && !usingSmartCard) // A Cardio scan is already in progress, SmartCard doesn't need any extra cooldown.
{ {
Sleep(500); Sleep(500);
return 0;
} }
else
{
uint8_t UID[8] = {0}; uint8_t UID[8] = {0};
@ -92,6 +93,7 @@ static unsigned int __stdcall reader_poll_thread_proc(void *ctx)
printError("%s (%s): Card %02X%02X%02X%02X%02X%02X%02X%02X was rejected, still waiting for WaitTouch()\n", __func__, module, UID[0], UID[1], UID[2], UID[3], UID[4], UID[5], UID[6], UID[7]); printError("%s (%s): Card %02X%02X%02X%02X%02X%02X%02X%02X was rejected, still waiting for WaitTouch()\n", __func__, module, UID[0], UID[1], UID[2], UID[3], UID[4], UID[5], UID[6], UID[7]);
} }
} }
}
return 0; return 0;
} }