1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-11-24 05:20:10 +01:00
Commit Graph

31 Commits

Author SHA1 Message Date
Tau
e49e1ec804 Add DLL binding helper 2021-06-13 11:27:00 -04:00
Tau
eccb5557d0 util/async.c: Include NTSTATUS
Fixes non-PCH build.
2019-09-01 11:48:55 -04:00
Tau
1b93551a41 hooklib: Split out of util
This is distinct from capnhook's hooklib, although the intent is
the same. Hopefully these two libraries sharing a name won't get
too confusing...
2019-05-14 17:13:08 -04:00
Tau
a96e625a36 util/str.c: Add string equality wrappers 2019-05-13 16:49:50 -04:00
Tau
03cace7785 util/fdshark.c: Add IO tracing utility 2019-05-09 16:49:18 -04:00
Tau
649e7d2b4e util/dump.c: Allow NULL ptr if size is zero 2019-05-09 16:49:00 -04:00
Tau
036730840d util/clock.c: Fix clock skew mod
Local time needs to be JST or some games (at least ID Zero) will
malfunction.
2019-05-04 17:45:35 -04:00
Tau
025102fc58 Remove PCH source files
Deprecated in newer versions of Meson.
2019-05-01 21:17:30 -04:00
Tau
c42b70b2c2 util/clock.c: Block SetLocalTime 2019-05-01 21:12:13 -04:00
Tau
2df92f7492 util/async.c: Small locking fix 2019-03-16 12:47:55 -04:00
Tau
ba8b8e32fc util/async.c: Add async IO worker thread
Need this for IO4 USB emulation, might break it out and upstream it
to Capnhook at some point as well.
2019-03-04 16:47:32 -05:00
Tau
39d1b89b1b util/dprintf.c: Make dprintf() thread safe 2019-03-04 16:47:32 -05:00
Tau
65d24c1ada util/setupapi.c: Avoid clashes with real devices
We're going to need this for HID emulation, since unlike all the
other device classes regular PCs do actually have a bunch of HIDs
attached to them that we're going to want to access from within
the hooked process.
2019-02-27 21:56:10 -05:00
Tau
ee011a74d4 Make dprintfs 64-bit clean 2018-12-17 17:34:50 -05:00
Tau
25a1898747 Add j_printf spike flavor 2018-11-28 11:49:10 -05:00
Tau
51e4eca7dd Add MSVC PCH support 2018-11-23 18:25:22 -05:00
Tau
dc082c77eb util/clock.c: Use #define constants
MSVC doesn't allow chaining of const expressions grumble grumble
(need to use constexpr, which is a. an extremely ugly looking
reserved word and b. exclusive to C++)
2018-11-23 18:25:21 -05:00
Tau
42a79933f1 util/setupapi.c: Fix calling convention syntax 2018-11-23 18:25:21 -05:00
Tau
0cbd950289 Fix non-PCH build 2018-11-23 14:37:42 -05:00
Tau
51994d59ff Combine both clock hooks
Turns out the clock skew doesn't really work unless RTC and TZ
changes are blocked as well.
2018-11-23 14:23:16 -05:00
Tau
9c83a38208 util/clock.c: Apply clock skew
SEGA games are unplayable between 03:00 and 07:00 local time due
to a network maintenance period that is hard-coded into the games
themselves (no, guest play is not available).

Deal with this by slowing down time to avoid 02:00 (the time when
a warning appears and new credits eventually start being rejected),
then jump forward to sync up with real time when 07:00 hits.
2018-11-20 20:33:17 -05:00
Tau
9614185511 util/spike.c: Use different filenames for each DLL
Might want to hook Chunithm and the card reader satellite process
side by side for instance.
2018-11-20 20:33:17 -05:00
Tau
5df0994458 util/dump.c: Add ASCII view to dump output 2018-11-20 20:33:17 -05:00
Tau
c560dc7ee2 util/spike.c: Add configurable log "spike" injector 2018-11-20 20:33:17 -05:00
Tau
1eca0648f1 util/gfx.c: Add crude D3D9 window hook 2018-11-20 20:33:17 -05:00
Tau
851ea65609 util/clock.c: Add hook to prevent date/time changes 2018-11-20 20:33:17 -05:00
Tau
f0f45a93a1 util/dump.c: Add hex pretty-print debug helper 2018-11-20 20:33:17 -05:00
Tau
7cf0914092 util/crc.c: Add simple CRC-32 implementation 2018-11-20 20:33:17 -05:00
Tau
c0b20d5a13 util/setupapi.c: Add hook for SETUPAPI lib 2018-11-20 20:33:17 -05:00
Tau
91a08b6abb util/dprintf.c: Add debug printf 2018-11-20 20:33:17 -05:00
Tau
d6eeec637c util: Add empty static lib 2018-11-20 20:33:17 -05:00