Commit Graph

2045 Commits

Author SHA1 Message Date
RadWolfie 3222ada82d Append to Previous Commit 2017-10-18 20:46:57 +01:00
RadWolfie 4d0ba5be88 Reported Duplicate CDirectSoundBuffer_PlayEx OOVPA 2017-10-18 20:46:57 +01:00
RadWolfie 82652b5735 Include Missing DSound APIs
- Add XREF to ignore patch not available to
CDirectSoundBuffer_SetConeOutsideVolume for now. (might not need it.)
- Add API DirectSoundUseLightHRTF
- Add API IDirectSound_GetSpeakerConfig
- Add API IDirectSound_CommitDeferredSettings
- Add API IDirectSound_CommitEffectData
- Switch SetConeOrientation, SetMaxDistance, SetMinDistance,
SetPosition, and SetVelocity to be remain unpatch(? Not tested) from
IDirectSoundStream APIs.
2017-10-18 20:46:57 +01:00
RadWolfie 74a6103222 Append to Previous Commit Fix
Now it should output *UNPATCHED* correctly instead of saying no patch
available.
2017-10-18 20:46:57 +01:00
RadWolfie 22d55c19a1 Replace DISABLED in favor of UNPATCHED
Performing this should help other developers to understand the
difference of being patch and not patched. This has been discussed and
decided to proceed with this rename.

NOTE: It is taken effective for v2 database, v1 database is left intact.
2017-10-18 20:46:57 +01:00
jarupxx 5e58fc82cb Report Known Xapi OOVPA issue list (#744)
* Renamed all XAPI XREF names
* Reregisterd obsolete OOVPA (3911-5849)
2017-10-18 20:46:57 +01:00
jarupxx e4ec165dc0 Fixed REGISTER_OOVPA IXACTSoundBank_Play on HLEDB_v1 2017-10-18 20:46:56 +01:00
RadWolfie f9632a337c Finalize DSound 3911 OOVPA database
- Moved CMcpxAPU_Set3dVelocity to 3911
- Moved CDirectSound_SetVelocity to 3911
- Moved IDirectSound_SetVelocity to 3911
- Moved CMcpxAPU_Set3dRolloffFactor to 3911
- Moved CDirectSound_SetRolloffFactor to 3911
- Moved IDirectSound_SetRolloffFactor to 3911
- Moved CMcpxAPU_SetI3DL2Listener to 3911
- Moved CDirectSound_SetI3DL2Listener to 3911
- Moved IDirectSound_SetI3DL2Listener to 3911
- Add CDirectSound_GetTime to 3911 (100% generic for all revisions)
- Add IDirectSound_GetTime to 3911 (100% generic for all revisions)

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] Nightcaster
- [4134] Jet Set Radio Future
- [4242] Gauntlet Dark Legacy
- [4361] Burnout
- [4637] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:56 +01:00
RadWolfie 9fa8ad70f3 More DSound 3963 OOVPAs lowered to 3911
- Moved CMcpxAPU_SetMixBinHeadroom to 3911
- Moved CDirectSound_SetMixBinHeadroom to 3911
- Moved IDirectSound_SetMixBinHeadroom to 3911
- Moved CMcpxAPU_Set3dParameters to 3911
- Moved CDirectSound_SetAllParameters to 3911
- Moved IDirectSound_SetAllParameters to 3911
- Moved CMcpxAPU_Set3dDistanceFactor to 3911
- Moved CDirectSound_SetDistanceFactor to 3911
- Moved IDirectSound_SetDistanceFactor to 3911
- Moved CDirectSound_SetDopplerFactor to 3911
- Moved IDirectSound_SetDopplerFactor to 3911
- Add CMcpxAPU_Set3dDopplerFactor to 3911
- Removed CMcpxAPU_Set3dDopplerFactor from 3936

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] Nightcaster
- [4134] Jet Set Radio Future
- [4242] Gauntlet Dark Legacy
- [4361] Burnout
- [4637] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:56 +01:00
jarupxx 16ba557e31 Reregisterd XapiInitProcess OOVPA (3911-5849) 2017-10-18 20:46:55 +01:00
jarupxx 4c59d7f8be Separated XAPI OOVPAs and Lower XAPI OOVPAs Support
Moved XInputGetState 4928 to 4831
Moved XInputSetState 4928 to 4831
Moved XID_fCloseDevice 4928 to 4831
Moved timeSetEvent 5849 to 5455

Verified with
NBA Live 2002 (3925)
Tony Hawk's Pro Skater 3 (4039)
ESPN Winter X Games Snowboarding 2002 (4134)
NFL Blitz 2002 (4242)
NCAA Football 03 (4432)
Crazy taxi 3 (4531)
Innocent Tears (4627)
Quantum Redshift (4721)
Galaxy Angel (4831)
Medal Of Honor Frontline (4928)
Shikigami no Shiro Evolution (5028)
MVP Baseball 2003 (5120)
C.A.T. Cyber Attack Team (5233)
Starsky And Hutch (5344)
NCAA Football 2004 (5455)
XIII (5558)
Dance Dance Revolution Ultramix (5659)
Steel Battalion - Line of Contact (5788)
Kingdom Under Fire (5849)
2017-10-18 20:46:55 +01:00
RadWolfie b126c159da Adding 3911 OOPVAs to DSound v2 database
- Moved CDirectSound_GetCaps to 3911
- Moved IDirectSound_GetCaps to 3911
- Moved CDirectSound_EnableHeadphones to 3911
- Add CDirectSound_GetSpeakerConfig to 3911
- Add IDirectSound_GetSpeakerConfig to 3911
- Add CDirectSound_DownloadEffectsImage to 3911
- Add IDirectSound_DownloadEffectsImage to 3911
- Add IDirectSound_GetEffectData to 3911
- Add CDirectSound_GetEffectData to 3911
- Add IDirectSound_SetEffectData to 3911
- Add CDirectSound_SetEffectData to 3911
- Add IDirectSound_CommitEffectData to 3911
- Add CDirectSound_CommitEffectData to 3911
- Add IDirectSound_EnableHeadphones to 3911
- Add IDirectSound_CommitEffectData to 3911
- Add CDirectSound_CommitEffectData to 3911
- Add IDirectSound_EnableHeadphones to 3911

