Commit Graph

3166 Commits

Author SHA1 Message Date
RadWolfie 733a4a83f0 Use XBE's original Certificate Data
It does fix Game Region reported by @jarupxx. It is likely other values
may have overwritten as well in the process. Using unalternated
certificate data instead.
2017-10-25 16:12:18 -05:00
RadWolfie 61b54bba41 Fix Warning Message From Compiler 2017-10-25 16:08:08 -05:00
RadWolfie 8f887159c5 Enforce Create DirectSound Before Buffer and Stream
Base on research, both DirectSoundCreateStream and
DirectSoundCreateBuffer do check if DirectSound is initialize first then
initialize it. Hopefully some titles wouldn't boot at all will now boot
a bit further.
2017-10-25 03:35:48 -05:00
RadWolfie b019c2ea56 DSound Improvement
- Fixed ResizeIDirectSoundBuffer bug for return value.
- Fixed IDirectSoundBuffer_SetNotificationPositions to only check hRet,
not nullptr itself.
- Replaced SUCCEEDED check to == DS_OK
- Replaced FAILED check to != DS_OK
2017-10-25 03:35:47 -05:00
RadWolfie e2f38df63e Introduce xbnullptr for Xbox usage 2017-10-25 03:35:47 -05:00
Luke Usher be40f6c4c1 Protect against nullptr dereference in SetConeOrientation 2017-10-25 03:35:47 -05:00
RadWolfie 1c4d0f2558 Remove Empty OOVPA Files, Cleanup, Formating
- Remove all empty OOVPA revision files. (Re-add if necessary for new
OOVPA revision)
- Corrected file path and extension for all OOVPA database files.
- Formatted OOVPA.h file to coding standard.
- Fix description in OOVPA.h file
- Add reminder note
2017-10-25 03:35:47 -05:00
Luke Usher 43f0ae9f16 Merge pull request #775 from RadWolfie/WIP_HLEDB_v2
Remove HLE v1 database + Misc Improvement
2017-10-24 21:03:28 +01:00
RadWolfie af17f5cc24 Fix Debug Build 2017-10-24 13:12:29 -05:00
RadWolfie 25cd86fc30 Remove Leftover v1 database 2017-10-24 13:12:18 -05:00
PatrickvL d9821aa1d3 Merge pull request #774 from jarupxx/WIP_HLEDB_V2
Add HLEDataBase Notes
2017-10-24 16:10:23 +02:00
jarupxx 9e1ab01e70 Add HLEDataBase Notes
Titles list which did compiled with full library and additional Verification needed OOVPA.
2017-10-24 20:50:25 +09:00
RadWolfie 20cd6148cd Fix HLE v2 Database includes 2017-10-24 03:24:18 -05:00
RadWolfie d33ffe0c15 Remove HLE v1 Method From Cxbx
- Removed v1 database method
- Migrate v2 into v1 functions
- Format some coding standard
- Fix compile issue
- Say goodbye to HLE v1 method.
2017-10-24 03:23:32 -05:00
RadWolfie 71aabebe27 Append to Previous Commit 2017-10-24 00:09:50 -05:00
RadWolfie c8d12a78ec Removed All HLE v1 Database Header Files 2017-10-24 00:03:34 -05:00
RadWolfie 65162b7fe5 Add XOnline and XNet v2 Database 2017-10-24 00:00:40 -05:00
RadWolfie fabc87fc70 Removed XOnlines v1 Database 2017-10-23 23:15:02 -05:00
RadWolfie 52fdebbcde Removed XNet v1 Database 2017-10-23 23:02:43 -05:00
RadWolfie 4dd0258738 Removed XG v1 Database 2017-10-23 22:58:39 -05:00
RadWolfie 530f2d6e5c Removed Xapi v1 Database 2017-10-23 22:48:51 -05:00
RadWolfie 178618956e Removed XActEng v1 Database 2017-10-23 22:36:51 -05:00
RadWolfie 159e6d6a73 Removed D3D8 v1 Database 2017-10-23 22:16:35 -05:00
RadWolfie 13c128d922 Append Previous Commit 2017-10-23 22:11:29 -05:00
RadWolfie e15e4e0d0a Removed DSound v1 Database 2017-10-23 21:54:47 -05:00
RadWolfie f3e660692c Mostly Predicted (lowered) Revision for DSound 4134
85% possible correct lowest revision
- Add IDirectSoundStream_SetHeadroom to 4134
- Add CDirectSoundStream_SetConeAngles to 4134
- Add CDirectSoundStream_SetFrequency to 4134
- Moved CDirectSound_SetMixBinHeadroom 4627 to 4134
- Moved CDirectSoundStream_SetHeadroom 4627 to 4134
- Moved CDirectSoundStream_SetOutputBuffer 4627 to 4134
- Moved CDirectSoundBuffer_SetNotificationPositions 4627 to 4134

