Commit Graph

98 Commits

Author SHA1 Message Date
ergo720 46a03cb442 Created USB devices 2018-07-14 16:22:25 +02:00
RadWolfie 05be1dd4bd Create inline function file for Windows
Plus linux filter folder for future linux support.
2018-06-16 20:18:22 -05:00
jackchentwkh 6edf293699 Add controller port configuration GUI and support virtual SB controller with feedback status (#1196)
* Add XB_ prefix for xbox XInput related structures and variables to prevent mis-use host equivalent.
Add newly findings for device table related info.

* Revert g_Controller ZeroMemory() calls.
now the XINPUT_STATE is correctly refering to host type, no need to specify the name space.

* Add X_CONTROLLER_HOST_BRIDGE structure type.
Prepare for configurabale host input, and virtual xbox controller.

* Fix DeviceInfo initialization when device table is not found.
always set state to enable rumble.

* experimenting virtual SteelBatalion controller.
using console as controller output.
using XInput and direct input combined keys

* first attem to emulat SteelBatalion controller works.

* add dialog file to solution

* Restore missing dialog files and functions

* Minor fix

* fix dialog control grouping
now registry works.

* refine some controller related constants

* Using Dialog for showing
SBC controller feedback
add possibility of using same dialog for virtual controller input.

* using EmuUpdateTickCount() as modeless dialog message handler.
sort of working.
revert the dlg message handling from wnd.cpp

* Finally the dialog for virtual SB controller feedback status works!
modeless dialog got issues. modal dialog will occupy focus. only way is to use a DLL, load the DLL when cxbx-r emulation child process started, and create a dummy window from DLL then create a modal dialog.
lots of code change and clean up.

* fix debug build,  use same character set setting for all configurations.

* restore C++ optimiztion setting in master

* remove unitended included ribbon resources

* removed necessary official document mentioning

* Add src/CxbxVSBC/Release and src/CxbxVSBC/Debug to .gitignore

* Move Host Port assignment related code to src/common/win32

* fix merge confliction

* oops, fix merge conflictions again.

* Add OLD_XINPUT mark for those marked out old XInput code. need to be reviewed in the future.

* remove unintended binary files

* fix debug build, again.
revert unindteded changes to submodule

* rever unintended submodule change

* Relocate project to build/Win32 folder

Co-Authored-By: anita999 <anita999@ms12.hinet.net>

* Restore sln file base on master

* Include project dependency to build

* Final fixup for sln file

* Restore original new line code

* Update Wnd.cpp

* Remove old include

* Include CxbxVSBC.dll into AppVeyor

This should be the last fixup for pull request.

* Fix merge-conflict

* Fix files encode format to UTF-8

* treat .rc file as text instead of binary

* Revert "treat .rc file as text instead of binary"

This reverts commit 034039d723.
2018-05-29 13:33:01 +01:00
PatrickvL 0682970e42 Project fixups 2018-05-24 10:36:24 +02: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
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
RadWolfie ed263d7dbc Start using XbSymbolDatabase library
It does not fully transfer everything yet and D3D8 depending on OOVPA signature directly are currently disabled for time being.
2018-05-12 07:24:10 -05:00
RadWolfie 4344f5db58 Remove HLEDatabase files
Moving into new project.
2018-05-12 07:24:10 -05:00
ergo720 125bc23d4f Pool manager initialization 2018-04-28 22:05:06 +02:00
ergo720 4ecfc4d5d4 Started to write eeprom menu 2018-04-19 19:56:20 +02:00
PatrickvL ffceb1600a
Merge pull request #1076 from ergo720/signature
Xbe signature validation
2018-04-19 09:25:40 +02:00
PatrickvL 4ca78e947d Add Debug_Direct3D9 build configuration, specifically to be able to build for Direct3D9 while keeping the Direct3D8 code paths intact. 2018-04-16 13:18:47 +02:00
ergo720 ac8b798c66 Finished RSA decryption 2018-04-13 16:40:11 +02:00
jarupxx 3d7ddaa340 Initialize commits of HLEDB D3D8LTCG 2018-04-03 05:52:01 +09:00
Luke Usher e1a65a3bde Introduce functional NV2A LLE 2018-04-01 20:18:22 +01:00
ergo720 2608a2767c Implemented termal sensor device 2018-03-28 14:48:24 +02:00
Luke Usher d30aadda4c Oops, forgot to commit updated project files.. 2018-03-15 10:39:27 +00:00
PatrickvL 52f936611b NV2A : Copy over more nv2a code from OpenXbox/Xqemu 2018-02-19 10:58:26 +01:00
Luke Usher a2f727f0a1 Update xxHash to use Hardware CRC32C if available 2018-02-17 12:03:59 +00:00
PatrickvL 451dae5987 Kernel : Move Ki* symbols to own files 2018-02-17 11:56:31 +00:00
PatrickvL 4fb8326384 NV2A : Hide less code behind COMPILE_OPENGL 2018-02-16 11:37:19 +01:00
PatrickvL c3d8cc2e0e NV2A : Moved a few functions inside our device class 2018-02-16 11:36:54 +01:00
patrickvl 21db823596 NV2A : Split up in the same way as OpenXbox. This makes differences between the two easier to spot. 2018-02-16 11:36:22 +01:00
x1nixmzeng 5f3ddf6ee1 Merge https://github.com/Cxbx-Reloaded/Cxbx-Reloaded into cxbx-debugger 2018-02-07 22:05:11 +00:00
patrickvl 1313fd9d99 Fix project filters 2018-02-03 13:57:48 +01:00
PatrickvL fde310fe94 Centralized hardware devices around Xbox sytem, (revisions of) components chosen based on hardware revision.
Most is not yet implemented, but more will surely follow.
Moved SMBUS-address defines and global device variables towards Xbox.h
2018-02-03 13:53:23 +01:00
x1nixmzeng c270797b83 Fixed bad merge of project filters 2018-02-03 12:34:02 +00:00
x1nixmzeng f57a74334f Merge https://github.com/Cxbx-Reloaded/Cxbx-Reloaded into cxbx-debugger 2018-02-01 20:58:01 +00:00
PatrickvL 4d7895eb98 Centralized hardware devices around Xbox sytem, (revisions of) components chosen based on hardware revision.
Most is not yet implemented, but more will surely follow.
Moved SMBUS-address defines and global device variables towards Xbox.h
2018-02-01 17:07:07 +01:00
x1nixmzeng 416a3a9a68 Support for naming threads under Windows 2018-01-31 23:17:33 +00:00
PatrickvL f738bf47d4 Isolated XbePrinter into it's own file, so the Xbe.h/.cpp files don't need to know about it. 2018-01-22 13:16:12 +01:00
jarupxx bf846b59be Separate XDK 5558/5659 with Integrated Hotfixes OOVPA to 5788 database
XDK 5558/5659 with Integrated Hotfixes use 5788 database.
Standard XDK 5659 still uses 5558 database.

Verified with
- [5558] NHL HITZ Pro 2004
- [5558 with Intergrated Hotfixes] XIII
- [5659] NFL Blitz Pro
- [5659 with Intergrated Hotfixes] Midway Arcade Treasures Paperboy
- [5788] Digimon Battle Chronicle
2018-01-22 18:45:42 +09:00
x1nixmzeng c2052e0c13 Fixed poorly merged filters file 2018-01-22 00:44:16 +00:00
patrickvl 33d3dc418e All hardware devices are moved outside CxbxKrnl, towards devices (some into devices\video) 2018-01-22 00:30:32 +01:00
patrickvl afa4e4034d The NV2A is now registered as a hardware device, just like all other devices.
Like the NVNet device, it's implementation is currently just a forward to the existing code.
Still, this removes a dependency from EmuX86 on the NV2A device - from now on it's reached via the generic device framework.
2018-01-21 22:20:38 +01:00
x1nixmzeng 321236c907 Merge https://github.com/Cxbx-Reloaded/Cxbx-Reloaded into cxbx-debugger 2018-01-13 01:00:32 +00:00
PatrickvL 0d19738282 PCI : Move Xbox hardware initialization towards it's own file 2018-01-10 09:25:29 +00:00
PatrickvL 0a4413d939 X86 belongs in Hardware project-filter too. 2018-01-10 09:23:25 +00:00
PatrickvL 187707fd93 SMC : Added LED sequences and HardwareModel, simplified PICVersionString 2018-01-10 09:23:25 +00:00
PatrickvL 509f8a5f11 SMC : Renamed device from PIC16LC (since we're only emulating it at a functional level, not low level). 2018-01-10 09:21:24 +00:00
PatrickvL b44b433259 PIC16LC (SMC) device stub added 2018-01-10 09:21:24 +00:00
PatrickvL 4b88e0c800 EEPROMDevice : Applied Luke's code review comments 2018-01-10 09:20:51 +00:00
Luke Usher 7b2774391f Add PCI/SMBus classes/base devices.
Note that these intentionally make use of standard types rather than Windows/Cxbx specifics like xbaddr...

These classes are designed to be platform and device independent
2018-01-10 09:16:27 +00:00
x1nixmzeng ba74b162ad Debugger messaging system
Now using RaiseException instead of OutputDebugString
2018-01-07 20:13:47 +00:00
PatrickvL 984e2bd510
Merge pull request #821 from ergo720/memory
Virtual memory manager + Kernel memory functions implementation
2017-12-31 23:55:38 +01:00
jarupxx 00e5ac056a Remove unused HLEDataBase files 2017-12-21 12:37:51 +01:00
ergo720 6576933e34 Virtual memory management implementation (WIP) 2017-12-10 17:50:05 +01:00
jarupxx 545e22b6ce Add DSound OOVPAs
Fixed
* CDirectSoundVoice_SetMixBins to use XREF_CMcpxVoiceClient_SetMixBins

Add CDirectSoundVoice_SetDistanceFactor 4361
Add CMcpxVoiceClient_SetMixBins 4039
Add IDirectSoundStream_SetRolloffCurve 4361
Add XFileCreateMediaObject 3911
Add XWaveFileCreateMediaObject 3911

Moved CMcpxAPU_SynchPlayback 5233 to 4831
Moved CMcpxStream_Pause_Ex 4721 to 4361
Moved CMcpxVoiceClient_GetVoiceProperties 5344 to 5028
Moved CMcpxVoiceClient_SetMixBins 5344 to 4134
Moved CDirectSoundVoice_GetVoiceProperties 5344 to 5028
Moved CDirectSoundVoice_Set3DVoiceData 5558 to 5455
Moved CDirectSoundVoice_SetRolloffCurve 4627 to 4361
Moved CDirectSoundBuffer_GetVoiceProperties 5344 to 5028
Moved CDirectSoundBuffer_Set3DVoiceData 5558 to 5455
Moved CDirectSoundBuffer_SetRolloffCurve 4627 to 4361
Moved CDirectSoundStream_GetVoiceProperties 5344 to 5028
Moved CDirectSoundStream_PauseEx 4721 to 4361
Moved CDirectSoundStream_Set3DVoiceData 5558 to 5455
Moved CDirectSoundStream_SetRolloffCurve 4627 to 4361
Moved CDirectSound_GetOutputLevels 4627 to 4361
Moved CDirectSound_SynchPlayback 5233 to 4831
Moved IDirectSoundBuffer_GetVoiceProperties 5344 to 5028
Moved IDirectSoundBuffer_Set3DVoiceData 5558 to 5455
Moved IDirectSoundBuffer_SetRolloffCurve 4627 to 4361
Moved IDirectSoundStream_GetVoiceProperties 5344 to 5028
Moved IDirectSoundStream_PauseEx 4721 to 5361
Moved IDirectSoundStream_Set3DVoiceData 5558 to 5455
Moved IDirectSound_GetOutputLevels 4627 to 4361
Moved IDirectSound_SynchPlayback 5233 to 4831
Moved CFullHRTFSource_GetCenterVolume 5558 to 5344
Moved WaveFormat_CreateXboxAdpcmFormat 4242 to 4039
Moved XAudioCreateAdpcmFormat 4242 to 4039
Moved XFileCreateMediaObject 5344 to 4361
Moved XFileCreateMediaObjectAsync 5344 to 4432
Moved XWaveFileCreateMediaObject 4627 to 4361
Moved XWaveFileCreateMediaObjectEx 5344 to 4361
Moved DSound_CMemoryManager_PoolAlloc 5455 to 4361
2017-11-18 09:14:50 +01:00
RadWolfie fa3f4e0dd7 Force Remove EmuAlloc Files 2017-11-07 00:34:25 -06:00
jarupxx 6ea4ba8d62 Add DSound OOVPA
Fixed
* CDirectSound_EnableHeadphones (5233) need evaluate, most likely false detection.

Re-make CMcpxStream_Flush 4134 to 5344, plus 5455 to 5849
Re-make CMcpxStream_GetStatus 4721 to 5233
Re-make CMcpxBuffer_Play2 4039 to 4361
Re-make CMcpxBuffer_Stop2 4134 to 4361
Re-make CDirectSound_EnableHeadphones 4134
Add CDirectSoundVoice_SetDistanceFactor 4361
Add CDirectSoundVoice_SetDopplerFactor 4361
Add CDirectSound_GetSpeakerConfig 4242
Add CFullHrtfSource_GetHrtfFilterPair 4242
Add CHrtfSource_SetAlgorithm_FullHrtf 4242
Add CHrtfSource_SetAlgorithm_LightHrtf 4242
Add CLightHrtfSource_GetHrtfFilterPair 4242
Add CMcpxBuffer_GetStatus 4721
Add CMcpxBuffer_Pause 4721
Add CMcpxStream_GetStatus 4721
Add DirectSoundUseFullHRTF 4242
Add DirectSoundUseLightHRTF 4242
Moved CDirectSoundBuffer_Pause 4928 to 4721
Moved CDirectSoundBuffer_PauseEx 5344 to 4721
Moved CDirectSoundStream_Flush 5344 to 5028
Moved CDirectSoundStream_FlushEx 5233 to 5028
Moved CDirectSoundStream_PauseEx 5344 to 4721
Moved CMcpxBuffer_Pause_Ex 5344 to 4721
Moved CMcpxStream_Discontinuity 5344 to 4531
Moved CMcpxStream_Pause_Ex 5344 to 4721
Moved IDirectSoundBuffer_Pause 4928 to 4721
Moved IDirectSoundBuffer_PauseEx 5344 to 4721
Moved WaveFormat_CreateXboxAdpcmFormat 5344 to 4242
Moved XAudioCreateAdpcmFormat 5344 to 4242

Verified with
- [4039] Azurik PAL
- [4134] Double-S.T.E.A.L
- [4242] NFL Blitz 2002
- [4361] Flight Academy
- [4432] RedCard 2003
- [4531] NHL Hitz 2003
- [4627] MLB SlugFest 2003
- [4721] Terminator - Dawn of Fate
- [4831] Whacked!
- [4928] Drihoo
- [5028] Shikigami no Shiro Evolution
- [5120] N.U.D.E.@
- [5233] Evil Dead
- [5344] Gladius OXM Demo Disc 20
- [5455] Dinosaur Hunting
- [5558] NHL HITZ Pro 2004
- [5659] Midway Arcade Treasures - Paperboy
- [5788] Digimon Battle Chronicle
- [5849] Nickelodeon Tak 2
2017-11-05 21:56:24 +09:00