Commit graph

140 commits

Author SHA1 Message Date
Unknown W. Brackets
81f7103e0b Use *_le for the sceKernel* funcs. 2013-07-25 08:04:34 -07:00
Unknown W. Brackets
3decbba334 Correctly output NULs, etc. (i.e. UTF-16.) 2013-07-21 12:56:55 -07:00
mattweb28
b38e6dd02d fix ioctl cmd=0x01020004 2013-07-08 15:11:58 +08:00
tpu
3ac9aa9cfb bug fix about ISOfilesystem and sceIo 2013-07-06 23:42:49 +08:00
Lioncash
b823bb7543 Change PSPPointer function name Valid to IsValid.
Improves readability and shows intent better.
2013-06-25 09:51:39 -04:00
Unknown W. Brackets
c8ee2c0739 sceIoRename() ignores any path on dest.
Also, change the interface so it can return an error code.  Currently not
returning perfect error codes but it's better than before.
2013-06-23 20:09:44 -07:00
Unknown W. Brackets
933c8abb55 Check kernel object types when looking up ids.
Some games misuse it, need to return an error.
2013-06-18 23:54:29 -07:00
Unknown W. Brackets
2bc3da5b94 Return fds in the range 0 - 64 like the PSP.
Some games appear to check ids are valid specifically by checking this
range.  Reproduced on a PSP.
2013-06-16 10:07:49 -07:00
Unknown W. Brackets
c1ed09949d Initial impl of sceIoGetFdList(). 2013-06-16 09:11:19 -07:00
Unknown W. Brackets
4c730a60c9 Eat cycles in devctl 0x02425823, fix params.
I can't seem to reproduce a way to change its return value, though...

Significant performance improvement for Star Ocean, especially in intro.
2013-06-08 18:03:28 -07:00
Unknown W. Brackets
7687bccce6 Try to avoid possible global var name conflicts. 2013-05-31 23:14:28 -07:00
The Dax
cda9881cb9 Fix some logging typos and a comment typo. 2013-05-31 12:59:39 -04:00
The Dax
e4e642b2a7 Fix Call of Duty Road to Victory black screen caused by Pangya fix. It was just a simple oversight. 2013-05-30 23:02:53 -04:00
The Dax
370b50a328 Fix Pangya: Fantasy Golf hang when going in-game via emulating SCE_KERNEL_ERROR_NOCWD correctly, or at least, more correctly than it was before. 2013-05-30 16:15:15 -04:00
Unknown W. Brackets
c9e931e362 Save the state of the PGD info struct.
Not touching any of its internals.
2013-05-27 23:59:03 -07:00
The Dax
dd7c66cd49 Implement unknown SceIOIoCtl command 0x1f30003. It always returns 1. Pangya Fantasy Golf seems to use it, and implementing it makes the game boot, but it still has serious graphical issues. 2013-05-20 16:49:26 -04:00
Unknown W. Brackets
ded3fb5e12 Add reporting to a bunch of unimpl functions.
Also some comment/logging fixes along the way.
2013-05-19 22:12:37 -07:00
Unknown W. Brackets
f5eb684abc Return an error when there's no async op.
And generally improve error codes for async io poll/wait funcs.

