Commit Graph

4354 Commits

Author SHA1 Message Date
RadWolfie 20cf54aba1 Redo swap since it got revert somehow. 2018-04-29 12:40:42 -05:00
RadWolfie f6c1992865 Fix GetCaps host's var to initialize correctly
Verified with Burnout title, no longer output failure.
2018-04-29 12:40:42 -05:00
RadWolfie 6611340c51 Little improvement
Might not be 100% accurate, however it had been called in these area
base on RE.
2018-04-29 12:40:42 -05:00
RadWolfie 9a8c7031b2 Add notes 2018-04-29 12:40:42 -05:00
RadWolfie f7f11b9b88 Fixed DSound Stream class
EmuFlags was not set to 0 and GeneratePCMFormat function must be called
after DSoundBufferSetDefault.

Fixed title:
* Battlestar Galactica

Pretty sure it will fix other titles' crashes.
2018-04-29 12:40:42 -05:00
RadWolfie 21a6042e7f Adjustment to PatrickvL's code 2018-04-29 12:40:42 -05:00
RadWolfie 753917509b Fix alloc size for lpwfxFormat
WAVE_FORMAT_PCM always ignore cbSize, we need to manually set to 0 in
order to prevent any crash later on.
2018-04-29 12:40:42 -05:00
RadWolfie b77ecf35e3 Swap Flush/Discontinuity
What to do with Flush's function?

Also, really need to reset internal states in Discontinuity function? As
in like what?
2018-04-29 12:40:42 -05:00
RadWolfie 87beb542f5 Add a note 2018-04-29 12:40:41 -05:00
RadWolfie f830b1e150 Update region changes
Is not 100% verified, however JSRF skating, jump, etc has return to
normal volume.
2018-04-29 12:40:41 -05:00
RadWolfie 32ff268837 Add notes 2018-04-29 12:40:41 -05:00
RadWolfie d6ee5fc4ed Fixup StopEx function
Still not 100% sure if is accurate or not, just closer to accurate.
2018-04-29 12:40:41 -05:00
RadWolfie bdc3fa4fd6 Emulate audio region a bit better 2018-04-29 12:40:41 -05:00
RadWolfie 1fde463e1e Combo changes
* instead of calling malloc everytime, let's merge into class instead.
* Check size at play function (temporary, need to apply overall)
* Minimize duplicate code into simplier reuse inline functions.
* What else?

