Commit Graph

2887 Commits

Author SHA1 Message Date
Luke Usher 58939f8297 XeUnloadsection should return STATUS_SUCCESS on success 2017-10-18 16:41:13 +01:00
Luke Usher 1613b5d9a6 Create a .bin file for each partition, which is used for direct HDD partition header access
Dashupdate.xbe progresses further with this, now it attempts to format the partitions but fails due to incomplete implementation of DeviceIoControlFile (Specifically IOCTL_DISK_GET_DRIVE_GEOMETRY and IOCTL_DISK_GET_PARTITION_INFO
2017-10-17 23:17:18 +01:00
Luke Usher f4573d097a Fix an issue caused by DesiredAccess not being correctly set when FILE_SYNCHRONOUS is used in CreateOptions 2017-10-17 23:14:13 +01:00
Luke Usher d2514874de Attempt to prevent Share Violation errors 2017-10-17 23:13:21 +01:00
Luke Usher 0fb6a72ffd Fix a compiler warning in Xbe.cpp 2017-10-17 23:12:57 +01:00
Luke Usher 4b35db183c Xbe Loading Improvements
- Rather than copying the entire Xbe into the xbox address space, we
copy only the header
- Only sections marked as 'preload' are loaded at boot time
- All other sections are loaded/unloaded on demand by the running title,
via calls to XLoadSecton/XUnloadSection
- Fixed an off-by-one error in Xbe section name parsing
- Fix an incorrect assumption that section names are always
8 characters null-terminated. They are 9 characters, null padded
2017-10-17 17:25:03 +01:00
RadWolfie 853eea7bdb Merge pull request #764 from ergo720/hlecache
Fix #746 issue
2017-10-11 14:43:07 -05:00
ergo720 aedf8df158 Slight improvements 2017-10-11 21:27:31 +02:00
ergo720 5a13c67b54 Fix for issue #746 2017-10-11 20:14:37 +02:00
PatrickvL 5d1d8f109c Merge pull request #763 from ergo720/crash-fix
Crash detection implementation
2017-10-10 22:17:58 +02:00
ergo720 90f885e9bb Slight improvements 2017-10-10 19:22:15 +02:00
ergo720 fe7ef86561 Crash detection implementation 2017-10-10 14:47:30 +02:00
Luke Usher 6a798ad55e Merge pull request #761 from LukeUsher/jsrf
Reinstate JSRF Hack
2017-10-08 19:01:32 +01:00
Luke Usher 68a7f8ab07 Reinstate JSRF hack
This is implemented a little differently than before, it no longer disabled an entire function but instead initialises the X_DEVICETYPE_GAMEPAD structure a little differently.
2017-10-08 18:57:36 +01:00
Luke Usher 5b412d4020 Don't report symbol names if the Xbe crashed outside of the xbox memory space 2017-10-08 18:54:16 +01:00
PatrickvL 94a2ddae66 Merge pull request #760 from LukeUsher/xbe-fix
Fix an issue where Cxbx-Reloaded would crash outright rather than show an error when an XBE failes to load
2017-10-08 13:20:51 +02:00
Luke Usher cc55f79063 Fix an issue where Cxbx-Reloaded would crash outright rather than show an error when an XBE failes to load 2017-10-08 12:08:29 +01:00
PatrickvL 3bbfcfe63a Merge pull request #757 from ergo720/childwnd
Fix for issue #730
2017-10-08 08:34:40 +02:00
ergo720 5abdf9ca01 Alternative implementation to fix issue #730 2017-10-08 02:03:55 +02:00
Luke Usher 3e85721974 Merge pull request #759 from LukeUsher/master
Fix an issue where titles not making use of Input APIs would crash
2017-10-07 17:42:14 +01:00
Luke Usher f710970b0b Fix an issue where titles not making use of Input APIs would crash 2017-10-07 17:40:25 +01:00
Luke Usher d742c88c37 Merge pull request #755 from LukeUsher/xapi-debug
Split SetupXboxDeviceTypes into a function and add better logging.
2017-10-05 21:30:24 +01:00
Luke Usher c6e2cfdd03 FIx Input in Far Cry Instincts 2017-10-05 20:57:04 +01:00
Luke Usher c9b36b250c Fix an issue where GetTypeInformation was not being registered for 4432 and 5788 2017-10-05 20:15:54 +01:00
Luke Usher f4291b2ed2 Split SetupXboxDeviceTypes into a function and add better logging.
This could help to identify problems from Debug logs.
2017-10-05 09:13:08 +01:00
Luke Usher 05661be44b Fix some compiler warnings and feedback: DeviceTypes should have been xbaddr 2017-10-04 15:11:58 +02:00
Luke Usher 55b0fb8483 Finish XGetDevices and XGetDeviceChanges implementations
JSRF hack removed!
2017-10-04 15:11:58 +02:00
Luke Usher 2b06bb5a59 Derive Gamepad Structure from XAPI functions 2017-10-04 15:11:58 +02:00
Luke Usher 3db0931518 Add OOVPA for GetTypeInformation 2017-10-04 15:11:58 +02:00
Luke Usher 09783d62ab Merge pull request #749 from CakeLancelot/CakeLancelot-templaterework
Update ISSUE_TEMPLATE.md
2017-09-25 15:00:18 +01:00
CakeLancelot ed818c9f57 Update ISSUE_TEMPLATE.md 2017-09-25 08:39:43 -05:00
Luke Usher c609654f35 Merge pull request #745 from LukeUsher/KeEvent-api
Implement KeEvent Api's for non-windows event structures.
2017-09-21 20:54:01 +01:00
Luke Usher 5a78f70f1f Merge pull request #742 from PatrickvL/work
Logging improvements
2017-09-21 20:53:39 +01:00
Luke Usher 18a64386cd Implement KeEvent Api's for non-windows event structures. 2017-09-21 20:49:35 +01:00
PatrickvL ca03ea3df2 Merge pull request #741 from LukeUsher/fix-xmarbles
Re-enable SurfaceDesc patches
2017-09-20 22:35:40 +02:00
Luke Usher 7067db44dc Re-enable SurfaceDesc patches
This fixes black screens/missing textures in XMarbles
These *shouldn't* be required, but until Patrick's texture branch is merged,we need them anyway
2017-09-20 20:55:26 +01:00
PatrickvL c6290f1796 Logging enhancements and corrections 2017-09-20 17:07:01 +01:00
PatrickvL 6eaafaf241 Fix a few code analysis warnings 2017-09-20 16:50:10 +01:00
PatrickvL 28477f0a80 Rename EEPROM into pEEPROM 2017-09-20 16:40:21 +01:00
PatrickvL d7cf092a3b Merge pull request #740 from LukeUsher/patch-removal
Patch Removal
2017-09-20 16:13:11 +02:00
Luke Usher efa51fb91b The unpatching of CreateDevice allows these patches to be removed with no negative effects. 2017-09-20 14:14:33 +01:00
Luke Usher 761143945c Merge pull request #738 from LukeUsher/fixing-jsrf
Fix JSRF Regression after NV2A merge
2017-09-20 10:33:15 +01:00
Luke Usher 96925bc97d Oops: Device_End is a required patch for HLE as it processes draw comments 2017-09-20 10:05:59 +01:00
Luke Usher d06fc6d669 Prevent NV2A VBlank Thread creation when in HLE Mode.
VBlank callbacks were effectively being called twice, oops!
2017-09-20 10:05:12 +01:00
Luke Usher 66502da40f Merge pull request #736 from PatrickvL/PixelPorting
Ported Dxbx Pixel Shader conversion (Currently disabled)
2017-09-19 14:05:37 +01:00
Luke Usher a4fa55519d Implement INC/DEC opcodes 2017-09-19 13:30:07 +02:00
Luke Usher e16468c83d Disable another patch that is not required now (D3DDevice_End()) 2017-09-19 13:30:07 +02:00
Luke Usher 56caba8feb Remove some patches that are no longer required with D3D_CreateDevice unpatched 2017-09-19 13:30:07 +02:00
Luke Usher 64025e0096 Mark contiguous memory region as executable.
No benefit right now, but this is essential if we want to load/run a real kernel
2017-09-19 13:30:07 +02:00
Luke Usher ab5138a3b9 Fix an issue with SUB and CMP opcodes where the carry flag would not be calculated correctly 2017-09-19 13:30:07 +02:00