Commit graph

6424 commits

Author SHA1 Message Date
Echelon9
db33acdc7c PVS-Studio fix: Incorrect format. A different number of actual arguments is expected while calling 'sprintf' function. The EFlags value can be read from the Kernel Debug console. 2012-11-26 02:23:29 +11:00
Echelon9
964c0038a8 Ensure the Cxbx Kernel .dll is labelled correctly throughout, taking the opportunity to simplify the Release and Debug branches. Bump version number as well. 2012-11-26 01:44:43 +11:00
Echelon9
8527fc95a3 Implement Kernel 0x0002 AvSendTVEncoderOption() 2012-11-26 01:31:54 +11:00
Echelon9
01c5e3839d Update and split Visual Studio project files by version, support Visual Studio 2010. 2012-11-26 01:20:51 +11:00
blueshogun96
f13a1e7b78 Updates for Outrun2 and more. Alternative D3DDevice_BlockUntilVerticalBlank() implementation added. 2012-10-10 19:02:03 +00:00
Echelon9
cb671b2a27 As XPP_DEVICE_TYPE contains Reserved[3] it has elements numbered [0-2], so ensure we don't access memory outside the array bounds 2012-10-08 01:13:30 +11:00
Echelon9
929a108885 Fixes to printf() and DbgPrintf() messages 2012-10-08 01:06:57 +11:00
Echelon9
8f41bc0795 fprintf() not expecting a class type variable, rather needs an element to resolve the pointer to, in Xbe::DumpInformation() 2012-10-08 00:51:44 +11:00
Echelon9
dbb15e0341 Fix order of precedence for menu item greying out 2012-10-08 00:48:31 +11:00
Echelon9
cc5e0dc658 Ensure memset() does not underflow mCertificate.wszTitleName 2012-10-08 00:41:27 +11:00
Echelon9
5b1d969547 Fix ordering of variables reported in CxbxRtlReallocDebug() 2012-10-08 00:38:25 +11:00
Echelon9
b3463985b5 Ensure correct error checking in EmuXGSwizzleBox 2012-10-08 00:34:00 +11:00
Echelon9
b0c60ebb2a Fix for end of memory block in CheckIntegrity() 2012-10-08 00:21:20 +11:00
Echelon9
0ad1cf1d88 Update gitattributes (with line ending fixes) 2012-10-07 23:58:52 +11:00
Echelon9
ceb25b9f66 Correct use of STL container methods 2012-10-07 23:54:07 +11:00
blueshogun96
78f665cbf9 No commit message 2012-01-12 02:54:37 +00:00
blueshogun96
1737efc2cf Quick fixes for Dashboard. 2011-11-03 10:17:12 +00:00
blueshogun96
11b58429a9 Xbox Dashboard (3944) is now working okay (not perfect). 2011-11-03 00:13:00 +00:00
blueshogun96
b125dd93a1 Some stuff I completely forgot I did a few months ago... 2011-09-03 10:04:21 +00:00
blueshogun96
9cf502c47e Added preliminary native XInput support files and new HLE database files. 2011-06-18 07:20:17 +00:00
blueshogun96
3aad740a75 Quick update 2011-06-18 07:15:32 +00:00
blueshogun96
00097449c6 Added XG for 4432. 2011-06-15 08:17:53 +00:00
blueshogun96
caa409ea83 Added XG for 4432. 2011-06-15 08:17:32 +00:00
blueshogun96
c7913dfab4 Added XG for 4432. 2011-06-15 08:17:17 +00:00
blueshogun96
7e31d6deb2 Whacked is playable + lots of other random updates! 2011-06-15 06:56:33 +00:00
blueshogun96
176ce4fe96 Fixed deferred texture state bugs and Panzer works again. 2010-06-17 07:07:34 +00:00
blueshogun96
33ba592146 Lots of updates for XDK 4034 and 4134 + random bug fixes. 2010-04-29 22:34:18 +00:00
blueshogun96
3e65aa93c9 Random updates 2010-04-22 17:53:29 +00:00
blueshogun96
511ba86290 Fixed compile errors in EmuKrnl.cpp 2010-04-17 17:37:39 +00:00
blueshogun96
2f9b24859f Updating (the hard way) because I can't get TSVN to do it automatically!
Happy now?

