Commit Graph

4751 Commits

Author SHA1 Message Date
blueshogun96 ec7cd60b97 Cleanup duplicated handles for APCs 2018-05-26 12:14:04 -07:00
blueshogun96 a81db113ee Cleanup duplicated handles for APCs 2018-05-26 12:14:03 -07:00
RadWolfie 06632b2794
Merge pull request #1208 from LukeUsher/optimising-tweaks
Tweak Compiler Optimization Settings
2018-05-26 01:32:19 -05:00
Luke Usher e864f301a7 Oops 2018-05-25 23:08:11 +01:00
Luke Usher f86d3d9509 Even more aggressive optimization (Use LTCG) 2018-05-25 22:59:57 +01:00
Luke Usher e6013ba225 Tweak optimization settings: This should give a (slight) speed boost for some users 2018-05-25 22:39:39 +01:00
Luke Usher 3457c6b185
Merge pull request #1205 from jagotu/master
QueryMemory reports host allocated memory
2018-05-25 22:01:06 +01:00
Jan Gocník 006b49937c QueryMemory reports host allocated memory 2018-05-25 15:15:09 +02:00
patrickvl 341edd2512 D3D9 : Honour D3DCaps for UBTYE4 support 2018-05-25 08:38:05 +02:00
RadWolfie aaf6579c45
Merge pull request #1202 from RadWolfie/eeprom-hotfix
Hotfix EEPROM
2018-05-24 20:48:23 -05:00
RadWolfie 3dc9d0dfd7 Hotfix EEPROM
Found the source of cause, after this change. Attempted to reproduce the issue no longer return. Now everything works as intended.
2018-05-24 20:46:47 -05:00
RadWolfie 134e305bc2
Merge pull request #1201 from RadWolfie/JaGoTu-quickfix
JaGoTu quickfix branch (VMM fixup)
2018-05-24 16:25:03 -05:00
RadWolfie 25c495341d Another update
* LOWEST_USER_ADDRESS use the same address as XBE_IMAGE_BASE
* Restored 2nd statement check
2018-05-24 12:58:30 -05:00
RadWolfie 5404211da9 Fix previous commit 2018-05-24 12:29:21 -05:00
Jan Gocník c2f944f31f NtQueryVirtualMemory fixed
It now properly reports allocations (even for user memory).
2018-05-24 12:24:44 -05:00
PatrickvL 726c1ed77e D3D9 : Small rename 2018-05-24 14:30:23 +02:00
PatrickvL b54411774e D3D : More Direct3D 9 porting of vertex element conversion code (using more sensible types and code) 2018-05-24 14:15:49 +02:00
PatrickvL f235caca57 D3D9 : Porting more of the vertex shader conversion code 2018-05-24 10:58:11 +02:00
Luke Usher d661ccd0b5
Merge pull request #1198 from PatrickvL/xbdm
Xbdm
2018-05-24 09:51:54 +01:00
PatrickvL 0682970e42 Project fixups 2018-05-24 10:36:24 +02:00
Luke Usher 72c9132f45
Merge pull request #1197 from jarupxx/LTCG_patch
D3D : Add / fix patch for LTCG optimized
2018-05-23 13:08:30 +01:00
jarupxx e81e6ed7ee D3D : Add patch for LTCG optimized D3DDevice_SetPixelShaderConstant 2018-05-23 20:57:42 +09:00
PatrickvL 356b7c5a27 xbdm : Initial commit; Thunk table + importing (2 functions already imported by debugchannel.xbe XDK sample) 2018-05-22 15:09:58 +02:00
jarupxx 32e89f73c3 D3D : Fix parameter in D3DDevice_SelectVertexShader_0 2018-05-22 19:40:56 +09:00
PatrickvL 15335306d7
Merge pull request #1194 from jagotu/master
Fix in XInputSetState polling loop
2018-05-20 23:20:57 +02:00
Jan Gocník ab64d5e96a XInputSetState: properly update the Status array
When a new SetState request is recieved, make sure to either
queue it to the polling thread or return a SUCCESS. Otherwise
the requesting thread will die waiting for something you
didn't take not of.
2018-05-20 23:01:22 +02:00
Jan Gocník cfa3c3d5ac Fix in SetState polling loop
Once the pFeedback->Header.hEvent event is set, the game is free to free
the buffer that it was pointing to. In HP1 game, the pointer
even lead to the stack. Because that stack was changing a lot,
pFeedback->Header.dwStatus eventually resolved to a non-zero
value and we started to overwrite some random memory.
2018-05-20 21:35:40 +02:00
Luke Usher 162cd7c511
Merge pull request #1193 from blueshogun96/master
User APC threads require special permissions to work
2018-05-20 19:23:05 +01:00
blueshogun96 12986a78f2 User APC threads require special permissions to work 2018-05-20 11:04:17 -07:00
RadWolfie 46c079cf5e
Merge pull request #1192 from RadWolfie/master
Force unpatch XActEng
2018-05-19 11:21:47 -05:00
RadWolfie 9724361717 Force unpatch XActEng
Since we are not emulating XActEng directly. We can unpatch all of it base on old HLEDatabase document.

