Commit Graph
6340 Commits
Author SHA1 Message Date
Unknown W. Brackets f4bc5b1ec6 Return error in sceAtracDecodeData() on bad id.
Fixes #2428.
2013-09-08 09:56:16 -07:00
Unknown W. Brackets b7a2a92ebe Improve sceAtracSetData() error handling. 2013-09-08 09:56:15 -07:00
Unknown W. Brackets c3839a53e5 Fix some minor warnings. 2013-09-07 22:40:08 -07:00
Unknown W. Brackets 08b41df6a2 Change a few more log types. 2013-09-07 13:31:14 -07:00
Henrik Rydgard 8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Henrik Rydgard 324cde5a79 Let's actually use the log category mechanism. A first step. 2013-09-07 21:19:21 +02:00
Unknown W. Brackets 1eb858602c Add io async wait callback handlers. 2013-09-07 11:22:48 -07:00
Unknown W. Brackets d8d8d3b0ec Use a different wait type for async io. 2013-09-07 11:04:42 -07:00
Unknown W. Brackets f35b164d11 Refactor wait verification a bit in kernel waits. 2013-09-07 10:54:00 -07:00
Unknown W. Brackets 46b52ca552 Wake up waiting threads on file delete. 2013-09-07 10:53:59 -07:00
Unknown W. Brackets cddfd2f3b2 Allow separate threads to wait on async io. 2013-09-07 10:53:59 -07:00
Henrik Rydgard 78d3ee3d6a Misc cleanup, mostly logging code 2013-09-07 13:01:19 +02:00
Henrik Rydgard 7e37e183ed Wrap more adhoc functions 2013-09-07 11:06:28 +02:00
Henrik Rydgard 3b323c4176 Add a bunch of empty adhoc functions 2013-09-07 01:53:51 +02:00
Henrik Rydgard cc8e4cb8fe Split out sceNetAdhoc* into a separate file from sceNet. 2013-09-07 00:55:42 +02:00
Unknown W. Brackets a9a42b315c Fix a bad comparison, duh. 2013-09-06 01:13:55 -07:00
Unknown W. Brackets c93268fdd3 Fix some minor warnings. 2013-09-06 01:13:45 -07:00
Unknown W. Brackets e6f6564a32 Dumb typo. 2013-09-05 23:10:29 -07:00
Unknown W. Brackets 6804f239b4 sceAudioOutputPannedBlocking() bad volume check. 2013-09-05 01:01:57 -07:00
Unknown W. Brackets 3ff6bc6060 Don't block a null enqueue if already empty. 2013-09-05 00:57:53 -07:00
Unknown W. Brackets 19c4c20f46 Correct sceAudioOutput2GetRestSample().
Should be samples, not bytes.
2013-09-05 00:50:20 -07:00
Lioncash 1583bcb499 Fix a null check in sceKernel.cpp
Since CreateByIDType() can return null, it seems odd that this would be after the statement "pool[i]->uid = i + handleOffset;"
2013-09-04 14:19:32 -04:00
Lioncash 02ec457cc9 Fix a null check 2013-09-04 14:07:52 -04:00
Henrik Rydgård 34f9947ad0 Merge pull request #3606 from unknownbrackets/callbacks
Wait func docs, sceKernelCreateCallback() cleanup, small refactor
2013-09-04 01:55:28 -07:00
Unknown W. Brackets a8f100c94f Add vblank wait callback handlers.
Turns out it's a deadline to wake up by, which makes sense.

sceDisplayWaitVblankStartMultiCB 10
   -> Callback
      sceDisplayWaitVblankStartMultiCB 2
      +2 vblanks
   <- Thread
