Commit Graph

4740 Commits

Author SHA1 Message Date
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
Luke Usher 8f638512af Fix a crash when GetHostResource failes within D3DDevice_GetBackBuffer 2018-05-17 08:44:02 +01:00
RadWolfie 1920cf2a2e
Merge pull request #1180 from RadWolfie/warning-fixes
Fixed half of warning messages
2018-05-16 22:29:01 -05:00
RadWolfie a9d09457dd Remove leftover file (Currently in XbSymbolDatabase project) 2018-05-16 18:27:01 -05:00
RadWolfie 913087c21f Fix warning messages
* \src\cxbxkrnl\emursa.cpp(1032): warning C4018: '<': signed/unsigned mismatch
* \src\cxbxkrnl\emursa.cpp(1034): warning C4018: '<=': signed/unsigned mismatch
* \src\cxbxkrnl\emuxapi.cpp(256): warning C4018: '<': signed/unsigned mismatch
* \src\cxbxkrnl\emufile.cpp(331): warning C4267: '=': conversion from 'size_t' to 'xboxkrnl::USHORT', possible loss of data
* \src\cxbxkrnl\emuxinput.cpp(63): warning C4789: buffer 'g_Controller' of size 16 bytes will be overrun; 24 bytes will be written starting at offset 0
* \src\cxbxkrnl\emud3d8\convert.cpp(769): warning C4244: '=': conversion from 'uint32' to 'uint8', possible loss of data
* \src\cxbxkrnl\emud3d8\convert.cpp(770): warning C4244: '=': conversion from 'uint32' to 'uint8', possible loss of data
* \src\cxbxkrnl\emud3d8\convert.cpp(771): warning C4244: '=': conversion from 'uint32' to 'uint8', possible loss of data
* \src\cxbxkrnl\gloffscreen\gloffscreen_common.cpp(64): warning C4018: '<': signed/unsigned mismatch
* \src\devices\video\emunv2a_pfifo.cpp(81): warning C4805: '|': unsafe mix of type 'xbaddr' and type 'bool' in operation
* \src\devices\video\emunv2a_pgraph.cpp(3103): warning C4838: conversion from 'int' to 'unsigned int' requires a narrowing conversion
* \src\devices\video\nv2a_vsh.cpp(704): warning C4018: '<': signed/unsigned mismatch
* \src\devices\video\nv2a_shaders.cpp(231): warning C4018: '<': signed/unsigned mismatch
* \src\devices\video\emunv2a_pgraph.cpp(2938): warning C4018: '<': signed/unsigned mismatch
* \src\devices\video\emunv2a_pgraph.cpp(3749): warning C4018: '<': signed/unsigned mismatch
* \src\devices\video\emunv2a_pgraph.cpp(2972): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
* \src\devices\video\emunv2a_pgraph.cpp(2973): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
2018-05-16 18:22:19 -05:00
PatrickvL 73e08f2ba2
Merge pull request #1179 from RadWolfie/master
Editorconfig second revision
2018-05-16 20:17:15 +02:00
Luke Usher f4d907fc56
Merge pull request #1169 from PatrickvL/SetRenderTarget
Fix Render Targets/Render to texture functionality
2018-05-16 18:34:34 +01:00
RadWolfie ccff183600 Editorconfig second revision
* Apply only for src and resource directories.

With this setup, it should work as intended only for Cxbx-Reloaded's source code without affecting third-party projects.
2018-05-16 10:20:48 -05:00
Luke Usher 162565973b
Merge pull request #1178 from Margen67/patch-1
Update readme (again) and issue template
2018-05-16 11:34:13 +01:00
Margen67 b2c4fd9146
Comply with Luke's requested changes 2018-05-16 03:14:11 -07:00
Margen67 19016ec925
Update ISSUE_TEMPLATE.md
Added Discord link to issue template.
2018-05-16 02:18:04 -07:00
Luke Usher 265d9af1d9 Update D3D8to9 to fix Depth Stencil issue 2018-05-16 10:13:05 +01:00