Commit Graph
2604 Commits
Author SHA1 Message Date
Henrik Rydgård d4feb77cb3 Merge pull request #5206 from raven02/master
Implement sceMt19937Init() & sceMt19937Uinit()
2014-01-25 06:14:10 -08:00
raven02 3236625bf6 Revert #5044 and set ctx->avc.avcDecodeResult = 1 2014-01-25 21:29:37 +08:00
raven02 161d8b29fb Implement sceMt19937() 2014-01-25 20:17:53 +08:00
Unknown W. Brackets 10454654bf Ignore unreasonable timestep values.
This fixes #5202 (Crisis Core stuttering) and improves Mana Khemia's "Who
are you?" sound effect while loading savedata.  May also improve Monster
Hunter's similar issue.
2014-01-24 23:55:19 -08:00
Unknown W. Brackets 4541ec4b05 Smooth out detected FPS changes.
Helps reduce uneven FPS rates and sound effect glitches during transitions
(e.g. between a 30 fps scene and a 60 fps menu, or etc.)
2014-01-23 22:23:43 -08:00
Henrik Rydgård a915472eb5 Merge pull request #5174 from unknownbrackets/intr-fix
Restore thread if there's no interrupt handler set
2014-01-22 23:24:32 -08:00
Henrik Rydgård 3700229d37 Merge pull request #5186 from unknownbrackets/savestates
Fix savestates from before v0.9.6-536-g62e9e42
2014-01-22 23:11:15 -08:00
Unknown W. Brackets c5e11c63c0 Now umd0: size is in sectors, not bytes.
So we have to check based on that correctly.  Darn it.
2014-01-22 22:24:30 -08:00
Unknown W. Brackets c2d2b25ced Fix savestates from before v0.9.6-536-g62e9e42.
Unfortunately, this breaks savestates made since then until this is
merged.  However, that's only a day or so.

Fixes #5183.
2014-01-22 21:49:18 -08:00
Unknown W. Brackets f74e29977f Abort on a message dialog just moves to finished.
Still need to shutdown.  Fixes #5177.
2014-01-22 08:17:21 -08:00
Unknown W. Brackets 996d97a05e Properly savestate loaded modules.
May fix savestates in games that use modules heavily, like Yu-Gi-Oh, Metal
Gear Solid, Tales of Radiant Mythology, and Valkyrie Profile.
2014-01-22 01:06:59 -08:00
Unknown W. Brackets 4da08f4f6e Restore thread if there's no interrupt handler set.
If dispatch is disabled and we don't do this, it'll just hang, never
switching back to a thread that can re-enable dispatch.

Fixes #5172.
2014-01-21 22:47:18 -08:00
sum2012 62e9e42b2c Add LoadExecForKernel and SysMemForKernel
Find in chinese verison of Tales of Phantasia
sample log:https://gist.github.com/sum2012/5396a013391d9f7b6124
2014-01-21 22:02:07 +08:00
Unknown W. Brackets f8883279b5 Eat some cycles when flipping the framebuffer. 2014-01-19 12:53:19 -08:00
Unknown W. Brackets ab49de0331 Eat some cycles when getting the current thread id. 2014-01-19 12:44:55 -08:00
Unknown W. Brackets 8396cdf227 Eat cycles when enqueuing GE lists. 2014-01-19 12:44:55 -08:00
Unknown W. Brackets f258cb24c2 Eat some cycles when reading the button data. 2014-01-19 12:44:54 -08:00
Unknown W. Brackets 73d6accafc Eat a few cycles when checking callbacks.
Some games really spam this function.
2014-01-19 12:44:54 -08:00
Unknown W. Brackets 553990d5a0 Eat cycles when messing with the dispatch thread. 2014-01-19 12:44:53 -08:00
Unknown W. Brackets afff20a642 Eat some cycles when working with event flags. 2014-01-19 12:44:53 -08:00
Unknown W. Brackets d24668c9c3 Eat some cycles in suspend/resume interrupt funcs.
These are really common, hope this doesn't have ill effects...
2014-01-19 12:44:52 -08:00
Unknown W. Brackets 8aa9483cbf Eat some cycles in the Dcache invalidate funcs. 2014-01-19 12:44:51 -08:00
Henrik Rydgård f9be841612 Merge pull request #5130 from unknownbrackets/mpeg-minor
Set return status in sceMpegAvcDecodeStopYCbCr()
2014-01-18 12:42:17 -08:00
Unknown W. Brackets dfd480d13a Set return status in sceMpegAvcDecodeStopYCbCr().
Like the other Stop().  Fixes video end in Tales of Phantasia X.
2014-01-18 10:56:41 -08:00
Henrik Rydgård f460f34a93 Merge pull request #5044 from raven02/patch-14
Fix corrupted keyframes in several games
2014-01-18 09:09:15 -08:00
Unknown W. Brackets 610b7f6e4c Fix cross-platform compat problem with savestates. 2014-01-15 08:03:37 -08:00
raven02 6e21b4eaf5 Use HLE_NOT_IN_INTERRUPT for sceKernelGetThreadId() 2014-01-13 21:53:15 +08:00
Unknown W. Brackets bf37e55b9f Don't return latched framebuf if not latched. 2014-01-12 23:29:03 -08:00
Henrik Rydgård 108d592461 Merge pull request #5092 from unknownbrackets/module-minor
Try to implement the unload/stop self module func
2014-01-12 13:56:19 -08:00
Unknown W. Brackets 3d75b4e918 Try to implement the unload/stop self module func.
A game might call this when it uses multiple modules in a normal, not
crashing, sort of situation.

