Commit Graph

3677 Commits

Author SHA1 Message Date
Luke Usher 0bd18b50de
Merge pull request #914 from LukeUsher/master
Fix a regression in Sonic Heroes E3 Demo (maybe others)
2018-02-10 17:26:20 +00:00
Luke Usher 0bcc81215c KPCR recovery without memory change 2018-02-10 17:18:13 +00:00
Luke Usher f488a05cdc Revert "Use Chihiro memory size & Attempt recovery for missing KPCR"
This reverts commit 7a84ece451.
2018-02-10 17:11:41 +00:00
Luke Usher 3493207447
Merge pull request #912 from PatrickvL/kernel_impl
Kernel implementations
2018-02-10 16:24:03 +00:00
PatrickvL 96eeeb28d8 Kernel : Implemented KeRemoveEntryDeviceQueue, KeSetDisableBoostThread 2018-02-09 18:38:22 +01:00
PatrickvL 3c5e916503 Kernel : Completed KeInitializeMutant, implemented KeInsertByKeyDeviceQueue, KeRemoveByKeyDeviceQueue, KeRemoveDeviceQueue (which needed a signature fix, returning a PKDEVICE_QUEUE_ENTRY and removing the SortKey argument) and part of KeRaiseIrqlToSynchLevel. 2018-02-09 18:30:56 +01:00
x1nixmzeng 931e473e7e Fixed base image address 2018-02-09 17:23:05 +00:00
PatrickvL 410c66ce5c Kernel : Implemented ExInterlockedAddLargeStatistic and ExInterlockedCompareExchange64 (this one also needed a signature fix : Lock-argument isn't present on Xbox) 2018-02-09 17:51:34 +01:00
Luke Usher 9be315d816
Merge pull request #911 from LukeUsher/chihiro-fixes
Use Chihiro memory size & Attempt recovery for missing KPCR
2018-02-08 20:02:53 +00:00
Luke Usher 7a84ece451 Use Chihiro memory size & Attempt recovery for missing KPCR 2018-02-08 19:58:27 +00:00
Luke Usher 2812cf191c
Merge pull request #910 from Fisherman166/RtlCriticalFunctions
Implement RTLCriticalSection and KeCriticalRegion functions
2018-02-08 15:38:51 +00:00
Fisherman166 c2810bed40 Add host critical section for the host implementation of tryenter as well 2018-02-08 07:02:40 -08:00
Fisherman166 fbbb138f86 Add host critical section code that calls windows API functions instead of using Ntdll directly 2018-02-07 19:36:22 -08:00
Fisherman166 a796362865 Use thread data structures instead of opaque addresses 2018-02-07 19:36:22 -08:00
Fisherman166 c015dffad2 Remove old Ntdll INTERNAL_CRITICAL_SECTION structure that is no longed used 2018-02-07 19:36:22 -08:00
Fisherman166 9d19bece19 Add reversed engineered implementations of RtlEnterCriticalSectionAndRegion, RtlEnterCriticalSection, RtlInitializeCriticalSection, RtlLeaveCriticalSectionAndRegion, RtlLeaveCriticalSection, and RtlTryEnterCriticalSection kernel functions 2018-02-07 19:36:22 -08:00
Fisherman166 49fc9be353 Add reversed engineered KeLeaveCriticalRegion and KeEnterCriticalRegion kernel functions 2018-02-07 19:36:22 -08:00
x1nixmzeng 46dc475edb Added screenshot 2018-02-07 23:21:40 +00:00
x1nixmzeng 9ea851c14d Do not treat access violation addresses as pointers 2018-02-07 23:12:39 +00:00
x1nixmzeng 02e2f6c5c9 Updated roadmap 2018-02-07 23:10:58 +00:00
x1nixmzeng 34056cec34 Cleanup of exit codes 2018-02-07 23:04:01 +00:00
x1nixmzeng f5df17647e Additional NtStatus errors 2018-02-07 22:40:25 +00:00
x1nixmzeng facda08de8 Fixed corrupt resource files after merge 2018-02-07 22:30:25 +00:00
x1nixmzeng 3e212226f4 Ignore mergetool backup files 2018-02-07 22:06:50 +00:00
x1nixmzeng 5f3ddf6ee1 Merge https://github.com/Cxbx-Reloaded/Cxbx-Reloaded into cxbx-debugger 2018-02-07 22:05:11 +00:00
PatrickvL 735a4bcfc5
Merge pull request #907 from Voxel9/Settings-Initialize
Implement 'Reset to Defaults' menu feature.
2018-02-07 08:10:27 +01:00
PatrickvL 907c67cb25
Merge pull request #908 from CakeLancelot/less-debug-file-clutter
Less debug file clutter
2018-02-07 08:08:24 +01:00
CakeLancelot fcec6231c1 Correct from _DEBUG to _DEBUG_TRACK_PS 2018-02-07 00:15:40 -06:00
Voxel c412935da5 Move code into its own function. 2018-02-06 23:43:42 +00:00
Voxel d09ebb106b Implement 'Reset to Defaults' menu feature. 2018-02-06 21:22:56 +00:00
CakeLancelot 28907a5b49 Only do debug tracking on debug builds 2018-02-06 12:49:24 -06:00
CakeLancelot 4aa09ee9c3 Add check for define before dumping pixel shaders to file 2018-02-06 12:46:25 -06:00
Luke Usher b656816eb4
Merge pull request #906 from LukeUsher/patch-removal-experiment
Direct3D Unpatching
2018-02-06 13:04:51 +00:00
PatrickvL b41a50de31 Use a macro to import Xbox function trampolines 2018-02-06 13:37:32 +01:00
Luke Usher a3c6974804 Host Vertex Buffers are no longer returned to Xbox code from VertexBuffer_Lock
- This brings it inline to how Lock2DSurface/3DSurface work
 - Seems to fix the Crimson Skies memory leak.
2018-02-06 10:24:31 +00:00
Luke Usher 7b8c20dd5c Give Lock3DSurface the same treatment as Lock2DSurface 2018-02-06 08:37:21 +00:00
Luke Usher 673826be79 Fixed the regression causing some frames to not render in Zelda - Oni Link Begins
- Added a ForceRehash flag to the resource information structure
 - Lock2DSurface now is a trampoline which calls the xbox function, but also marks our resource as needs rehash. If a title calls Lock2DSurface, we can assume it's to modify a resource.
2018-02-06 06:47:04 +00:00
x1nixmzeng 4efc4c11cc Resolve any valid disassembled addresses 2018-02-05 23:24:02 +00:00
x1nixmzeng b0cd7b9cd9 Fixed host symbol lookup 2018-02-05 23:07:22 +00:00
x1nixmzeng 40fe88562e Show disassembled module symbols
Now shows external modules by default
2018-02-05 22:44:02 +00:00
x1nixmzeng 1790461543 Automatically switch thread context on suspend 2018-02-05 20:53:12 +00:00
Luke Usher c36911843b Fix a regression causing various XDK samples to crash.
Thanks to Patrick for his CxbxGetPixelContainerMeasures function.
2018-02-05 20:51:16 +00:00
Luke Usher ecb00b442d Fix a regression introduced when rebasing on master 2018-02-05 18:15:35 +00:00
Luke Usher 206e4a9c84 Restore same line endings as master
- Changed line endings are messing up the diff
2018-02-05 16:22:35 +00:00
Luke Usher 31cffb5bcd Fix compilation after rebase on master 2018-02-05 13:47:29 +00:00
Luke Usher f34267e984 Fix an issue where CreatePixelShader could crash when called from LoadVertexShader program in a title that does not have CreatePixelShader present 2018-02-05 13:33:53 +00:00
Luke Usher 954c16c32a Update to latest Cxbx-Reloaded subhook 2018-02-05 13:33:52 +00:00
Luke Usher 35e412a88a Refactor CreatePixelShader to correctly return Xbox handles.
This fixes the exception preventing Sonic Heroes E3 Demo from reaching ingame: It expected to be able to read from the Handle.
2018-02-05 13:33:52 +00:00
Luke Usher 90ab16534e Introduce LoadVertexShaderCache
- (Sonic Heroes E3 Demo goes from ~5fps to 60fps)

Restore patching of CreatePalette
 - Egg Mania renders better
 - Fonts in Burnout render better
2018-02-05 13:33:51 +00:00
Luke Usher 4fb38b9636 Reducing the impact of hashing by increasing the hash duration if no changes are detected 2018-02-05 13:33:51 +00:00