Verified
- Add IDirectSoundStream_SetFormat to 4242
- Add CMcpxStream_Flush to 4361
- Moved CDirectSoundBuffer_Play 4361 to 4134
- Improved CMcpxBuffer_Play to 4134
- Improved CMcpxBuffer_Play in 4721
- Improved CMcpxBuffer_Play in 4831
- Improved CDirectSound_SetAllParameters 4134 to support 4361 and
possible later titles.

NOTE: 4039 and 4134 additions/lowered are not tested, they are predicted
and verified with [4361] Hunter: The Reckoning.

WARNING: Hunter: The Reckoning title can cause your computer to crash
once it reach to main menu.

Verified with
- [4134] Blood Omen 2
- [4361] Hunter: The Reckoning
2017-10-23 15:31:36 -05:00
Luke Usher b2a32db9e2 Merge pull request #773 from jarupxx/XACT_UNPATCHED
HLE v2 XACT library leave UNPATCHED
2017-10-23 12:35:07 +01:00
jarupxx c21286e2da HLE v2 XACT library leave UNPATCHED 2017-10-23 20:23:23 +09:00
PatrickvL 74e61b6b99 Merge pull request #772 from LukeUsher/fix-logo-images
Fix an issue where xbe logo images failed to load
2017-10-21 00:26:05 +02:00
Luke Usher 3ab96df510 Fix an issue where xbe logo images failed to load after a fix to Xbe section name length. 2017-10-20 23:23:50 +01:00
Luke Usher a62d73c109 Merge pull request #771 from LukeUsher/WIP_HLEDB_v2
HLEDB v2
2017-10-20 15:10:43 +01:00
jarupxx 179c158cf2 Fix OOVPA's XDK revision to lowest known match
Refactoring of D3D8 library finished!
The following functions are change address or re added.

Fixed PATCH
- D3DCubeTexture_LockRect
Only perform a jmp, add XREF_Lock2DSurface.
- D3DVolumeTexture_LockBox
Only perform a jmp, add XREF_Lock3DSurface.
- D3DDevice_SetTile 4627 and newer
Only perform a jmp, add XREF_D3D_SetTileNoWait.

Added UNPATCHED
- CMiniport_IsFlipPending
XREF in v1 database, any reason for this?
- D3D_EnumAdapterModes
Aready has signature, but missing REGISTER_OOVPA.
- D3D_GetAdapterDisplayMode
Aready has signature, but missing REGISTER_OOVPA.
- D3D_GetAdapterModeCount
Aready has signature, but missing REGISTER_OOVPA.
- IDirect3DVertexBuffer8_Lock
D3DVertexBuffer_Lock 5788 signature is accurately IDirect3DVertexBuffer8_Lock.

Specific issues
- [3925] Azurik
Missing UNPATCHED D3D_SetPushBufferSize due locate in BINK section.

