Commit Graph

5856 Commits

Author SHA1 Message Date
Luke Usher 6b0b5d45eb
Merge pull request #1521 from LukeUsher/fix-upscale-hack
Restore upscaling hack after broken by D3D9 port
2019-01-02 22:43:43 +00:00
Luke Usher 5d34de3234 Restore upscaling hack after broken by D3D9 port 2019-01-02 22:42:19 +00:00
PatrickvL 8d64c98cf3
Merge pull request #1520 from Fisherman166/RtlRaiseStatus_implementation
Add implementation of RtlRaiseStatus
2018-12-31 20:21:15 +01:00
Fisherman166 4da125582d Add implementation of RtlRaiseStatus reverse engineered from real hardware kernel. 2018-12-31 11:03:16 -08:00
PatrickvL fbc64d69aa
Merge pull request #1519 from Fisherman166/RtlExtendedLargeIntegerDivide
Rewrite RtlExtendedLargeIntegerDivide with correct algorithm
2018-12-20 08:39:41 +01:00
unknown 4c4a544b3b Rewrite RtlExtendedLargeIntegerDivide with correct algorithm reverse engineered from real hardware. 2018-12-19 21:14:31 -08:00
Luke Usher 975f468031
Merge pull request #1517 from ergo720/kernel_crypto
Implemented kernel des crypto functions + XcCryptService
2018-12-19 08:19:39 +00:00
ergo720 cb6881e417 Spelling... 2018-12-18 21:26:23 +01:00
ergo720 25d6fbc902 Allow buggy behaviour in cbc functions 2018-12-18 18:46:12 +01:00
ergo720 ef385087a8 Implemented des functions + XcCryptService 2018-12-18 14:01:33 +01:00
PatrickvL c709f9e305
Merge pull request #1516 from ergo720/emu_folders_bis
Reorganized emu folders
2018-12-15 21:19:33 +01:00
ergo720 1234df190e Merged CxbxCommon with CxbxUtil 2018-12-15 20:43:22 +01:00
ergo720 813975a6c2 Moved ResourceTracker.h + renamed HLE -> hle 2018-12-15 19:26:47 +01:00
ergo720 ef70b6a33d Created support folder 2018-12-15 18:48:19 +01:00
ergo720 19f5829d28 Created exports folder 2018-12-15 18:24:11 +01:00
ergo720 c6c0791bf0 Created init folder 2018-12-15 18:05:57 +01:00
ergo720 42004654a2 Created memory-manager folder 2018-12-15 17:47:08 +01:00
ergo720 e6e93a2d4a Renamed some folders + moved EmuShared.h 2018-12-15 17:28:01 +01:00
ergo720 c5e7824475 Created util folder 2018-12-15 16:58:51 +01:00
ergo720 864e2422ac Created crypto folder 2018-12-15 16:21:52 +01:00
ergo720 0cb83f9cc8 Renamed Cxbx -> gui folder 2018-12-15 15:45:59 +01:00
ergo720 980e073c8a Moved Timer.h 2018-12-15 15:25:31 +01:00
ergo720 1cbeef42cf Created x86 folder 2018-12-15 15:13:30 +01:00
ergo720 3d46f35174 Created xbe folder 2018-12-15 14:59:34 +01:00
ergo720 b0523ecae5 Moved CxbxXbdm + renamed Common -> common 2018-12-15 14:40:40 +01:00
ergo720 77b449b340 Renamed CxbxVSBC -> vsbc 2018-12-15 14:29:59 +01:00
Luke Usher e396754ace
Merge pull request #1515 from LukeUsher/fix-debug-builds
Fix debug builds + some warnings
2018-12-14 13:14:41 +00:00
Luke Usher 1704f0e8ce Compiler warning fixes 2018-12-14 11:19:17 +00:00
Luke Usher 922d0a7627 Fix an assert that prevented Debug builds from working 2018-12-14 11:00:43 +00:00
Luke Usher 6c4e9d82f8
Update README.md 2018-12-06 13:19:56 +00:00
RadWolfie dc48499878
Merge pull request #1511 from LukeUsher/debugging-hangs
Debugging hangs
2018-12-01 12:39:32 -06:00
Luke Usher f3aa312cde Workaround a hang when PsCreateSystemThreadEx returns too soon 2018-12-01 17:31:49 +00:00
Luke Usher adba54da47 Fix a crash in Morrowind, add a test_case to notify us of the situation if it occurs elsewhere 2018-12-01 17:22:52 +00:00
Luke Usher 0eab84d268
Merge pull request #1512 from ergo720/sys_mem_fix
Fix a bug in AllocateSystemMemory
2018-11-29 20:12:57 +00:00
ergo720 8790b48c06 Fix a bug in AllocateSystemMemory 2018-11-29 20:14:32 +01:00
Luke Usher 2084e25ea9 More tweaks 2018-11-28 20:35:11 +00:00
Luke Usher fa82f10a48 Call SystemRoutine directly instead of bootstrap voodoo 2018-11-28 20:18:30 +00:00
Luke Usher 8c570badb0 Stop EmuX86 spamming the log in Unreal Championship, this kills performance 2018-11-28 18:40:29 +00:00
Luke Usher d1e2ddd335
Merge pull request #1510 from LukeUsher/disable-ps-notification
Disable PS Thread notification routines.
2018-11-26 19:51:20 +00:00
Luke Usher 4304bf8266 Disable PS Thread notification routines.
Our code for this is completely wrong and does more harm than good.
Turns out that we (incorrectly) assumed that these were used internally
the same way as XAPI Thread routines, but they're completely separate!