NOTE: Titles will regress for not finding required XREF OOVPA from
generic OOVPAs.
Plus discovered false detections, this commit fix the issue.
Which require to perform research again for 4039 revision titles and
later.

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] revision and later need to perform rework for add/fix XREF
OOVPAs.
2017-10-18 20:46:55 +01:00
RadWolfie 6cc449eb42 3911 DS Stream and Buffer Classes are DONE! 🎉
- Moved CMcpxVoiceClient_Set3dVelocity to 3911
- Moved CDirectSoundVoice_SetVelocity to 3911
- Moved CDirectSoundStream_SetVelocity to 3911
- Moved IDirectSoundStream_SetVelocity to 3911
- Moved CDirectSoundBuffer_SetVelocity to 3911
- Moved IDirectSoundBuffer_SetVelocity to 3911
- Moved CMcpxVoiceClient_SetI3DL2Source to 3911
- Moved CDirectSoundVoice_SetI3DL2Source to 3911
- Moved IDirectSoundBuffer_SetI3DL2Source to 3911
- Moved CDirectSoundStream_SetI3DL2Source to 3911
- Moved CDirectSoundBuffer_Lock to 3911
- Moved IDirectSoundBuffer_Lock to 3911
- Moved CMcpxBuffer_SetCurrentPosition to 3911
- Moved CDirectSoundBuffer_SetCurrentPosition to 3911
- Moved IDirectSoundBuffer_SetCurrentPosition to 3911
- Renamed CDirectSoundBuffer_SetPlayRegion to
CDirectSoundBuffer_SetLoopRegion
- Renamed IDirectSoundBuffer_SetPlayRegion to
IDirectSoundBuffer_SetLoopRegion
- Moved CDirectSoundBuffer_SetLoopRegion to 3911
- Moved IDirectSoundBuffer_SetLoopRegion to 3911
- Add CDirectSoundStream_SetOutputBuffer to 3911
- Add DS_CRefCount_AddRef to 3911
- Add CDirectSoundStream_AddRef to 3911
- Add DS_CRefCount_Release to 3911
- Add CDirectSoundStream_Release to 3911

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] Nightcaster
- [4134] Jet Set Radio Future
- [4242] Gauntlet Dark Legacy
- [4361] Burnout
- [4637] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:54 +01:00
RadWolfie f131b50eb1 Bunch DSound OOVPAs Lowered
- Moved CMcpxVoiceClient_Set3dMode to 3911
- Moved CDirectSoundVoice_SetMode to 3911
- Moved IDirectSoundBuffer_SetMode to 3911
- Moved CDirectSoundStream_SetMode to 3911
- Moved CMcpxVoiceClient_Set3dPosition to 3911
- Moved CDirectSoundVoice_SetPosition to 3911
- Moved CDirectSoundStream_SetPosition to 3911
- Moved IDirectSoundStream_SetPosition to 3911
- Moved CDirectSoundBuffer_SetPosition to 3911
- Moved IDirectSoundBuffer_SetPosition to 3911
- Moved CMcpxAPU_Set3dPosition to 3911
- Moved CDirectSound_SetPosition to 3911
- Moved IDirectSound_SetPosition to 3911
- Add IDirectSoundBuffer_SetMode to 4039

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] Nightcaster
- [4134] Jet Set Radio Future
- [4242] Gauntlet Dark Legacy
- [4361] Burnout
- [4637] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:54 +01:00
RadWolfie 057e88bf78 Bunch of DSound OOVPAs Lowered
- Moved CMcpxVoiceClient_Commit3dSettings to 3911
- Moved CMcpxVoiceClient_Set3dParameters to 3911
- Moved CDirectSoundVoice_SetAllParameters to 3911
- Moved CDirectSoundStream_SetAllParameters to 3911
- Moved CDirectSoundVoice_SetConeAngles to 3911
- Moved CDirectSoundStream_SetConeAngles to 3911
- Moved IDirectSoundBuffer_SetConeAngles to 3911
- Moved CMcpxVoiceClient_Set3dConeOrientation to 3911
- Moved CDirectSoundVoice_SetConeOrientation to 3911
- Moved CDirectSoundStream_SetConeOrientation to 3911
- Moved IDirectSoundStream_SetConeOrientation to 3911
- Moved CDirectSoundBuffer_SetConeOrientation to 3911
- Moved IDirectSoundBuffer_SetConeOrientation to 3911
- Add IDirectSoundBuffer_SetAllParameters to 3911

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] Nightcaster
- [4134] Jet Set Radio Future
- [4242] Gauntlet Dark Legacy
- [4361] Burnout
- [4637] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:54 +01:00
jarupxx 9cbec6a073 Lower XAPI OOVPAs Support
reference to #732 fix XDK 4242, 5120, 5455.
Source:
NFL Blitz 2002 (4242)
Super Bubble Pop (5120)
NCAA Football 2004 (5455)
2017-10-18 20:46:53 +01:00
RadWolfie ceb06a94b1 Lower Few XAPI OOVPAs Support
reference to #732 fix [4242] Gauntlet: Dark Legacy title to run
properly.
2017-10-18 20:46:53 +01:00
RadWolfie 006c319aeb Bunch of Moves and Couple Fixes
- Moved CMcpxVoiceClient_Set3dMaxDistance to 3911
- Moved CDirectSoundVoice_SetMaxDistance to 3911
- Moved CDirectSoundBuffer_SetMaxDistance to 3911
- Moved IDirectSoundBuffer_SetMaxDistance to 3911
- Moved CDirectSoundStream_SetMaxDistance to 3911
- Moved IDirectSoundStream_SetMaxDistance to 3911
- Moved CMcpxVoiceClient_Set3dMinDistance to 3911
- Moved CDirectSoundVoice_SetMinDistance to 3911
- Moved CDirectSoundBuffer_SetMinDistance to 3911
- Moved IDirectSoundBuffer_SetMinDistance to 3911
- Moved CDirectSoundStream_SetMinDistance to 3911
- Moved IDirectSoundStream_SetMinDistance to 3911
- Moved CMcpxVoiceClient_Set3dConeOutsideVolume to 3911
- Moved CDirectSoundVoice_SetConeOutsideVolume to 3911
- Moved CDirectSoundStream_SetConeOutsideVolume to 3911
- Moved IDirectSoundBuffer_SetConeOutsideVolume 3936 to 4039
- Add CDirectSoundBuffer_SetConeOutsideVolume to 3911
- Add IDirectSoundBuffer_SetConeOutsideVolume to 3911
- Removed CDirectSoundBuffer_SetConeOutsideVolume from 3936

