Commit Graph

2596 Commits

Author SHA1 Message Date
PatrickvL 834a389ef0 Merge remote-tracking branch 'refs/remotes/Cxbx-Reloaded/master' 2017-07-11 11:04:33 +02:00
PatrickvL 85c06590a4 Merge pull request #498 from LukeUsher/VBlank
VBlank timing improvements.
2017-07-11 10:16:49 +02:00
Luke Usher 2e19ea132b Prevent the Windows timer resolution from being changed 2017-07-11 08:47:36 +01:00
Luke Usher 3bb19a836d Use SwitchToThread rather than Sleep(0) 2017-07-11 08:44:09 +01:00
Luke Usher ed00f8de17 Split VBlank calculation into it's own function 2017-07-11 08:43:53 +01:00
Luke Usher e24478ee83 VBlank timing improvements.
A titles registered VBlank Callback is called after a (simulated) VBlank imterval has passed. This is better than current behavoir where it is incorrectly called multiple times per frame.

BlockUntilVerticalBlank has been updated to wait for the VBlank counter to increase, rather than wait a set amount of time. This is more accurate in cases where it was called later in the frame, it may not be correct to always wait a whole frames worth of time.
2017-07-10 18:13:10 +01:00
PatrickvL 562e41bc16 Merge pull request #496 from LukeUsher/xboxkrnl-signatures
Xboxkrnl signatures
2017-07-07 20:26:18 +02:00
Luke Usher 0a30436277 Fix a few kernel APIs that were using _cdecl instead of _stdcall (NTAPI) 2017-07-06 22:45:44 +01:00
Luke Usher 3b137d3006 Fix incorrect export number 2017-07-06 08:09:43 +01:00
Luke Usher efe2efdbe9 Include Thunk for NtCreateIoCompletion 2017-07-05 21:29:21 +01:00
Luke Usher 164ca0981d Addressed comments by PatrickvL 2017-07-05 21:27:27 +01:00
Luke Usher 1f10642cb6 Added stubs for All known Ke calls. 2017-07-05 19:56:25 +01:00
PatrickvL 3e8e4acd75 Merge pull request #492 from LukeUsher/xonline-tweaks
Xonline tweaks
2017-06-27 08:25:41 +02:00
Luke Usher bafe542ce3 Restore previous NV2A behavoir 2017-06-23 22:17:14 +01:00
Luke Usher 98b02aadcf Consolidate EmuNVNet_Read/Write handlers into single functions 2017-06-23 21:54:54 +01:00
Luke Usher fb072758d0 Revert "These functions shouldn't be needed either"
This reverts commit 42150ba19e.
2017-06-22 21:02:48 +01:00
Luke Usher 08e2768690 Revert "Removed XNetStartup, we shouldn't really be patching this one."
This reverts commit 6b217af78c.
2017-06-22 21:02:35 +01:00
Luke Usher 75ec726074 HalEnableSystemInterrupt is type VOID. 2017-06-22 20:04:07 +01:00
Luke Usher f65f54dff6 Minor fixes 2017-06-21 22:01:51 +01:00
Luke Usher 42150ba19e These functions shouldn't be needed either 2017-06-21 21:18:31 +01:00
Luke Usher a0d90a4835 Implement Read/Write 8/16 in EmuX86 and EmuNVNet. 2017-06-21 21:06:26 +01:00
Luke Usher 7dd48fd592 Stup out 16/32 bit reads and writes
The previous approach (Forwarding to 32bit) doesn't work well for MMIO.
2017-06-21 20:53:15 +01:00
Luke Usher 5e460fd4c7 Add missing linebreaks 2017-06-21 20:44:09 +01:00
Luke Usher cfeab10856 Add generic NVNet register read/write 2017-06-21 20:43:10 +01:00
Luke Usher 9a22e26e1a EmuX86: Implement CMPXCHG 2017-06-21 11:51:56 +01:00
Luke Usher c234062357 Add AND and OR opcodes to EmuX86 2017-06-21 10:04:03 +01:00
Luke Usher 6b217af78c Removed XNetStartup, we shouldn't really be patching this one.
Note: This currently breaks software that calls it due to missing EmuX86 opcodes and missing NVNet emulation, this branch will work on that
2017-06-21 08:35:23 +01:00
Luke Usher a3b5bab1c3 Added dummy NVNet handlers
At least Network hardware writes no longer get reported as "Unknown"
2017-06-21 08:29:08 +01:00
Luke Usher ad3b3e2bc2 XNetGetEthernetLinkStatus can be unpatched afterall! 2017-06-21 06:55:10 +01:00
Luke Usher 6d8b261219 Add SetNotificationPositions for 5233 XDK 2017-06-21 06:53:44 +01:00
Luke Usher c92f494473 Fix broken line-endings in EmuFile 2017-06-20 21:55:41 +01:00
Luke Usher 6b6d9f8edd Fix Symbolic Links that point to a drive letter. 2017-06-20 21:50:32 +01:00
Luke Usher 6d33719b6a Add SetMixBinHeadroom for 5233
XOnlineDash gets a little further with this, it now gets stuck on a kernel bug (Could not map D:)
2017-06-20 21:10:09 +01:00
Luke Usher c3e312d64f Minor tweak to XNetGetEthernetLinkStatus
TODO: Do we even need to patch this function? It might just call PhyGetLinkState
2017-06-20 21:09:26 +01:00
Luke Usher 4989dc6b18 Implement PhyGetLinkState 2017-06-20 21:06:53 +01:00
PatrickvL 81c30dc57d Merge remote-tracking branch 'refs/remotes/Cxbx-Reloaded/master' 2017-06-20 17:23:52 +02:00
Luke Usher db956dc323 Update Patreon Supporters List 2017-06-20 11:18:39 +01:00
PatrickvL 5c3d37d11c Merge remote-tracking branch 'refs/remotes/Cxbx-Reloaded/master' 2017-06-06 01:51:54 +01:00
Luke Usher 2d26c459e1 Merge pull request #486 from LukeUsher/enforce-windows7-compatibility
Enforce Windows 7 compatibility!
2017-06-05 20:44:55 +01:00
Luke Usher 5f1d167801 Enforce Windows 7 compatibility! 2017-06-05 20:43:48 +01:00
Luke Usher 6f483808c6 Merge pull request #484 from LukeUsher/xinput-support
Fix and enable XInput controller support.
2017-06-04 11:53:45 +01:00
Luke Usher f879c407fd Fix and enable XInput controller support.
This is configurable in the Input menu: If Use XInput is selected, XInput controllers will be used, otherwise the default controller mapping system will be used.