P.S. XActEng is a wrapper of DSound.
2018-05-19 11:17:44 -05:00
PatrickvL 520730a342
Merge pull request #1191 from RadWolfie/fix-popup-message-func
Show correct icon to popup message dialog
2018-05-19 07:42:55 +02:00
RadWolfie e1e2bbc676 Reword to match enum selections 2018-05-19 00:20:31 -05:00
RadWolfie 093c9e20d2 Show correct icon to popup message dialog 2018-05-19 00:08:59 -05:00
Luke Usher 51fb5483e1
Merge pull request #1190 from jagotu/master
Fix some CriticalSection bugs
2018-05-18 23:09:22 +01:00
Jan Gocník 9771f989d0 Fix some CriticalSection bugs
The main issue was that the corresponding Event to the CriticalSection
wasn't created when the CriticalSection was and the return value of
KeWaitForSingleObject wasn't checked, so the STATUS_INVALID_HANDLE
was quitely ignored.

This actually gets Harry Potter and the Sorcerer's Stone to intro.
2018-05-18 23:50:39 +02:00
Luke Usher 99b8b7f3d2
Merge pull request #1188 from LukeUsher/minor-tweaks
Prevent pgraph_update_surface when OpenGL is not enabled
2018-05-18 16:05:47 +01:00
Luke Usher 7eafccbf68 Prevent pgraph_update_surface when OpenGL is not enabled 2018-05-18 16:04:17 +01:00
Luke Usher a0002a4aa7
Merge pull request #1187 from LukeUsher/minor-tweaks
Fix a crash in Crash Bandicoot when using non-rendertarget Cube Texures
2018-05-18 14:21:51 +01:00
Luke Usher 5d29536932 Fix a crash in Crash Bandicoot when using a non-rendertarget Cube Texture 2018-05-18 14:20:26 +01:00
Luke Usher 26901e6173
Merge pull request #1186 from LukeUsher/minor-tweaks
Fix Cube Mapping & Minor Tweaks
2018-05-18 13:40:21 +01:00
Luke Usher 9c27e04a37 Fix local Debug build. Hopefully AppVeyor fixed too 2018-05-18 13:28:52 +01:00
Luke Usher b3cdf0dbfd Use one global EEPROM Reset function when required 2018-05-18 13:25:42 +01:00
Luke Usher 377f388279 Fix Cube Mapping! 2018-05-18 12:10:23 +01:00
Luke Usher da61ebab94 Add some notes to D3DDevice_Swap 2018-05-18 08:59:27 +01:00
Luke Usher bacbba2fd1 Initialize default Serial No. to Cxbx-R 2018-05-17 14:25:58 +01:00
Luke Usher b80de27d12 Prevent exceptions on invalid NtDll handle 2018-05-17 14:25:46 +01:00
Luke Usher 8b71d404ef
Merge pull request #1184 from LukeUsher/set-hasdepthstencil-flag
SetRenderTarget should update the g_bHasDepthStencil flag
2018-05-17 11:06:35 +01:00
Luke Usher 7e9c70cdec SetRenderTarget should update the g_bHasDepthStencil flag 2018-05-17 10:47:16 +01:00
Luke Usher 0e29c50958
Merge pull request #1183 from LukeUsher/fix-backbuffer-crash
Fix a crash when GetHostResource fails within D3DDevice_GetBackBuffer
2018-05-17 09:53:25 +01:00