IDirectSoundBuffer_SetConeOutsideVolume 3936 is still using
CDirectSoundVoice_SetConeOutsideVolume caller

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] Nightcaster
- [4134] Jet Set Radio Future
- [4242] Gauntlet Dark Legacy
- [4361] Burnout
- [4637] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:53 +01:00
RadWolfie 2bac80c9a4 Configured V2 Group OOVPA Method
The following changes allow us to manage patch or disable within
individual library with group of OOVPA registrations in each function.

If we want to enable specific function, we can do so in two ways.
- HLE cache file, by remove "_DISABLED" at the end of the function's
name, or
- xxxxx.OOVPA.inl file, by change DISABLED declaration to PATCH.

It is only effective for PATCH and DISABLE declaration purposes. XREF
does not need any change.
2017-10-18 20:46:52 +01:00
RadWolfie 389491ee14 Strengthen XAutoPowerDownResetTimer's OOVPA 2017-10-18 20:46:52 +01:00
jarupxx eba685840a Introduce XAPI database v2
Source:
Azurik - Rise of Perathia (3911)
NightCaster (4039)
Double-S.T.E.A.L (4134)
Flight Academy (4361)
Turok - Evolution (4627)
Quantum Redshift (4721)
NBA 2K3 (4831)
Shikigami no Shiro Evolution (5028)
Cyber Attack Team (5233)
Starsky And Hutch 5344 (5344)
XIII (5558)
Steel Battalion - Line of Contact (5788)
Forza Motorsport (5849)
2017-10-18 20:46:52 +01:00
jarupxx d938af25af Separated 5120 OOVPAs 2017-10-18 20:46:51 +01:00
jarupxx f67f2d3496 OOVPA lowered to 5120
Source: Forza Motorsport (5849)
2017-10-18 20:46:51 +01:00
RadWolfie 0c6ae7fc0f Few Moved Plus Adding More to 3911
- Moved CDirectSoundVoice_SetHeadroom to 3911
- Moved IDirectSoundBuffer_SetHeadroom to 3911
- Moved CDirectSoundStream_Pause to 3911
- Add CDirectSoundStream_GetStatus to 3911
- Add CDirectSoundStream_Process to 3911
- Add CMcpxStream_Flush to 3911
- Add CDirectSoundStream_Flush to 3911
- Add CMcpxStream_Discontinuity to 3911
- Add CDirectSoundStream_Discontinuity to 3911
- Add CDirectSoundStream_GetInfo to 3911

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
2017-10-18 20:46:51 +01:00
RadWolfie 8ee718d669 More OOVPAs lowered to 3911.
- Moved DirectSoundCreate to 3911
- Moved CMcpxAPU_ServiceDeferredCommandsLow to 3911
- Moved CDirectSound_DoWork to 3911
- Moved DirectSoundDoWork to 3911
- Moved CDirectSoundVoice_SetFrequency to 3911
- Moved IDirectSoundBuffer_SetFrequency to 3911
- Moved CMcpxVoiceClient_SetMixBins to 3911
- Moved CDirectSoundVoice_SetMixBins to 3911
- Moved IDirectSoundBuffer_SetMixBins to 3911
- Moved CDirectSoundBuffer_SetBufferData to 3911
- Moved IDirectSoundBuffer_SetBufferData to 3911
- Moved CDirectSoundBuffer_SetNotificationPositions to 3911
- Moved IDirectSoundBuffer_SetNotificationPositions to 3911
- Add DirectSoundCreateBuffer to 3911
- Add DirectSoundCreateStream to 3911
- Add CDirectSoundVoice_SetOutputBuffer to 3911
- Add CDirectSoundBuffer_SetOutputBuffer to 3911

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage (DSound portion)
2017-10-18 20:46:51 +01:00
RadWolfie 0b97e4c783 Fix XRef Issues with PATCH flag
Instead of looking for XREF flag. Check if there is a saved index then
perform the task. This make the job so much easier to do for knowing
which is XREF, PATCH, or both.
2017-10-18 20:46:50 +01:00
RadWolfie c858f4ab2d Fix CMcpxBuffer_GetCurrentPosition OOVPA
Changed OOVPA to support little bit more generic between 3911 and 3936.
This change fixed Simpsons - Road Rage title.
2017-10-18 20:46:50 +01:00
RadWolfie 51d22d4bf7 Tweak _SetPitch OOVPAs
- Moved CMcpxVoiceClient_SetPitch to 3911
- Moved CDirectSoundVoice_SetPitch to 3911
- Moved IDirectSoundBuffer_SetPitch to 3911
- Add IDirectSoundBuffer_SetPitch to 4039, XREF is different
- Make XREF more readable for _SetPitch functions.

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] Nightcaster
- [4134] Jet Set Radio Future
- [4242] Gauntlet Dark Legacy
- [4361] Burnout
- [4637] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:50 +01:00
RadWolfie 625cad3339 More Moving From 3936 OOVPAs to 3911.
- Moved CSensaura3d_GetFullHRTFFilterPair to 3911
- Moved DirectSoundUseFullHRTF to 3911
- Moved DirectSoundGetSampleTime to 3911
- Moved XAudioCalculatePitch to 3911
- Moved CDirectSound_CreateSoundBuffer to 3911
- Moved CDirectSound_CreateSoundStream to 3911
- Moved IDirectSound_CreateSoundStream to 3911
- Add CSensaura3d_GetLiteHRTFFilterPair to 3911
- Add DirectSoundUseLightHRTF to 3911
- Add TODO of known DSound OOVPA issue list for record purposes.
- Remove duplicates _SetPitch from 5233 database.

