Commit Graph

16 Commits

Author SHA1 Message Date
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