Commit Graph

2565 Commits

Author SHA1 Message Date
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
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
Henrik Rydgård
cb28d332d3 Merge pull request #5021 from unknownbrackets/mbx-fix
Remove weird 991 mbx check (fixes #2927)
2014-01-05 08:14:09 -08:00
Unknown W. Brackets
116f86a8e8 Remove weird 991 mbx check (fixes #2927.) 2014-01-05 08:10:36 -08:00
raven02
1e3ec469fd Typo fix 2014-01-05 08:46:50 +08:00
Henrik Rydgård
4d477f0076 Merge pull request #4997 from raven02/patch-4
sceMpeg: Add all missing invalid memory check and cleanup format
2014-01-04 07:59:52 -08:00
Jeferson Rodrigues da Silva
4284290463 Fix for not updating local port information after bind in PtpOpen 2014-01-04 12:57:08 -02:00
raven02
54d97824e0 Apply hleDelayResult to sceMpegAvcCsc 2014-01-04 22:47:34 +08:00
Unknown W. Brackets
936f34a6b7 Check the audio buffer size just in case.
This way we definitely won't overfill it.
2014-01-04 01:25:42 -08:00
Unknown W. Brackets
f095ac656b Don't completely fill the psmf ringbuffer at once.
It takes more time (slowing the start of the video), and gets us closer to
overflowing buffers and stuff.
2014-01-04 01:23:44 -08:00
raven02
b28f224fe2 sceMpeg: Add all missing invalid memory check and cleanup format 2014-01-04 16:55:20 +08:00
Henrik Rydgard
0de71f27cb Optimize the VAGADPCM decoder. 2014-01-04 01:59:20 +01:00
raven02
14e79f8151 Lowering the log level of sceNET 2014-01-04 02:32:59 +08:00
Henrik Rydgard
9bde25dfa9 Moving the lang mapping to Config clears up some obcure file-to-file build dependency.
Should fix the build.
2014-01-03 19:04:43 +01:00
Henrik Rydgård
4d4fb98692 Merge pull request #4993 from unknownbrackets/mpeg-minor
Set the audio/video streams per sceMpegGet*Au()
2014-01-03 09:41:12 -08:00
Unknown W. Brackets
4e929764c8 Set the audio/video streams per sceMpegGet*Au().
This fixes #2226, thanks to @raven02 for finding the issue.  Could also
help e.g. Xyanide: Resurrection and a few other games.

The video codec change path is not super well tested, because I couldn't
find a game that triggered it, but it should work.
2014-01-03 09:29:37 -08:00
sum2012
94200b2df8 typo 2014-01-02 21:46:51 +08:00
sum2012
d0be3a38a9 Wrap some sceHprm
and remove same sceHprmPeekCurrentKey
2014-01-02 21:43:19 +08:00
Unknown W. Brackets
81b2540e98 Fix typo. 2014-01-01 13:38:04 -08:00
Unknown W. Brackets
36707ce9e7 Load the EP map from the psmf data when available.
Rather than just having uninitialized values.

Fixes #2642, World Neverland.
2014-01-01 13:38:03 -08:00
Unknown W. Brackets
bb10ffd38f Set Psmf->headerSize to something.
Before it was uninitialized.
2014-01-01 13:38:03 -08:00
Aapo Rantalainen
ed6b8e34ab Fix missing includes (stdio.h) 2014-01-01 22:31:03 +02:00
Unknown W. Brackets
f14361c3b8 Add a bunch more missing cstring includes. 2013-12-30 21:37:19 -08:00
Henrik Rydgård
e5e17fbc6e More include cleanup. Hoping for very slightly faster compile times.. 2013-12-30 10:49:05 +01:00
Henrik Rydgård
00c32ddadb Mostly get rid of including "Globals.h" 2013-12-30 10:17:11 +01:00
Unknown W. Brackets
be55be7dcb Fix some formatting warnings. 2013-12-29 16:08:06 -08:00
Henrik Rydgård
ce378b231f Delete CPU.cpp/h , cleanup 2013-12-30 00:11:29 +01:00
Henrik Rydgård
79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Henrik Rydgård
ff10d0b0f2 Merge pull request #4887 from unknownbrackets/io-minor
Implement a few more ioctl commands
2013-12-28 00:17:37 -08:00
Henrik Rydgård
80d73f3d93 Merge pull request #4923 from lioncash/master
Fix possible null ptr derefs in sceFont.cpp. Also fix typo in if statement comparison in sceNetAdhoc.cpp
2013-12-27 23:47:49 -08:00
Unknown W. Brackets
ed759d32ff Correctly identify a blockwise memcpy.
Oops, I didn't realize this one went in blocks of 16.
2013-12-27 21:39:05 -08:00
Lioncash
442cc2f1c7 Fix a typo in an if statement comparison in function sceNetAdhocPdpDelete. This was likely intended to check against 'sock', not 'socket'. On Windows, initially 'socket' referred to a function in the WinSock2.h header file. Naturally, this will alway be non-null, which further leads to the conclusion that this was the intended comparison.
Also updated the commented out sections accordingly.
2013-12-27 12:02:53 -05:00
Lioncash
19dee283f2 Access font after the null check in sceFontGetCharImageRect, not before. 2013-12-27 11:42:14 -05:00
Unknown W. Brackets
0bf1ef5773 Improve sceIoGetDevType() return values.
At least for block/file devices.  Can't find a way to get an alias.
2013-12-27 08:04:00 -08:00
Unknown W. Brackets
23971e9900 Implement ioctl command 0x01020002. 2013-12-27 08:03:59 -08:00
Unknown W. Brackets
dbf86187e3 Add Ioctl() to IFileSystem, cleaner. 2013-12-27 08:03:59 -08:00
Unknown W. Brackets
8c34f5f78e Implement ioctl command 0x01d20001. 2013-12-27 08:03:58 -08:00
Unknown W. Brackets
d916ce7658 Correct result for sceIoRead type ioctls. 2013-12-27 08:03:58 -08:00
Unknown W. Brackets
76d0cd444e Implement ioctl command 0x01f100a6. 2013-12-27 08:03:57 -08:00
Unknown W. Brackets
2433ff5f04 Implement ioctl command 0x01f30003.
Wonder if this will fix anything, it was silently not reading before.
2013-12-27 08:03:57 -08:00
Henrik Rydgård
7a643f3c78 Merge pull request #4918 from unknownbrackets/memblocks
Allow memblocks to be used with partition funcs
2013-12-27 02:26:49 -08:00