Tested with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
2017-10-18 20:46:50 +01:00
RadWolfie 5ee13a8f87 Append Previous Commit 2017-10-18 20:46:49 +01:00
RadWolfie 33aab3b2af Lowering Several DSound OOVPAs Support
- Moved IDirectSound_Release to 3911
- Moved IDirectSound_AddRef to 3911
- Moved IDirectSound_SetOrientation to 3911
- Moved CDirectSound_SetOrientation to 3911
- Moved IDirectSound_CommitDeferredSettings to 3911
- Moved CDirectSound_CommitDeferredSettings to 3911
- Moved CMcpxAPU_Commit3dSettings to 3911

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] Nightcaster
- [4134] Jet Set Radio Future
- [4242] Gauntlet Dark Legacy
- [4361] Burnout
- [4637] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:49 +01:00
jarupxx f012f3dffa Enable XACTENG_OOVPAV2 2017-10-18 20:46:48 +01:00
jarupxx ceb6905b66 Recomments 2017-10-18 20:46:48 +01:00
jarupxx 1a74094ef7 Introduce XactEng database v2
Source:
Lord of the Rings - The Two Towers (4928)
Super Bubble Pop (5120)
Cyber Attack Team (5233)
Syberia (5344)
Top Spin (5558)
Steel Battalion - Line of Contact (5788)
Souece: Forza Motorsport (5849)
2017-10-18 20:46:48 +01:00
RadWolfie 8a21a6742c Hot Fix Patch
- Fixed CDirectSoundStream_SetEG
- Fixed CDirectSoundStream_SetFilter
- Fixed CDirectSoundStream_SetLFO

This fixed #720 pull request for missing harden OOVPA of 4039 and 4134
reivisions signature.
2017-10-18 20:46:48 +01:00
RadWolfie 763267a8ba Verified which Lib_XACTENG is linked to. 2017-10-18 20:46:47 +01:00
RadWolfie f1b339012e Renaming IDSB and CDSS SetMixBinVolumes(2)
- Renamed CDirectSoundStream_SetMixBinVolumes(2)
- Renamed IDirectSoundBuffer_SetMixBinVolumes(2)
- Moved CMcpxVoiceClient_SetVolume to 3911
- Moved CDirectSoundVoice_SetMixBinVolumes to 3911
- Moved CDirectSoundStream_SetMixBinVolumes_12 to 3911
- Moved IDirectSoundBuffer_SetMixBinVolumes_12 to 3911
- Add XREF entry to CDirectSoundVoice_SetVolume 3911
- Add XREF entry to CDirectSoundVoice_SetMixBinVolumes 4039

Verified with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] 007: Agent Under Fire
- [4134] Jet Set Radio Future
- [4637] Turok Evolution
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:47 +01:00
jarupxx e8ab6bc383 Added DSound 4039 HLE Database (#720)
* Added DSound 4039 HLE Database

Following PATCH are available
 - IDirectSoundBuffer_GetCurrentPosition
 - IDirectSoundBuffer_Lock
 - IDirectSoundBuffer_SetPlayRegion
 - IDirectSoundBuffer_SetCurrentPosition
 - IDirectSoundBuffer_SetFilter
 - IDirectSoundBuffer_SetMixBins
 - IDirectSoundBuffer_SetMixBinVolumes2
 - IDirectSoundBuffer_StopEx
 - IDirectSoundBuffer_SetLFO
 - IDirectSoundBuffer_SetEG
 - IDirectSoundBuffer_SetOutputBuffer
 - IDirectSoundBuffer_SetConeOutsideVolume
 - IDirectSoundBuffer_SetMaxDistance
 - IDirectSoundBuffer_SetMinDistance
 - IDirectSoundBuffer_SetMode
 - IDirectSoundBuffer_SetPosition
 - IDirectSoundBuffer_SetVelocity
 - IDirectSoundBuffer_SetConeOrientation
2017-10-18 20:46:46 +01:00
RadWolfie 016290fb75 More Moving and Additions
- Moved DirectSoundEnterCriticalSection to 3911
- Moved IDirectSoundBuffer_AddRef to 3911
- Moved IDirectSoundBuffer_Release to 3911
- Moved IDirectSoundBuffer_Unlock to 3911
- Moved IDirectSound_SetCooperativeLevel to 3911
- Moved IDirectSoundBuffer_StopEx to 3911
- Moved IDirectSoundBuffer_PlayEx to 3911
- Add CMcpxBuffer_Stop to 3911
- Add CDirectSoundBuffer_StopEx to 3911
- Add CDirectSoundBuffer_PlayEx to 3911

Generic OOVPA functions are...
- DirectSoundEnterCriticalSection
- IDirectSoundBuffer_AddRef
- IDirectSoundBuffer_Release
- IDirectSoundBuffer_Unlock
- IDirectSound_SetCooperativeLevel

Tested with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] 007: Agent Under Fire
- [4134] Jet Set Radio Future
- [5558] Dino Crisis 3
2017-10-18 20:46:46 +01:00
RadWolfie 468a118796 DSBuffer_GetStatus and DSBuffer_GetCurrentPosition
- Moved CMcpxBuffer_GetCurrentPosition to 3911
- Moved CDirectSoundBuffer_GetCurrentPosition to 3911
- Moved IDirectSoundBuffer_GetCurrentPosition to 3911
- Moved CMcpxBuffer_GetStatus to 3911
- Moved CDirectSoundBuffer_GetStatus to 3911
- Moved IDirectSoundBuffer_GetStatus to 3911
- Add CMcpxBuffer_GetCurrentPosition to 4039
- Add CDirectSoundBuffer_GetCurrentPosition to 4039
- Add CMcpxBuffer_GetStatus to 4039
- Add CDirectSoundBuffer_GetStatus to 4039
- Removed duplicate CMcpxBuffer_GetCurrentPosition OOVPAs.

IDirectSoundBuffer_GetCurrentPosition and IDirectSoundBuffer_GetStatus
are generic functions.