Verified with
[3925] Azurik
[3948] Shikigami no Shiro
[4034] Dark Summit
[4039] New Legends
[4134] Double-S.T.E.A.L
[4242] NFL Blitz 2002
[4361] Hunter The Reckoning
[4432] RedCard 2003
[4531] NHL HITZ 2003
[4627] MLB SlugFest 2003
[4721] Terminato - Dawn of Fate
[4831] Frogger Beyond
[4928] Drihoo
[5028] Shikigami no Shiro Evolution
[5120] N.U.D.E.@
[5233] Evil Dead
[5344] Gladius OXM DEMO\default.xbe
[5455] Dinosaur Hunting
[5558] NHL HITZ Pro 2004
[5659] Midway Arcade Treasures - Paperboy
[5788] Digimon Battle Chronicle
[5849] Nickelodeon Tak 2
2017-10-20 09:32:14 +01:00
jarupxx e252cdf767 Insert an empty line 2017-10-20 09:32:09 +01:00
jarupxx cc66a0615b Replaced Set #if 1~#endif to #if 0~#endif 2017-10-20 09:32:03 +01:00
jarupxx 8ea9e8a978 Moved OOVPAs lowere HLEDBv1 2017-10-20 09:31:47 +01:00
jarupxx ace13ba786 Moved OOVPAs lowere HLEDBv2 2017-10-20 09:31:37 +01:00
jarupxx 65410cf1bd Set #if 1~#endif. It will move OOVPAs lowere. 2017-10-20 09:31:31 +01:00
jarupxx 8dcafeb9ff Improved D3D OOVPA signature 2017-10-20 09:31:26 +01:00
jarupxx 4a480465c0 Update D3D Database
- D3D_Unknown 5788 is D3DDevice_MakeSpace, meaged to D3DDevice_MakeSpace 4134 version.

- Improved signature
D3DDevice_End
D3DDevice_EndVisibilityTest
D3DDevice_SetRenderState_MultiSampleRenderTargetMode
D3DVertexBuffer_Lock
D3DVertexBuffer_Lock2
D3DVertexBuffer_Lock
2017-10-20 09:31:18 +01:00
jarupxx 1e6d43e38e Reregisterd Obsolete OOVPA UNPATCHED 2017-10-20 09:31:04 +01:00
jarupxx cee6e19019 Moved 3925 to 3911
Except following 3 OOVPAs
D3DDevice_SetRenderState_MultiSampleMode
D3D_EnumAdapterModes
D3D_GetAdapterModeCount
2017-10-20 09:30:57 +01:00
jarupxx 4bb5b2de2d Minor Update D3D 3911 Database 2017-10-20 09:30:49 +01:00
Luke Usher a87f43db55 Fix GetTypeInformation
This completes a rebase onto master!
2017-10-18 21:08:46 +01:00
RadWolfie 1249a8f592 Append Previous Commit
Oops...
2017-10-18 20:47:10 +01:00
RadWolfie a1b21112f8 Add DSound 4242 Database File
- Add CMcpxStream_Flush to 4242
- Improved CMcpxStream_GetStatus 4134 to support 4242 titles.

Both 4242 titles does not have full library compiled. Moved all DSound's
4242 signatures in respective file, nothing has change.

Verified with
- [4134] Blood Omen 2
- [4242] Gauntlet Dark Legacy
- [4242] Smashing Drive
2017-10-18 20:47:10 +01:00
RadWolfie 8a7756c2bb Minor Update to DSound 4134 Database
- Add CDirectSoundStream_AddRef to 4134
- Add CDirectSound_GetCaps to 4134
- Add CDirectSoundBuffer_SetOutputBuffer to 4134
- Removed IDirectSound_SetRolloffFactor from 4134 (Duplicate OOVPA)

Verified with
- [4134] RalliSport Challenge
2017-10-18 20:47:09 +01:00
RadWolfie c52ec1ea2e Update DSound 4134 Verification List
Thanks to jarupxx verifying discovered function with no changes
requirement.

Added a note for CDirectSoundVoice_SetPitch in 4039 needs OOVPA to be
strengthen by implement CMcpxVoiceClient_SetPitch OOVPA.
2017-10-18 20:47:09 +01:00
RadWolfie 9c0fafa239 Append to Previous Commit
Just removing 2 verified 4039 OOVPAs from TODO list...
2017-10-18 20:47:09 +01:00
RadWolfie 27619f4b93 Add DirectSoundCreateStream to DSound 4039 Database
RalliSport Challenge's [4039] XDemos.xbe now progress a bit further.
However, it is only playing a distortion audio loop for now and still
has no video output.
2017-10-18 20:47:09 +01:00
RadWolfie f63d060d44 Update DSound TODO Info 2017-10-18 20:47:09 +01:00