Commit Graph

338 Commits

Author SHA1 Message Date
Felix Anderson a26efa8c0d hooklib/path.c: Hook RemoveDirectory
- A certain game uses RemoveDirectory to clear out some data in the Y:
2021-08-12 23:20:05 +00:00
Felix Anderson ed42e63a78 platform: Prevent amdaemon from shutting down the computer or logging off user 2021-08-12 23:14:34 +00:00
Felix Anderson cc95389646 platform: Add basic hwreset implementation for ALLS 2021-08-12 23:14:31 +00:00
Felix Anderson cd5ae172b8 board/io4.c: add configuration section to enable/disable emulation 2021-07-05 10:08:09 +00:00
6cb1008cabfc0d4485696f6df7431a5e27604e1b e677a1b4f3 dist: add idzhook.md to doc.zip 2021-06-20 16:18:08 +02:00
6cb1008cabfc0d4485696f6df7431a5e27604e1b f3e124a4b1 dist: remove obsolete file copy commands 2021-06-20 16:07:34 +02:00
6cb1008cabfc0d4485696f6df7431a5e27604e1b 0b4fab9045 doc: fixed missing link to idz docs in readme 2021-06-18 23:45:02 +02:00
6cb1008cabfc0d4485696f6df7431a5e27604e1b 031ccb154b dvd: move thread safety comment into header file 2021-06-17 04:13:50 +02:00
6cb1008cabfc0d4485696f6df7431a5e27604e1b 56a32fd80a Add dvd hook to allow hiding connected dvd drives 2021-06-17 04:02:55 +02:00
Felix Anderson 7123a9feff Silence stdcall fixup warning during linking 2021-06-17 01:39:52 +00:00
Felix Anderson 9bd0c96fab Remove leftover GetProcAddress definition 2021-06-17 01:39:52 +00:00
Felix Anderson 2301e8d6ba Remove undefined Direct3DCreate9 references 2021-06-17 01:39:52 +00:00
Felix Anderson 26a69e1ea9 Fix format warnings for HRESULT 2021-06-17 01:39:50 +00:00
6cb1008cabfc0d4485696f6df7431a5e27604e1b 01562ad8c3 doc: Add doc for idzhook
Apply 8 suggestion(s) to 2 file(s)

doc: Fix up initial d docs
2021-06-16 21:24:21 +02:00
6cb1008cabfc0d4485696f6df7431a5e27604e1b 2d7808d82e Fix doc hyperlinks in chunihook.md 2021-06-15 18:57:04 +02:00
Tau 32596acab7 Delete coin blocker exports from IO DLLs
These never get called at the moment, so we have no way of
guaranteeing that any existing implementations are even correct. If
we do decide to start emulating the coin blocker then we will need
to advance the API versions, which will (hopefully) force any
third-party devs to test their coin blocker code before opting in.
2021-06-13 11:27:01 -04:00
Tau d8d2c49c17 Document IDZIO API 2021-06-13 11:27:01 -04:00
Tau 4ad30d65cf Add API versioning to idzio 2021-06-13 11:27:01 -04:00
Tau 38808740b4 Statically link idzio 2021-06-13 11:27:01 -04:00
Tau 392cd89c6a Load and bind idzio at runtime 2021-06-13 11:27:01 -04:00
Tau 3a03c95e1d Document mu3io API 2021-06-13 11:27:01 -04:00
Tau cfb39cd066 Add API versioning to mu3io 2021-06-13 11:27:01 -04:00
Tau 9ae697d4fc Statically link mu3io 2021-06-13 11:27:01 -04:00
Tau 9fc45e2df1 Load and bind mu3io at runtime 2021-06-13 11:27:01 -04:00
Tau 2cd6bdb695 Fix comment in idzio/di.c 2021-06-13 11:27:01 -04:00
Tau d2b9c6034d Load and bind divaio at runtime 2021-06-13 11:27:01 -04:00
Tau 645e6cba1d Add api versioning to divaio 2021-06-13 11:27:01 -04:00
Tau cb3c55d037 Statically link default divaio 2021-06-13 11:27:01 -04:00
Tau 7b71b944e1 chuniio 0x0101: Fix IR beam mapping 2021-06-13 11:27:01 -04:00
Tau 01cfc4e48f Load and bind chuniio at runtime 2021-06-13 11:27:01 -04:00
Tau ef8c844403 Statically link default chuniio 2021-06-13 11:27:01 -04:00
Tau f65f816497 Add API versioning mechanism to chuniio 2021-06-13 11:27:01 -04:00
Tau 0c7a9c87c0 Load and bind aimeio at runtime 2021-06-13 11:27:01 -04:00
Tau e49e1ec804 Add DLL binding helper 2021-06-13 11:27:00 -04:00
Tau ef248d7e0e Export aimeio symbols from hook DLLs 2021-06-13 11:27:00 -04:00
Tau 5e14b595ae Add API versioning scheme to aimeio 2021-06-13 11:27:00 -04:00
Tau 7fb846a839 Document the aimeio API
This is de-facto a published API now so we have to support it.
2021-06-13 11:27:00 -04:00
Tau ebef97e75a Drop aime_io_fini
This isn't used, and due to the way that the hook machinery works
it is not likely to come into use later on either. Since we can't
rely on existing implementations actually being correct, if it does
somehow start being used then we will need to advance the aimeio API
version in order to support it.
2021-06-13 11:27:00 -04:00
Tau fb0fd41b6f Statically link current aimeio implementation 2021-06-13 11:27:00 -04:00
Tau 45e2416702 Simplify DLL hook mechanism
This change deletes the GetProcAddress hook and exports symbols
corresponding to the hooked functions from each hook DLL instead;
we stop at redirecting LoadLibrary/GetModuleHandle calls to the
hook DLL. This simplified approach has less hidden magic going on
behind the scenes and is more readily composable (i.e. a hook DLL
can export redirect symbols for more than one dynamically-loaded
DLL).
2021-06-13 11:27:00 -04:00
Tau b4cd868f85 Add module DEF file for chunihook 2021-06-13 11:27:00 -04:00
Tau fab50e5e34 Fix Diva slider startup 2021-06-13 11:27:00 -04:00
Tau 972b3a5de8 Fix hook startup failure path
Returning from the EXE PE entry point merely terminates the main
thread and leaves the process hanging. We need to explicitly exit
from the process since the NTDLL RTL Start code won't do it for us.
2021-06-13 11:27:00 -04:00
Tau 1d6b7591ef Fix DLL loader hook logic
Seems this was quite buggy in its original form.
2021-06-13 11:27:00 -04:00
Tau d9d206a160 Whitespace fix 2021-06-13 11:27:00 -04:00
Tau 81f90981b4 Delete draft debris that was never used 2021-06-13 11:27:00 -04:00
Tau 5ee0bb2afb Suppress vscode auto-format for the time being
Eventually we would like to set up clang-format rules and enforce
them from CI.
2021-06-13 11:27:00 -04:00
icex2 c1242f1f45 Add another build option for Windows using Docker Desktop to README 2021-05-28 22:40:15 +02:00
icex2 de829d3b8c Add docker-build.bat for building on Windows with Docker Desktop
Initial contribution by Vincent Kocks. Script simplified to fit the
new build setup with a common build/ folder. Build folder can
be deleted on every invocation because it will just be copied
from the docker container anyway.

Co-authored-by: Vincent Kocks <engineering@vingenuity.net>
2021-05-28 22:40:04 +02:00
icex2 aecd7aa749 Add instructions to build on Windows using WSL2 and docker 2021-05-28 21:39:37 +02:00