Tested with
- [3925] Cel Damage
- [3936] Simpsons - Road Rage
- [4039] 007: Agent Under Fire
- [4134] Jet Set Radio Future
- [5558] Dino Crisis 3
2017-10-18 20:46:45 +01:00
jarupxx 78af3c42db Fixed CDirectSoundBuffer_SetConeOrientation 3936 OOVPA 2017-10-18 20:46:45 +01:00
RadWolfie 93c8a40ae2 Oops, removing bad code.
Um, keep moving. Nothing to see here.
2017-10-18 20:46:45 +01:00
jarupxx eb7554070a Renamed to friendly OOVPA name
+ Sorting
+ Removes IDirectSound8_SetAllParameters.
IDirectSound8_ prefix is obsolete.
Also IDirectSound_SetAllParameters is available.
2017-10-18 20:46:44 +01:00
RadWolfie 8abc01c3be Fix Versions in DSound 5233 Database
Since there was changes in master branch, it would not compile due to
lowering versions support in HLE database v2.
2017-10-18 20:46:44 +01:00
RadWolfie c34a5e9d60 Improve Scan Support
Now it has multi sections array support up to 2 (can be change by
increasing LINKSCANSEC_MAX

In fact, we can finally support other than DSound in v2 database now!
🎉
2017-10-18 20:46:44 +01:00
RadWolfie d145edd1be Introduce DSound 3911 database. 2017-10-18 20:46:44 +01:00
RadWolfie e7e418f598 Generic DirectSoundBuffer_Stop OOVPAs
- CMcpxBuffer_Stop has not changed as of 4242 and newer.
- CDirectSoundBuffer_Stop has not changed as of 4134 and newer.
- IDirectSoundBuffer_Stop has not changed since 3911.
- IDirectSoundBuffer_SetLoopRegion does match against 3911.

TODO: Need to re-locate versions in correct version file.

Verified with:
- [3936] Simpsons - Road Rage
- [4039] 007: Agent Under Fire
- [4134] Jet Set Radio Future
- [4242] Smashing Drive & Gauntlet Dark Legacy
- [4361] Burnout
- [4627] Turok Evolution
- [5233] Futurama
- [5558] Dino Crisis 3
- [5849] Lego Star Wars
2017-10-18 20:46:43 +01:00
jarupxx fbb7a74de2 Removes // (Offset,Value)-Pair # text 2017-10-18 20:46:43 +01:00
jarupxx 55b55aa509 Fixed up 2017-10-18 20:46:42 +01:00
jarupxx 7779319784 Added comments difference from 4134 2017-10-18 20:46:42 +01:00
jarupxx 8bc426be7b Added SetPitch (4134-5849)
The following functions support 4134 to 5849
 - CDirectSoundVoice_SetPitch
 - CDirectSoundBuffer_SetPitch
 - IDirectSoundBuffer_SetPitch
 - CDirectSoundStream_SetPitch
2017-10-18 20:46:42 +01:00
jarupxx cdcf5f2a06 Fixed CDirectSoundBuffer_SetVolume 4134 2017-10-18 20:46:41 +01:00
jarupxx df9a1ab6ac Oops. CDirectSoundVoice_SetPitch come back 2017-10-18 20:46:41 +01:00
jarupxx 07c96f0004 Added DSound 4039 HLE Database
Following PATCH are available
 - CDirectSoundStream_SetVolume
 - CDirectSound_CommitDeferredSettings
 - DirectSoundDoWork
 - IDirectSoundBuffer_SetBufferData
 - IDirectSoundBuffer_SetFrequency
 - IDirectSoundBuffer_SetHeadroom
 - IDirectSoundBuffer_SetLoopRegion
 - IDirectSoundBuffer_SetPitch
 - IDirectSoundBuffer_SetVolume
 - IDirectSoundBuffer_Stop
 - IDirectSound_SetDistanceFactor
 - IDirectSound_SetDopplerFactor
 - IDirectSound_SetRolloffFactor
2017-10-18 20:46:41 +01:00
RadWolfie f84327814d Introduce DSound 4039 HLE Database
- Added DirectSoundCreate
- Added DirectSoundCreateBuffer
- Added CDirectSound_CreateSoundBuffer
- Noted CDirectSound_CreateSoundBuffer OOVPA version 3936 has false
detection for 4039.
2017-10-18 20:46:40 +01:00
RadWolfie 22ca5b38d4 Implement Workaround Fix for missing DSound Library
The workaround will fix DSound 4039 build. It will also fix any other
missing DSound library section as well. In HLEDB v2, the scan method
will check for DSOUND header section. If it doesn't have it, then DSound
DB will be skip.
2017-10-18 20:46:40 +01:00
RadWolfie 5f38195dfd Removed SetFormat
SetFormat method function can be only used on primary buffer class base on DirectSound's documentation.
2017-10-18 20:46:39 +01:00
RadWolfie ac8a827d9c Carry Original Values Over 2017-10-18 20:46:39 +01:00
RadWolfie 569dc59010 Fixed Gauntlet Dark Legacy title
Moving SetFormat OOVPAs to 4242 version.
2017-10-18 20:46:39 +01:00
RadWolfie 4ed100ec83 Fixed Smashing Drive title
Since v1 is overriding build version, lets lower DirectSoundCreateBuffer
OOVPA to last known detected version.
2017-10-18 20:46:38 +01:00
RadWolfie 10c686c65d Append to Previous Commit 2017-10-18 20:46:38 +01:00
RadWolfie fd28748b0f Improve Detection
- Add missing CDirectSound_GetCaps detection for 4361 xdk titles and
later.
- Changed CDirectSound_SynchPlayback patch to xref for 5558.
2017-10-18 20:46:38 +01:00
RadWolfie 0891a74ac2 Couple fixes to comments and a TODO task.
- Removing 8 from DirectSound8's comments for DSound.1.0.5233.inl
- Added a TODO message for 2 different OOVPA signature for same
functionality.
2017-10-18 20:46:37 +01:00
RadWolfie 3a18fe1cb1 Removing Duplicate Patch Function 2017-10-18 20:46:37 +01:00
RadWolfie 022b61b97d Adding IDirectSoundBuffer_Unlock in HLEDB v1 Section 2017-10-18 20:46:37 +01:00
RadWolfie 443e0987ed Implement IDirectSoundBuffer Unlock OOVPA
Verified Unlock does exist in xbe file and is in used. Even though xbox
doesn't handle it directly. It will allow fix audio issue especially
Turok Evolution's XADPCM backgrounc music. Yet is not fully fixed...

On side note... Xbox dashboard is calling Unlock function?!?!
2017-10-18 20:46:37 +01:00
jarupxx b68e9bb90b Move a comment in Rollback support signature section 2017-10-18 20:46:37 +01:00
jarupxx 2a5009d5a2 Fixed XREF name
Plus fixed IDirectSoundBuffer_SetHeadroom 4134 OOVPA
2017-10-18 20:46:36 +01:00
jarupxx 9f33a1f4b7 Improved DSound OOVPA
Also
- Merged alias DSound OOVPA
- Renamed IDirectSoundBuffer_StopEx v5233 to IDirectSoundStream_FlushEx
2017-10-18 20:46:36 +01:00
jarupxx 16639a0500 Improved similar DSound OOVPA 2017-10-18 20:46:36 +01:00
RadWolfie e921d48299 Fix False Positive for XRefs
Since EmuLocateFunction force to add into XRefDataBase array table. It
will only add inside EmuRegisterSymbol function while
EmuLocateFunctionV2 does not.

This method changed numberous false positive to a lot fewer false
positive depending on OOVPA using rollback sig or not.
2017-10-18 20:46:36 +01:00
RadWolfie 525b1ea7af Add Missing OOVPA Patch
Also include rollback alias.
2017-10-18 20:46:35 +01:00
RadWolfie 4107f52e92 Typo Correction
Plus add rollback message header.
2017-10-18 20:46:35 +01:00
RadWolfie 05392878f4 2 New DSound OOVPA v3936
Add 2 New OOVPA 3936 for...
- CDirectSoundBuffer_SetConeOrientation
- CDirectSoundBuffer_SetConeOutsideVolume
Moved 2 4134 to 3936 compatible
- IDirectSoundBuffer_SetConeOrientation
- IDirectSoundBuffer_SetConeOutsideVolume

Tested against Blood Wake and Simpson - Road Rage titles. However Halo
Combat Evolved do return false positive for 2 new signatures (I think).
2017-10-18 20:46:35 +01:00
RadWolfie ee4cc619f8 Improve and Detect Duplicate
For on-going verification to verify any signatures are duplicate or not.
Works as intended base on several titles outputing duplicate messages.
2017-10-18 20:46:35 +01:00
RadWolfie b8e32f2ede Whoops
Forgot to add this addition to able compile HLEDB v2 build.
2017-10-18 20:46:35 +01:00
RadWolfie 625ebe9c78 Append to Previous Commit 2017-10-18 20:46:34 +01:00
RadWolfie 16a3a99baa First Draft of DSound DB Merge
Not tested with all titles, some may will regress anyway.

Plus removed extra "extern"s since they are not necessary in .cpp file.
2017-10-18 20:46:34 +01:00
RadWolfie f780398df3 PatrickvL's HLEDB v2 structure 2017-10-18 20:46:34 +01:00
RadWolfie 9e18bee934 DSound HLEDB Cleanup
Cleaning cluster aliases, re-naming to correct function names, and found
certain signature do match lower XDK version.
2017-10-18 20:46:34 +01:00
Luke Usher 04e14338d0 Abort with an error if any preload section fails to load 2017-10-18 16:41:33 +01:00
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
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
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
ergo720 5abdf9ca01 Alternative implementation to fix issue #730 2017-10-08 02:03:55 +02: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 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 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
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
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
Luke Usher 1cd9cafb78 EmuX86: Implement SUB opcode 2017-09-19 13:30:07 +02:00
Luke Usher 5f60dddd8f Allow CxbxPopupMessage to be called with Non-const strings 2017-09-19 13:30:07 +02:00
Luke Usher 7283193101 Allow CxbxPopupMessage to be called with non-const strings 2017-09-19 13:30:07 +02:00
Luke Usher 1e677f30c1 Use a higher precision clock for more accurate VBlank timing 2017-09-19 13:30:07 +02:00
Luke Usher dea313b234 More NV2A Work 2017-09-19 13:30:07 +02:00
Luke Usher a3c6c17c24 Line ending consistency 2017-09-19 13:30:07 +02:00
Luke Usher d573332431 More PGRAPH 2017-09-19 13:30:07 +02:00
Luke Usher c9cc6eced0 More NV2A porting from XQEMU
Current Status:
Official XDK titles deadlock while calling BlockOnTime.
NXDK titles are generating render commands and appear to be working, although we do not actually implement pgraph yet, so we get a blank screen.
2017-09-19 13:30:07 +02:00
Luke Usher abdaf89602 Move interrupt processing thread to CxbxKrnl rather than specific to EmuNV2A 2017-09-19 13:30:07 +02:00
Luke Usher 9fccb952b2 EmuNV2A: Fix a crash caused by a double lock. 2017-09-19 13:30:07 +02:00
Luke Usher ce1ecf1371 More NV2A work 2017-09-19 13:30:07 +02:00
Luke Usher 4465f2a33a More porting from XQEMU + Fixed a major Cxbx-Unique NV2A BUG
DEVICE_READ/WRITE_32_REG:
Registers were being written to the completely wrong addresses!
2017-09-19 13:30:07 +02:00
Luke Usher 10f783470c Remove TEST dialog: Not required 2017-09-19 13:30:07 +02:00
Luke Usher a1048d0042 Working towards making Interrupt support more generic/less NV2A specific 2017-09-19 13:30:07 +02:00
Luke Usher 147b293c8c Oops: Interrupt Service Routine was being called with the wrong calling convention. 2017-09-19 13:30:07 +02:00
Luke Usher e36a607009 NV2A Interrupts now fire in an Xbox thread!
The interrupt service routine runs, sets up the DPC call, but then the global kernel DPC handler crashes when accessing the KPCR.
This DPC code is marked as experimental, so it needs work.
2017-09-19 13:30:07 +02:00
Luke Usher 6814e2afeb Make sure HLE Vblank doesn't get triggered when LLE is enabled
Make GetNextVBlankTime available to EmuNV2A
2017-09-19 13:30:07 +02:00
Luke Usher 03ce1333a4 More porting from XQEMU.
LLE execution now gets stuck on D3D_BlockOnTime.

Could be lack of interrupts.
2017-09-19 13:30:07 +02:00
Luke Usher fb74bb8e9c Disable CreateDevice/KickPushBuffer patches
Allows NV2A LLE to take over this part of bootup.

NOTE: This needs testing extensively before merging is possible.
2017-09-19 13:30:07 +02:00
Luke Usher 338b627b2b Porting NV2A From QEMU
No PGRAPH emulation yet, but this is enough to get past Direct3D_CreateDevice init.
2017-09-19 13:30:07 +02:00
PatrickvL 7cbdd7b430 Allow merging this code by NOT switching over to new pixel shader code yet (it requires more work before this can be enabled). 2017-09-19 09:33:32 +02:00
PatrickvL 09872bf16d First attempt to use Dxbx pixel shader code. Will probably crash. It'd better to base this on Luke's work to get D3D_CreateDevice running unpatched. That way, many patches (including PixelShader related ones) can be disabled, allowing much easier emulation. 2017-09-19 09:33:31 +02:00
PatrickvL 6d131d5fc0 Finished translation of functional part of Dxbx Pixel Shader conversion code.
(Albeit PSH_XBOX_SHADER::DecodedToString is still incomplete).
2017-09-19 09:33:31 +02:00
PatrickvL 2149e4a4a5 Nearly finished back-porting Dxbx pixel shader conversion code.
With this change, Cxbx-Reloaded is linking again.
Two functions need to be completed (PSH_XBOX_SHADER::DecodedToString and ConvertConstantsToNative), after which testing can commence!
2017-09-19 09:33:31 +02:00
PatrickvL 19b7a5da33 Corrected all other pixel-shader comments which got damaged by a global find&replace 2017-09-19 09:33:31 +02:00
PatrickvL 92f4581d3c Fix global find&replace errors 2017-09-19 09:33:31 +02:00
PatrickvL 5cbf7b61fd Another batch of translation (about 40% to go) 2017-09-19 09:33:30 +02:00
PatrickvL 901d16785e Half-way translating pixel shader conversion code from Dxbx (Delphi) to Cxbx-Reloaded (C++) 2017-09-19 09:33:30 +02:00
PatrickvL a325f6aa87 Back porting of more Dxbx PixelShader conversion types.
Also moved most of the types from PixelShader.h to PixelShader.cpp
2017-09-19 09:33:30 +02:00
PatrickvL 1f966bc7eb More back porting of Dxbx pixel-shader related type definitions and comments 2017-09-19 09:33:30 +02:00
PatrickvL 8ff5c497e7 Started back-porting Dxbx pixel shaders 2017-09-19 09:33:30 +02:00
PatrickvL afe83b60d2 Fixed XPR0 logo assumptions, allowing Amped logo to be read correctly 2017-09-13 16:49:32 +01:00
PatrickvL 144545c2fe Also load logo bitmaps from DDS resources. 2017-09-13 15:26:54 +01:00
PatrickvL ace5132f33 Removed g_pSupportsP8 in favor of g_pSupportsTextureFormat[X_D3DFMT_P8]
Also renamed g_bSupportsYUY2 into g_bSupportsYUY2Overlay
2017-09-13 15:26:54 +01:00
PatrickvL 1ac4a87f21 Compare supported textures formats with FourCC types
Also, index supported textures with Xbox D3D format, as host formats would require a huge array.
2017-09-13 15:26:54 +01:00
PatrickvL fd861043ac Dump FourCC codes 2017-09-13 15:26:54 +01:00
PatrickvL f197b1308f Build up a table of CheckDeviceFormat results 2017-09-13 15:26:54 +01:00
PatrickvL c2d21642d3 Cleanup of Certificate usage 2017-09-13 15:26:54 +01:00
PatrickvL f3b6d70621 Added P8 to ARGB conversion (TODO : pass along TexturePalette)
Also rename dst_rgb > dst_argb
2017-09-11 17:54:31 +02:00
PatrickvL 9a46490fe9 Added DXT5 to ARGB conversion
Also cleanup in DXT1 and DXT3 to ARGB conversion
2017-09-11 17:54:31 +02:00
PatrickvL 0347c9f1e0 Fix incorrect optimization 2017-09-11 17:54:31 +02:00
PatrickvL 128f27c8a3 ConvertD3DTextureToARGB cleanup 2017-09-11 17:54:31 +02:00
PatrickvL 4cdfb50f2e Added DXT3 to ARGB conversion
Also optimized DXT1 to ARGB conversion
2017-09-11 17:54:31 +02:00
PatrickvL 2261039e18 Cherry-picked new color conversion code
Logo's are read with new code
Kept old code in use for textures
2017-09-11 17:54:31 +02:00
Luke Usher 815cc399a1 Cleanup after previous commit 2017-09-08 10:04:10 -05:00
Luke Usher 835ee8d017 Fix remaining issues with HalReturnToFirmware
This allows XLaunchNewImage to be completely unpatched
This has been tested and working with various titles:

update.xbe no longer crashes, but instead correctly relaunches the
games main xbe

Dashupdate.xbe now correctly reboots to dashboard
2017-09-08 10:04:10 -05:00
Luke Usher e9873dd24c Fix an issue where EEPROM.BIN is generated with an invalid AV region. 2017-09-08 10:04:10 -05:00
PatrickvL 1a7eabec5a Xbe title fallback 2017-09-08 15:54:52 +01:00
PatrickvL e62a54bf6a Threading : Use InitXboxThread for CxbxKrnlInterruptThread too 2017-09-05 18:26:44 -05:00
PatrickvL f955721cbb Dump certificate information (title, region)
also dump library versions and remove useless ThreadID logging in
EmuMain messages
2017-09-05 18:25:05 -05:00
PatrickvL 1217ba36fe Made pCertificate a global variable 2017-09-05 18:25:05 -05:00
PatrickvL 0c4d516f23 Make F6 stop emulation for real
by detecting F6 presses in EmuMsgProc too.
Also small cleanup on my previous UI work.
2017-09-05 09:08:57 +01:00
PatrickvL 9ff03f2259 UI improvements
Fixed drag-and-drop
F5 now loads the most recently used Xbe if none is loaded yet
Extracted OpenMRU() into a separate function
Simplified OpenXbe()
Compare m_Xbe to nullptr instead of 0
Less usage of m_hwndChild
2017-09-04 19:59:08 +01:00
jarupxx 5e45213bfe Removes // (Offset,Value)-Pair # text 2017-09-04 13:42:14 +02:00
Luke Usher bbb497e2a4 DSOUND 5233 additions: This prevents a crash in XOnline Dash 2017-09-03 20:45:58 +01:00
Luke Usher ddc2e073be Return no connection on PhyGetLinkStatus.
This prevents network titles from hanging indefinitely when probing for a connection.
This function will be replaced with a real implementation later.
2017-09-03 20:45:58 +01:00
Luke Usher c325d454ba Created HLEDatabase for XactEng 5849 2017-09-03 20:45:04 +01:00
Luca D'Amico 393bd48018 Fix for issue #674 (Show loaded XBE logo in user interface) (#708)
* Some progress regarding issue #674

* More progress regarding issue #674

* More progress regarding issue #674

* Renamed ExportGameLogoBitmap and applied proposed fixes (thx PatrickvL)

* More and more progress regarding issue #674 (need review)

* Applied proposed fixes to Xbe.cpp and Xbe.h

* Many fixes regarding issue #674 (need review)

* Working ReadS3TCFormatIntoBitmap!

* Game logo is now rendered correctly! (need review and cleanup)

* fix and cleanup (issue  #674)
2017-09-02 22:34:53 +02:00
Luke Usher b4c45cfccb Disable XOnline patches and partially implement NVNet emulation. (#703)
Network connection does not work yet but it satisfies titles enough to stop them crashing.
Tetris Worlds gets to (very broken) gameplay with this
All titles that use Xbox Live, or even System Link are likely to see some improvements.
2017-09-01 12:25:51 +01:00
PatrickvL 7bd59bb5b3 Threading fixes (#696)
* Turned g_bEmuException into a thread_local variable (this fixes issue #135)

* Added DirectSoundUseFullHRTF to XTL namespace

This is a requirement for functions to be patched!
(Spotted this by chance while looking at the exports of our Cxbx.exe
using CFF Explorer VIII)

* README updates

* Fixed opaque textures by updating D3DTSS_COLOROP default to D3DTOP_SELECTARG1 (instead of D3DTOP_DISABLE)

* EmuGenerateFS : Still initialize when TLS data copy isn't needed

* Introduced InitXboxThread for consistent Xbox thread initialization

* Rename EmuInitFS into PatchFSOpcodes

* Threading fixes

Keep EmuUpdateTickCount on Xbox core, EmuThreadDpcHandler requires Xbox
thread setup too, removed commented PCSTProxy thread creation.

* Renamed PatchFSOpcodes back to EmuInitFS by Luke's request

* Make EmuUpdateTickCount avoid Xbox1 core for lowest possible latency

Also explained why EmuThreadDpcHandler runs on the Xbox core

* Restore D3DTSS_COLOROP from D3DTOP_SELECTARG1 back to D3DTOP_MODULATE
2017-09-01 12:19:47 +01:00
Luke Usher ed2edd3373 Disable some XApi patches that are not actually required
Fixes the recent ZSNES.regression.
2017-09-01 12:18:28 +01:00
jarupxx 1b26bc3b88 Unpatched GetOverlappedResult 2017-09-01 12:18:13 +01:00
ergo720 52afb76239 Update EmuXapi.cpp 2017-08-31 22:05:51 +01:00
ergo720 0e0d41081a Update EmuXapi.cpp 2017-08-31 22:05:51 +01:00
ergo720 927f7673d3 Update EmuXapi.cpp 2017-08-31 22:05:51 +01:00
ergo720 d4a9b8523d Potential fix for issue #688 2017-08-31 22:05:51 +01:00
Darren Anderson 3b1b8ee384 Fixed OOVPA for timeSetEvent (XDK 5849). 2017-08-31 22:03:13 +01:00
Luke Usher 8afba701fd Fix a typo 2017-08-31 06:12:15 +01:00
Luke Usher fef9738f51 EmuX86: IO improvements + hacky implementation of Timer IO port 2017-08-31 06:12:15 +01:00
Luke Usher 34df6d2865 EmuKrnl: Implement (partial) interrupt support. 2017-08-31 06:12:15 +01:00
Luke Usher 05c2d9287e EmuKrnlRtl: Prevent RtlAssert from causing emulation to abort. 2017-08-31 06:12:15 +01:00
Luke Usher 4a20543afa EmuX86: Implement CMP 2017-08-31 06:12:15 +01:00
Luke Usher 047126a21e EmuX86: Implement IN Opcode
Note that this always returns 0 currently, because EmuX86_IOReadXX are not implemented yet!
2017-08-31 06:12:15 +01:00
Luke Usher 934945d048 Fix DPC bugs: Wrong calling convention was used 2017-08-31 06:12:15 +01:00
jarupxx e4be8e8765 All D3D REGISTER_OOVPA to reviewed
also registered missing OOVPA for each version.

In XDK 4034, 4134, 4432, 5028, 5233, Functions for which valid test cases are not found are provisional registered.
2017-08-30 22:46:04 +01:00
jarupxx 33182af147 All XGRAPHC REGISTER_OOVPA to reviewed
also registered missing OOVPA for each version.

Provisional registration in XDK 4432, 5028
- XFONT_OpenBitmapFontFromMemory 4432
- XGWriteSurfaceOrTextureToXPR 5028
- XGCompressRect 5028
2017-08-30 22:28:00 +01:00
jarupxx eddea78768 All Xapi REGISTER_OOVPA to reviewed
also registered missing OOVPA for each version.

Provisional registration in XDK 4034, 5028, 5233
- SignalObjectAndWait 4034
- XMountMURootA for 5028, 5233
- timeSetEvent for 5233
- timeKillEvent for 5028, 5233
2017-08-30 22:27:22 +01:00
jarupxx 00c833ed96 All XNet, XOnline REGISTER_OOVPA to reviewed
also registered missing OOVPA for each version.
2017-08-29 19:31:45 -05:00