Commit Graph

3543 Commits

Author SHA1 Message Date
ergo720 81b1d75b4a Xbox fatal error implementation 2018-01-26 09:56:26 +01:00
Luke Usher 4cf2dbf5a6
Merge pull request #893 from LukeUsher/fix-debug-log-crash
Fix a crash when setting a debug filename for the first time
2018-01-25 14:07:14 +00:00
Luke Usher d3989024ea Fix a crash when setting a debug filename for the first time
This was caused by doing = on a string that was not a std::string,
unintentially causing the pointer address to be changed.

This tweak instead causes the first character of the string to be set to
\0 (null) causing all string parsing functions to treat it as an empty
string, without trashing the poiner.
2018-01-25 14:06:20 +00:00
Luke Usher d393637a47
Merge pull request #892 from PatrickvL/NV2A_expansion
NV2A expansion
2018-01-24 08:18:25 +00:00
PatrickvL 3314fc18fb NV2A : Added defines and code from my WIP_LessVertexPatching branch that wasn't yet in master. Also some defines from the OpenXbox repository. 2018-01-23 16:26:01 +01:00
PatrickvL 60e092885e NV2A : Added Luke's comment at wrong RegisterBAR 2018-01-23 13:50:39 +01:00
PatrickvL 94d3d3fc2e
Merge pull request #891 from LukeUsher/d3dbegin_end_tweaks
D3DBegin/End Tweaks
2018-01-23 12:13:19 +01:00
Luke Usher 6b4e529bd6 Shrink IVB_TABLE_SIZE
It was way too big and the vertex buffer was failing to allocate in some titles.
2018-01-23 10:15:46 +00:00
Luke Usher ec1172f68f Make Unknown IVB Register a Warning rather than a hard crash 2018-01-23 10:15:30 +00:00
Luke Usher 8139bd833d Silent Hill 2 no longer overflows the g_IVBTable 2018-01-23 10:15:13 +00:00
PatrickvL 112c5332d9
Merge pull request #889 from ergo720/HalFunctions
HalIsResetOrShutdownPending implementation
2018-01-22 19:49:36 +01:00
ergo720 f0f152ace5 Simplified HalIsResetOrShutdownPending implementation 2018-01-22 19:08:08 +01:00
ergo720 1a4295c3da HalIsResetOrShutdownPending implementation 2018-01-22 16:06:17 +01: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
PatrickvL 488663fae7
Merge pull request #887 from PatrickvL/LED_fix
Removed the LED sequence cycle reset feature.
2018-01-22 12:46:30 +01:00
PatrickvL 0b5bcd6dda Removed the LED sequence cycle reset feature.
After at most 1/6th of a second, a new sequence will be active anyway, so resetting it won't be very useful anyway. This removes the need to check if a new sequence is set, and the need for the bLedHasChanged status boolean, simplifying the code further.