Happy now?

Happy now?

Happy now?

Cleanup time.
2010-04-17 03:21:41 +00:00
blueshogun96
0dfaf44aba Added for those who don't have the DirectX8 SDK. For now, you'll have to add the /include and /lib directories in the project yourself! 2009-11-13 21:41:02 +00:00
blueshogun96
9409a6b851 Didn't realize these changed... 2009-11-13 21:08:20 +00:00
blueshogun96
a550b71bd7 Didn't realize these changed... 2009-11-13 21:08:09 +00:00
blueshogun96
dab24dbfec 2009-11-13 21:07:08 +00:00
blueshogun96
f0bad56ee7 Added new version 2009-11-13 21:05:44 +00:00
blueshogun96
22e64d6eaa 2009-11-13 21:05:11 +00:00
blueshogun96
9d10c637af Forgot to update OpenXDK includes. Sorry about that! 2009-11-13 20:17:54 +00:00
blueshogun96
bcc8260f17 Forgot to update 2009-11-13 20:15:34 +00:00
blueshogun96
5618473d90 Just another [major] update... 2009-11-12 01:35:57 +00:00
blueshogun96
271a1cad1d Just another [major] update... 2009-11-12 01:35:50 +00:00
Daniel Stien
6838efd341 Fixed a bug in Xapi EmuRtlReAllocateHeap. Returned value was not updated with alignment offset. Caused crashes with the allocation tracker.
Temporarily fallback to simple dummy vertex shader if recompilation failed.

Added XDK 3911 OOVPAs for Xapi.
- RtlReAllocateHeap, moved back from 4432
- RtlSizeHeap, moved back from 4432

Added XDK 3936 OOVPAs for DSound.
- CMcpxBuffer_GetStatus
- CDirectSoundBuffer_GetStatus
- IDirectSoundBuffer8_GetStatus
- CMcpxVoiceClient_SetMixBins
- CDirectSoundVoice_SetMixBins
- IDirectSoundStream_SetMixBins
- IDirectSoundBuffer8_SetMixBins
- CMcpxVoiceClient_Set3dMode
- CDirectSoundVoice_SetMode
- IDirectSoundBuffer8_SetMode
- CDirectSoundBuffer_SetVelocity
- IDirectSoundBuffer8_SetVelocity, moved back from 4627
- CDirectSoundBuffer_SetPosition
- IDirectSoundBuffer8_SetPosition, moved back from 4627
2008-09-28 03:58:16 +00:00
Daniel Stien
18bcc2160c Added XDK 3911 OOVPAs for Xapi.
- XGetDevices, moved back from 4034
- XID_fCloseDevice
- XInputClose, moved back from 4361
- XInputGetCapabilities

Added XDK 3925 OOVPAs for D3D8.
- IDirect3DDevice8_CreatePixelShader
- IDirect3DDevice8_SetPixelShader (disabled existing)
- IDirect3DDevice8_GetRenderTarget
- IDirect3DSurface8_LockRect, moved back from 4361

Added XDK 5233 OOVPAs for D3D8.
- IDirect3DResource8_IsBusy, reused from 4361
- IDirect3DTexture8_LockRect, moved back from 5558
- Lock2DSurface, reused from 3925

Removed XG 5233/5558 XGUnswizzleRect OOVPAs. Not intended for HLE, caused stack corruption.

Convert PC D3DFMT_L8 to 0x13 (linear).
2008-09-22 01:08:25 +00:00
Daniel Stien
26861248d2 NtCreateFile will now fallback to parent directory if a regular file is being opened as a directory. This fixes Xapi FindFirstFile, although wildcard handling may need more work. Removed HLE for FindFirstFileA/FindNextFileA.
Temporary HLE for Xapi GetTimeZoneInformation to satisfy _stat(...) while support for EEPROM queries is missing. OOVPAs for XDK 3911 and re-used for 5233.