TODO: Need to update StopEx function.
2018-04-29 12:40:41 -05:00
RadWolfie 2343843098 Enable debug trace 2018-04-29 12:40:41 -05:00
jackchentwkh 3838ae7318 Add multi controller support for Xinput gamepads 2018-04-29 23:43:33 +08:00
Luke Usher 7e21e8bb80
Merge pull request #1104 from jackchentwkh/no_input_fix
Fix no input issue for certain titles.
2018-04-29 14:36:47 +01:00
jackchentwkh b6ce816017 Add emulated dwPacketNumber for DirectInput, this fixed no input issue for direct input users. 2018-04-29 21:28:53 +08:00
PatrickvL 54fe4be69d
Merge pull request #1105 from jackchentwkh/add_pushbuffer_fixup
Add fixup for pushbuffer.
2018-04-29 13:42:06 +02:00
jackchentwkh 2766018022 using code from Dxbx to apply fixup data to pushbuffer. 2018-04-29 19:22:09 +08:00
jackchentwkh 1fdca128bd dwPacketNumber must be updated to trigger the xbe to process the new input state 2018-04-29 19:01:36 +08:00
jackchentwkh 8053bbee28 only create handle for port 0 2018-04-29 19:00:51 +08:00
PatrickvL 9a9ee37092
Merge pull request #1093 from PatrickvL/overlay_sync
D3D : Present overlay only when last present was more than 1 frame ago
2018-04-29 00:58:47 +02:00
PatrickvL 51e4dfcaac
Merge pull request #1102 from ergo720/pool_manager
Pool manager
2018-04-29 00:57:20 +02:00
PatrickvL 827f5666e9
Merge pull request #1094 from jarupxx/WIP_LTCG_Patch
Implement D3D8LTCG specific functions
2018-04-29 00:54:23 +02:00
ergo720 8483f896ed Bug fixes and added logging to PoolManager 2018-04-28 22:05:10 +02:00
ergo720 c3630ebf83 Fix compilation errors 2018-04-28 22:05:09 +02:00
ergo720 dcede85bca Small updates to VMManager 2018-04-28 22:05:09 +02:00
ergo720 b7b3d4b326 Fix latent bug in xbe image memory reservation 2018-04-28 22:05:08 +02:00
ergo720 ab679390bc QueryPoolSize 2018-04-28 22:05:08 +02:00
ergo720 ab67c61e6d DeallocatePool 2018-04-28 22:05:07 +02:00
ergo720 e14b775b7e AllocatePool 2018-04-28 22:05:06 +02:00
ergo720 125bc23d4f Pool manager initialization 2018-04-28 22:05:06 +02:00
Luke Usher 43080289ab
Merge pull request #1100 from RadWolfie/VS-2015-Fix
Fix VS 2015 errors
2018-04-28 16:57:01 +01:00
RadWolfie 2482b59a14 Fix VS 2015 errors 2018-04-28 10:31:49 -05:00
PatrickvL a6efd01003
Merge pull request #1098 from Margen67/Margen67-update-readme
Update README.md
2018-04-28 10:42:51 +02:00
Margen67 73e6068e7b
Update README.md
Change : to ;
2018-04-28 00:49:05 -07:00
Margen67 0dfa290360
Update README.md
--recursive is deprecated.
Formatting.
Fix small error in 'Fetching the code' section.
Removed screenshot gallery as it's now outdated.
2018-04-27 19:03:19 -07:00
jarupxx cb661c2906 D3D : Fix LTCG optimized SetTextureState functions
- D3DDevice_SetTextureState_TexCoordIndex_4
- D3DDevice_SetTextureState_BumpEnv_8
2018-04-27 21:57:51 +09:00
jarupxx 62a4460de7 D3D : LTCG optimized Direct3D_CreateDevice works like standard functions 2018-04-27 18:13:19 +09:00
jarupxx 5ca0f2a0cc Merge remote-tracking branch 'upstream/master' into WIP_LTCG_Patch 2018-04-27 08:01:38 +09:00
jarupxx fc74b31c85 OOVPA : Regression Fixes 2018-04-27 06:57:56 +09:00
patrickvl e33243d466 D3D : Present overlay only when last present was more than 1 frame ago 2018-04-26 23:48:28 +02:00
Luke Usher 46887a60dc
Merge pull request #1089 from ergo720/eeprom_viewer
Eeprom viewer
2018-04-26 19:12:09 +01:00
Luke Usher 55d2e1c4e5
Merge pull request #1090 from PatrickvL/D3D_work
D3D work
2018-04-26 19:11:56 +01:00
PatrickvL 6740ba2776 D3D : Restructured EMUPATCH(D3DDevice_GetBackBuffer2) and disable the last use of EmuNewD3DSurface() 2018-04-26 18:44:49 +02:00
jarupxx f32dd779cb Set LOG_TEST_CASE to untested LTCG specific functions 2018-04-26 20:43:08 +09:00
jarupxx 7dc38ed0e1 Add patch for LTCG optimized functions
- Direct3D_CreateDevice_4
- Direct3D_CreateDevice_16
- D3DDevice_EndVisibilityTest_0  (UNTESTED)
- D3DDevice_LoadVertexShader_4
- D3DDevice_SelectVertexShader_0
- D3DDevice_SelectVertexShader_4 (UNTESTED)
- D3DDevice_GetViewportOffsetAndScale_0 (Broken)
- D3DDevice_SetStreamSource_4
- D3DDevice_SetPalette_4
- D3DDevice_SetFlickerFilter_0
- D3DDevice_DeleteVertexShader_0 (UNTESTED)
2018-04-26 20:13:54 +09:00
jarupxx 2764c3e463 Partly fix patch for LTCG optimized functions
- D3DDevice_SetTexture_4
- D3DDevice_SetPixelShader_0
TODO: XB_trampoline plus Log function is not working due lost parameter.
2018-04-26 20:13:54 +09:00
jarupxx 6929899a48 Change EmuD3DDeferred error to a warning 2018-04-26 20:13:54 +09:00