Commit graph

174 commits

Author SHA1 Message Date
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
Unknown W. Brackets
2b8cb0011c sceIoRead() always reschedules, and handle async.
Tried to estimate some rough timing.  Fixes Unchained Blades.
2013-03-11 02:50:31 -07:00
Unknown W. Brackets
99240914ea sceIoLseek() should sign extend error codes.
< 0 means error, and 0x0000000080000000 is not < 0.
2013-03-11 02:50:31 -07:00
Unknown W. Brackets
da7dfb07c3 Correctly notify callbacks on sceIoCloseAsync().
And remove defAction, it was the wrong way.
2013-03-11 02:50:31 -07:00
Unknown W. Brackets
56d369b4d7 Tests show async result is a sign-extended s64.
Errors become fffffff80010002, etc.
2013-03-11 02:50:30 -07:00
Unknown W. Brackets
60e6fa514a Start with sceIoOpenAsync() cleaning up async io.
Now it actually fires the callback as necessary.  Some games care.
2013-03-11 02:50:30 -07:00
Henrik Rydgard
6702f0c78c Tiny optimization and bugfix 2013-03-07 00:47:48 +01:00
Henrik Rydgard
a0cf3b9151 Restore a log statement, #pragma once. 2013-03-07 00:27:00 +01:00
Henrik Rydgard
57d4544ef4 Basic testrunner for Android.
Running it as-is reveals that clo and rotrv are broken in ARMJIT.
2013-03-07 00:10:53 +01:00
Unknown W. Brackets
e6375fe84d Fix initialization problems in sceIo.
These were making savestates unstable.
2013-03-03 16:05:05 -08:00
Henrik Rydgård
2211711164 Merge pull request #845 from raven02/master
Put PPGeDraw into CalculateFPS() and add enableColorDoubling alias
2013-03-03 00:42:50 -08:00
raven02
b862841dd4 Put PPGeDraw into CalculateFPS() and add enableColorDoubling alias 2013-03-03 15:33:03 +08:00
Unknown W. Brackets
a3f93ed203 Fix some printf size warnings, signed warnings. 2013-03-02 15:34:15 -08:00
Henrik Rydgard
aa06c1452e Allow mounting VFS directories. Used to provide flash0 from within APK on Android. 2013-02-27 17:41:40 +01:00
Henrik Rydgard
ba0362d817 PGF font support. Mostly an adaptation and cleanup of JPCSP's font system. 2013-02-27 17:41:39 +01:00
raven02
a569fd4a18 Add INFO_LOG for PGD DRM decryption 2013-02-25 23:31:32 +08:00
tpu
25a54edc49 add pgd_close, match with pgd_open 2013-02-24 20:19:54 +08:00