XAPI thread routines are called by XApiThreadStartup (Xbox code) so we
don't need to handle them at all!

PSNotification Routines are more complex and require objects/functions
that we do not currently create, making them impossible to implement at
present, so for now, we'll disable them to prevent the random crashes
and memory corruption it causes.

This fixes a crash in Morrowind's DSOUND driver, where the pThis pointer
became corrupted as a result of the invalid notification routine call!
2018-11-26 19:48:09 +00:00
Luke Usher 885af521dd
Merge pull request #1509 from LukeUsher/lets-fix-some-exclusives
Fix THPS2X Regression after PDO fix
2018-11-25 17:43:55 +00:00
Luke Usher 02e756aadf Call a thread notification routine *before* starting the new thread, not
after.

This is required as it is the job of the notification routine to
allocate any per-thread data structured that the new thread will
require.

Likewise, the routine is called again during thread termination, in
which it should cleanup these resources.

To clarify: The first call needs to happen before the new thread starts,
and MUST be called from the context of the current thread, not the new
thread.

The second call must be called during Thread termination, by the new
thread, just before it is destroyed
2018-11-25 17:20:23 +00:00
Luke Usher f74cba4486 Typo 2018-11-25 12:11:46 +00:00
Luke Usher 6afb63ac77 Fix regression in THPS2X: Needs re-testing with Panzer Dragoon Orta 2018-11-25 12:10:17 +00:00
Luke Usher ba5242ec39
Merge pull request #1508 from LukeUsher/lets-fix-some-exclusives
Rename JSRF hack to Smilebit hack, as it applies to Gunvalkyre too
2018-11-22 22:56:11 +00:00
Luke Usher f0f63f9e16 Rename JSRF hack to Smilebit hack, as it applies to Gunvalkyre too 2018-11-22 22:54:20 +00:00
Luke Usher cfbcd3509e
Merge pull request #1507 from LukeUsher/lets-fix-some-exclusives
Fix random crashes in Panzer Dragoon Orta
2018-11-22 21:57:56 +00:00
Luke Usher 602efd6d6e Remove upper limit on Xbox Threads: This was a left-over from original Cxbx and is unnecessary 2018-11-22 07:28:37 +00:00
Luke Usher b38b958730 This potentially improves stability 2018-11-20 19:35:19 +00:00
Luke Usher d7108e8c9e Fix a crash when draw functions are called with no plugin initialized 2018-11-18 14:58:07 +00:00