This may help Killzone Liberation or Resistance.
2014-01-12 13:51:43 -08:00
Henrik Rydgård b9a2e94c26 Merge pull request #5091 from thedax/fixPeaceWalkerHang
Win32: Fix infinite loading on Peace Walker
2014-01-12 12:36:44 -08:00
The Dax f9348b96b7 Add more WLAN off behaviour. Without these, Peace Walker loads forever on subsequent missions on Windows. 2014-01-12 15:33:29 -05:00
raven02 e757559cbc Remove duplicate 2014-01-12 23:29:49 +08:00
Unknown W. Brackets 4f585fd7a6 Fix a few minor typos. 2014-01-11 22:59:52 -08:00
Unknown W. Brackets 79864a5ee0 Fix some initialization order warnings. 2014-01-10 22:21:24 -08:00
Unknown W. Brackets a651e09de7 Fix a bad comparison (&& and || without parens.)
I thinks this is what's inteded.  I still think it's bad to guess at errors without testing.
2014-01-10 22:12:00 -08:00
Unknown W. Brackets 4a4f89eeac Correctly read the epmap from the right place. 2014-01-10 12:57:40 -08:00
raven02 23704e9940 Return PSP_ERROR_MPEG_NO_DATA when audio end reach 2014-01-10 23:41:32 +08:00
raven02 c2e6f77a2f Check EPMap and return ERROR_PSMF_NOT_FOUND if empty 2014-01-10 19:15:35 +08:00
Unknown W. Brackets 1a38f6fa7d Properly remove terminated thread from ready queue.
If we change the priority first, we'll remove from the wrong priority
level, oops.  Gotta change afterward.

Should improve Darkstalkers Chronicle: The Chaos Tower.
2014-01-09 22:05:04 -08:00
raven02 898964e415 Typo fix 2014-01-09 22:34:02 +08:00
raven02 451797af92 Add ERROR_LOG for invalid id and timestamps 2014-01-09 21:37:01 +08:00
raven02 9ac8c63d96 Make more sense to use return as ERROR_PSMF_INVALID_ID 2014-01-09 21:30:49 +08:00
Henrik Rydgård c176d09ba6 Fix a few range checks in scePsmf. See #5051 2014-01-08 14:20:20 +01:00
Unknown W. Brackets 079d770ce2 Revert the gp struct member in mpegs for now.
Unlikely to be used, even though seen in tests, and could be
causing #5045 (just a guess.)
2014-01-08 00:07:25 -08:00
raven02 4c26b839f4 Fix corrupted frames in Dainiji_Super_Robot_Taisen_Z_Hakaihen 2014-01-08 05:40:37 +08:00
Henrik Rydgard eea5b07e1a Prevent function replacer from replacing asinf and acosf, they seem to have colliding hashes in some games 2014-01-07 12:03:59 +01:00
Unknown W. Brackets 40745e727c Correct errors in sceMpegRingbufferAvailableSize(). 2014-01-05 23:12:16 -08:00
Unknown W. Brackets a896877449 Fix mpeg struct header. 2014-01-05 23:03:17 -08:00
Unknown W. Brackets e16602641c Improve errors in sceMpegRingbufferConstruct().
And also make Destruct() not actually null out the ringbuffer, per tests.
2014-01-05 22:34:11 -08:00