Fixed weak XDK 5558 D3D IDirect3DDevice8::BlockOnFence OOVPA by adding Xref to D3D::BlockOnTime. Backported to 5233.

Sanitized EmuD3D8 function parameter debug trace formatting.
2008-09-21 00:54:09 +00:00
Daniel Stien
5bed305918 Additional deferred render state updates used by Futurama.
- D3DRS_FOGDENSITY (4)
- D3DRS_RANGEFOGENABLE (5)
- D3DRS_WRAP1 (7)
- D3DRS_DIFFUSEMATERIALSOURCE (19)
- D3DRS_EMISSIVEMATERIALSOURCE (21)
2008-09-13 01:14:56 +00:00
Daniel Stien
da6a1816e8 Use cached Z stencil if new stencil don't contain a surface in IDirect3DDevice8_SetRenderTarget. Used by Futurama when rendering character shadow.
Renamed SetTextureState_BackFillMode to SetRenderState_BackFillMode.

XDK 5233 D3D8 OOVPAs.
- IDirect3DDevice8::SetRenderState_Dxt1NoiseEnable
- IDirect3DDevice8::SetRenderState_BackFillMode, reused from 4432
- IDirect3DDevice8::SetRenderState_StencilCullEnable, reused from 4432
- IDirect3DDevice8::SetRenderState_RopZCmpAlwaysRead, reused from 4432
- IDirect3DDevice8::SetRenderState_RopZRead, reused from 4432
- IDirect3DDevice8::SetRenderState_DoNotCullUncompressed, reused from 4432
2008-09-12 23:33:32 +00:00
Daniel Stien
46410680e8 Activate render window before entering message dispatch loop to avoid deadlock when the message queue is empty.
Set reference count in X_D3DResource::Common field. Titles may check this value to see if a resource is registered. "Special" resources are ignored for now due to the use of the Common field to identify them.

Register D3DFMT_A8 textures. Not supported by all devices, we should check and expand to another format if necessary.

Added XDK 5849 D3D8 OOVPAs.
- IDirect3DDevice8::BeginVisibilityTest, reused from 4627
- IDirect3DDevice8::EndVisibilityTest
- IDirect3DDevice8::GetVisibilityTestResult
- IDirect3DDevice8::GetViewport
- IDirect3DDevice8::CopyRects, reused from 5233

Minor texture coordinate normalization condition fix.
2008-09-09 18:44:52 +00:00
Daniel Stien
86dfc8027c If a vertex shader doesn't contain the generic transformation instructions, assume it writes direct screen coordinates and apply naive hack to normalize oPos. 2008-09-07 03:08:25 +00:00
Daniel Stien
df0153d9d5 Convert D3DSHADEMODE from Xbox to PC.
Improved inline vertex buffer handling.

Support all Xbox primitives in VertexBuffer. Quads and convex polygons are rendered by using triangles, wireframe renderering and flat shading colors will thus not be emulated correctly. Indexed meshes will still fail on patched primitives (quad list and line loop) due to lack of index buffer patching.

New D3D8 5849 OOVPAs.
- IDirect3DDevice8::DrawIndexedVerticesUP
- Reuse IDirect3DResource8::IsBusy from 4361
2008-09-06 23:33:44 +00:00
Daniel Stien
2dcf87aed2 Xapi Input fixes.
- Properly copy XINPUT_POLLING_PARAMETERS in EmuXInputOpen. Would crash in EmuXInputGetState when accessing said structure.
- Send gamepad insertion in first EmuXGetDeviceChanges call only. Would cause permanent "controller connected" message in some games.
2008-08-31 04:16:02 +00:00
Daniel Stien
2c0d3ca73a Normalize texture coordinates in FVF buffers used with linear textures. Linear textures can have non-power-of-two sizes, thus using direct image coordinates for mapping. Inline vertex buffers are patched in-place.
Added IDirect3DDevice8_SetVertexData2f OOVPA for XDK 5849.
2008-08-31 00:16:31 +00:00