Fixes #1790.
2013-05-12 17:28:07 -07:00
Unknown W. Brackets
8e1193feba Fail with an error in sceIoChdir for invalid dev. 2013-05-12 16:51:08 -07:00
Henrik Rydgård
c84ca2968e Merge pull request #1626 from tpunix/master
DLC bug fix
2013-05-02 03:30:48 -07:00
tpu
f3d6cffd72 npdrmLseek/npdrmRead BUG fix 2013-05-02 17:47:34 +08:00
raven02
bbff79a894 Several CMD update in sceIoDevctl() 2013-04-28 19:39:47 +08:00
tpu
641b78ab67 add DLC support 2013-04-20 13:51:40 +08:00
Unknown W. Brackets
c1d72b4210 Fix sceIoCloseAsync so it closes on wait.
Oops.
2013-04-16 00:16:22 -07:00
Unknown W. Brackets
b03b88b7ed Fix small reporting typo. 2013-04-13 00:36:32 -07:00
Unknown W. Brackets
ff8c128d20 Trim the newline at the end of stdout output.
Makes the log a bit easier to read.
2013-04-09 23:26:27 -07:00
Unknown W. Brackets
57963a3de3 sceIoRead/Write doesn't work without dispatch.
Except stdout/etc.
2013-04-06 17:04:19 -07:00
Unknown W. Brackets
2a9354dc1a IO waits don't work without dispatch enabled. 2013-04-06 17:04:19 -07:00
Unknown W. Brackets
f380075e2a Only OpenAsync works with dispatch disabled.
And it even re-enables dispatch.
2013-04-06 17:04:18 -07:00
Unknown W. Brackets
0d4b0a1246 Track unknown sceIoIoctl commands better.
Also an mpeg stub.
2013-03-29 01:54:04 -07:00
Henrik Rydgard
e7027b6c9c win32: Add menu option to open memory stick directory 2013-03-28 20:19:10 +01:00
Unknown W. Brackets
e4223dbcb0 Simplify adding report messages, add a bunch more. 2013-03-26 00:54:00 -07:00
Henrik Rydgard
576d07719c Add a few stubs 2013-03-24 22:06:58 +01:00
raven02
a64f4839be Add ERROR_PGD_INVALID_HEADER , 0x80510204 2013-03-19 07:53:21 +08:00
Henrik Rydgard
e20e5f49b9 Stub sceIoChstat and an icache invalidate function 2013-03-16 09:39:22 +01:00
Henrik Rydgard
8021e49c7f Apply tpunix' PGD fix from #998 2013-03-16 09:15:11 +01:00
Unknown W. Brackets
6e54ce5551 Fix some minor warnings. 2013-03-15 00:45:47 -07:00
raven02
a974c65ad1 Set Log level to ERROR when invalid PGD file found 2013-03-13 17:04:13 +08:00
Unknown W. Brackets
34865fee34 Remove io debugging code accidentally left in. 2013-03-12 01:00:15 -07:00
Unknown W. Brackets
f1e324da47 Add delays to sceIoDread(), which needs them.
Only the first time though.
2013-03-11 02:50:36 -07:00
Unknown W. Brackets
2b62bf5181 Add io delays to some misc io funcs. 2013-03-11 02:50:36 -07:00
Unknown W. Brackets
7726b95037 Reschedule / async in sceIoWrite as well. 2013-03-11 02:50:35 -07:00
Unknown W. Brackets
0fe7f3e8d3 Add delays for open, close, and getstat.
Actual delays for these seem much higher, but not sure.
2013-03-11 02:50:34 -07:00
Unknown W. Brackets
fff8d0c7c4 Add a memory stick devctl to check writable.
Final Fantasy 4 seemed to want this.
2013-03-11 02:50:34 -07:00
Unknown W. Brackets
f8d9846179 Add a few more umd devctl commands.
With help from jpcsp and testing.
2013-03-11 02:50:33 -07:00
Unknown W. Brackets
4a18ace1aa Cleanup some sceIoDevctl() umd commands.
Based on tests.
2013-03-11 02:50:33 -07:00
Unknown W. Brackets
70cbe30e45 Clean up sceIoIoctl() async and add delay.
A low estimate based on tests.
2013-03-11 02:50:33 -07:00
Unknown W. Brackets
0b9c248856 Reschedule in sceIoLseek() etc.
Also make it so we can return u64s easily in places...
2013-03-11 02:50:32 -07:00
Unknown W. Brackets
feba421566 Make sceIoLseekAsync() etc. work better + cleanup.
No need to have this logic duplicated.
2013-03-11 02:50:32 -07:00
Unknown W. Brackets
0b097fb67b Make async IO actually wait for completion. 2013-03-11 02:50:32 -07:00