This should fix https://github.com/Cxbx-Reloaded/Cxbx-Reloaded/issues/885
2018-01-22 12:45:39 +01:00
Luke Usher 043a380931
Merge pull request #886 from jarupxx/OOVPA_5558_Hotfix
Separate XDK 5558/5659 with Integrated Hotfixes OOVPA to 5788 database
2018-01-22 10:15:43 +00: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
PatrickvL 9dd84564ec
Merge pull request #869 from Fisherman166/master
Create Xbe Printer class for more modular Xbe Dumping
2018-01-22 08:14:33 +01:00
Fisherman166 641ec8fdfa Return a string from dumpinformation and let the caller decide how to output the info 2018-01-21 17:12:45 -08:00
Fisherman166 4a3965d644 Move Xbe dumping into its own class. Add game ratings string printout for issue #686. Cleanup GUI code so that the Xbe Printer is responsible for outputting Xbe info 2018-01-21 17:12:44 -08:00
PatrickvL b015cc715b
Merge pull request #883 from PatrickvL/LED_simplifications
Simplified LED encoding and drawing code
2018-01-22 00:42:37 +01:00
PatrickvL 78cf44077d
Merge pull request #872 from blueshogun96/master
Azurik updates
2018-01-22 00:41:50 +01:00
blueshogun96 7eb82e0b53 Removed duplocate code 2018-01-21 15:38:34 -08:00
PatrickvL e27918b95d
Merge branch 'master' into LED_simplifications 2018-01-22 00:34:45 +01:00
patrickvl 7697dc9333 All hardware devices are moved outside CxbxKrnl, towards devices (some into devices\video) 2018-01-22 00:32:44 +01:00
Luke Usher 32d52d4097 Merge pull request #882 from PatrickvL/device-ify_nv2a
The NV2A is now registered as a hardware device, just like all other devices
2018-01-22 00:32:42 +01: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 1e5d7ffede Simplified LED encoding and drawing code - Ergo720's LED_MultiColor.xbe actually flashes the LED correctly now! 2018-01-21 23:50:30 +01:00
Luke Usher 0f764c4483
Merge pull request #882 from PatrickvL/device-ify_nv2a
The NV2A is now registered as a hardware device, just like all other devices
2018-01-21 21:38:15 +00: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
Luke Usher 386eaf292f
Merge pull request #881 from ergo720/HalInitiateShutDown
HalInitiateShutDown implementation
2018-01-21 20:08:55 +00:00
ergo720 c16f94f273 HalInitiateShutDown implementation 2018-01-21 20:08:12 +01:00
Luke Usher 792a222e5c
Merge pull request #876 from LukeUsher/disable-new-color-conversion
Disable new color conversion
2018-01-21 14:42:15 +00:00
Luke Usher cd6813131d Disable new color conversion
As much as I hate to do this, it is currently causing crashes in titles that use P8 format textures.
It will be restored once this (and other related issues) are resolved.
2018-01-21 14:41:43 +00:00
Luke Usher 649464e549
Merge pull request #875 from ergo720/LED
comment on the led
2018-01-21 11:01:13 +00:00
ergo720 1bde019977 comment on the led 2018-01-21 11:32:53 +01:00
Luke Usher 53a932c573
Merge pull request #874 from ergo720/LED
LED implementation
2018-01-21 10:26:36 +00:00
ergo720 9084661b0e LED 2018-01-21 11:02:25 +01:00
Luke Usher b460464d47
Merge pull request #868 from PatrickvL/VariousFixes
Various fixes
2018-01-21 09:02:20 +00:00
blueshogun96 1a650f280e Increase stack reserve and commit size (stops Azurik from crashing during FMVs in release mode) 2018-01-20 16:10:07 -08:00
blueshogun96 4ee53eaa0d Remove double slashes from file paths 2018-01-20 15:53:23 -08:00
blueshogun96 46259aeb02 Azurik 3D rendering fix (D3DDevice_LoadVertexShaderProgram) 2018-01-20 15:44:07 -08:00
blueshogun96 8bdc6ae6f9 Merge remote-tracking branch 'upstream/master' 2018-01-20 15:11:56 -08:00
PatrickvL c09210d12b Log SetLEDSequence 2018-01-19 17:40:33 +01:00
PatrickvL ac88ecbe95 Switched over to new color-format conversion (required lowering an #endif)
My tests thus far show no regressions!
2018-01-19 17:18:12 +01:00
PatrickvL 06eb0f3a5c Unpatched D3DResource_AddRef, and avoid calling it wherever possible 2018-01-19 17:16:27 +01:00
PatrickvL 1f7e8c9877 SMBus::ConnectDevice requires the same address-translation as ExecuteTransaction (otherwise, devices can't be found). 2018-01-19 17:14:20 +01:00
PatrickvL 81e2764aaf HalWriteSMBusValue typo fix that allows it to succeed after the final IORead 2018-01-19 17:12:44 +01:00
PatrickvL 69c7d6b99f New EMUPATCH(D3DDevice_GetTexture), forwarded to D3DDevice_GetTexture2.
Corrected all texture-related types to X_D3DBaseTexture.

Added a few safeguards against accessing null pointers (this part is the only functional change of this commit).
2018-01-19 13:56:10 +01:00