On an Xbox 36- controller, buttons are mapped 1:1 with Xbox buttons

As the Xbox 360 lacks BLACK and WHITE, but gains LB/RB, white is mapped to LB and right is mapped to RB.
2017-06-04 11:50:14 +01:00
PatrickvL c733fd2af0 Merge remote-tracking branch 'refs/remotes/Cxbx-Reloaded/master' 2017-06-01 16:49:36 +02:00
PatrickvL 389a8fd603 Merge pull request #480 from LukeUsher/jsrf-hack
JSRF Hack: Prevent crash after XGetDeviceChanges
2017-05-28 17:58:54 +02:00
Luke Usher 4d75a6c79d JSRF Hack: Prevent crash after XGetDeviceChanges 2017-05-28 16:31:55 +01:00
PatrickvL e780f8c496 Merge pull request #474 from LukeUsher/clear-cache-on-lle
Clear HLE Cache when LLE options are toggled
2017-05-22 15:58:12 +02:00
Luke Usher 9e5cbd2d52 Clear HLE Cache when LLE options are toggled 2017-05-20 20:37:45 +01:00
PatrickvL 82c19073f8 Merge pull request #473 from LukeUsher/fix-lle-menu-items
Fix an issue where the LLE menu items no longer functioned correctly
2017-05-20 11:27:13 +02:00
Luke Usher 6c6d895df0 Fix an issue where the LLE menu items no longer functioned correctly 2017-05-20 09:41:45 +01:00
Luke Usher b83cc6f8bc Merge pull request #464 from PatrickvL/space
More D3D logging and simplified D3DDevice_GetBackBuffer and D3DDevice_SetRenderTarget
2017-05-18 21:48:37 +01:00