+8 more vblanks
2013-09-03 23:35:39 -07:00
Unknown W. Brackets 7f1a6154b2 Check if vblank waits were released before waking. 2013-09-03 23:26:23 -07:00
Unknown W. Brackets 543df7ca7a Refactor wait timeouts.
Also, make them not write the timeout ptr if the thread stopped waiting.
Feels safer.
2013-09-03 22:32:22 -07:00
Unknown W. Brackets 2a7e9a5afc Cleanup sceKernelCreateCallback().
And tweak sceKernelReferCallbackStatus().
2013-09-03 22:18:15 -07:00
Unknown W. Brackets e53e842b3b Add some documentation to KernelWaitHelpers. 2013-09-03 22:16:24 -07:00
shenweip f74aa2913e Typo 2013-09-04 11:35:16 +08:00
shenweip c05100e0e3 Add sceHeap,some games will call this.
e.g. Linear ModeSenritsu no Stratus
2013-09-04 11:05:14 +08:00
Unknown W. Brackets 4ac0f7a345 Handle it better when umd waits trigger during cbs. 2013-09-03 01:21:52 -07:00
Unknown W. Brackets b20bb3b609 Refactor down the begin/end callback stuff. 2013-09-03 01:21:52 -07:00
Unknown W. Brackets 1bf974aff6 Implement VPL/FPL callback handlers.
Smells like time to refactor, there are less differences than I expected.
2013-09-03 01:21:51 -07:00
Unknown W. Brackets 3903f27dfd Add handlers for callbacks during mbx waits. 2013-09-03 01:21:51 -07:00
Unknown W. Brackets 648dd5f154 Don't allow sceKernelWakeupThread() on cur thread.
I don't know why you wouldn't allow this, but the PSP firmware doesn't.
2013-09-03 01:21:50 -07:00
Unknown W. Brackets 722b878428 Fix sceKernelReferThreadRunStatus() layout.
Was missing size, so all fields were wrong.
2013-09-03 01:21:50 -07:00
Unknown W. Brackets 8bf1ef2616 Add handlers for delay and sleep callbacks. 2013-09-03 01:21:49 -07:00
Unknown W. Brackets 6e5426a528 Spend a lot less time calculating the hcount.
Tiny loss in precision, can't even notice.  Cuts time significantly in
Valkyrie Profile.
2013-09-03 00:50:21 -07:00
Unknown W. Brackets 994e2b3e5c Implement sceDisplayAdjustAccumulatedHcount().
And also make sure sceDisplayGetAccumulatedHcount() works right.
2013-09-03 00:50:20 -07:00
Unknown W. Brackets db0c35a86d Start the Hcount at the beginning of vblank. 2013-09-03 00:49:17 -07:00
Henrik Rydgard 9dcd67fc31 Pass the new sha1/md5 test. 2013-09-03 00:36:55 +02:00
Unknown W. Brackets 2a478c26ca Fix mp3 bit rate info in sceMp3GetBitRate(). 2013-09-01 17:22:19 -07:00
Unknown W. Brackets fe1f4d53c6 Return an error on bad SAS sample rate.
Also reorder the types to fit the PSP's flag values.
2013-09-01 16:59:37 -07:00
Unknown W. Brackets 8998a1b303 Don't trash a list the GE interrupt handler needs.
Even after it's marked COMPLETED, the CPU needs it to start and finish the
interrupt.  Fixes #2956, where an existing completed list was not having
its interrupt run correctly.
2013-09-01 12:39:45 -07:00
Unknown W. Brackets 7349de55d1 Fix some initialization/sprintf warnings. 2013-09-01 01:15:07 -07:00
Unknown W. Brackets a05c78f8fc Keep unknown syscall reporting the same.
Oops.
2013-09-01 00:46:48 -07:00
Unknown W. Brackets da0c9a86e5 Invalidate stubs/var imports when writing them. 2013-09-01 00:32:43 -07:00
Unknown W. Brackets 00412144c1 Get rid of the bad object errors on shutdown. 2013-08-31 18:45:05 -07:00
Unknown W. Brackets 842e972a36 Unresolve function imports, track in loader. 2013-08-31 18:45:05 -07:00