Commit Graph

3956 Commits

Author SHA1 Message Date
Henrik Rydgard
c845da2887 Switch System_GetName to System_GetProperty 2013-09-04 11:31:40 +02: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
Henrik Rydgård
a7e00568b7 Merge pull request #3563 from unknownbrackets/audio-minor
More error handling in sas, bitrate info fix in mp3
2013-09-02 07:40:16 -07: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
Kingcom
5fc293287a Typo... 2013-09-02 01:50:43 +02:00
Kingcom
33be3da057 Try to detect if someone tries to open a PSX ISO 2013-09-02 01:49:15 +02:00
Henrik Rydgård
63e4b1542f Merge pull request #3554 from unknownbrackets/ge-minor
Don't trash a list the GE interrupt handler needs
2013-09-01 15:08:18 -07:00
Henrik Rydgård
2bc373eaa0 Merge pull request #3558 from unknownbrackets/reporting
Disable reporting w/ "Read Framebuffers" and refresh UI on lang change
2013-09-01 14:58:09 -07:00
Unknown W. Brackets
a95264ad41 Small warning fixes in MIPSAsm. 2013-09-01 13:38:42 -07:00
Unknown W. Brackets
c0e54735f5 Disable reporting when copy framebuffer is used.
Causes too much noise.  Also, use a proper interface to enable/disable it.
This should prevent future problems with accidentally enabling it.
2013-09-01 12:57:39 -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
The Dax
cd40856914 Do some additional checks on what kind of eboot it is before trying to boot it. 2013-09-01 13:31:10 -04:00
Unknown W. Brackets
8d537f014f Fix some const char * conversion warnings. 2013-09-01 10:25:20 -07:00
Sacha
1189f10397 Buildfix (a few platforms) 2013-09-01 21:51:06 +10:00
Henrik Rydgård
c05a2b652e Merge pull request #3545 from unknownbrackets/warnings
Warning fixes
2013-09-01 01:34:59 -07:00
Kingcom
46c9142406 Correct move pseudo opcode 2013-09-01 10:23:12 +02:00
Kingcom
2a56694626 Display proper error messages when assembling failed 2013-09-01 10:21:05 +02:00
Unknown W. Brackets
538a4c064c Add a note so as not to forget. 2013-09-01 01:15:08 -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
b558189c37 Just invalidate blocks on ClearCacheAt().
This makes it safe to call from a jitted syscall, etc.
2013-09-01 00:32:43 -07:00
Unknown W. Brackets
14bcca1f53 Fix InvalidateICache() breaking binary searching. 2013-09-01 00:32:42 -07:00
Unknown W. Brackets
62ff431e3a Include the PPC jit in the project.
So it's easier to find when refactoring.
2013-09-01 00:32:42 -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
Unknown W. Brackets
dde39bd956 Optimize a bit by checking module names. 2013-08-31 17:45:17 -07:00
Unknown W. Brackets
33e001f017 Unexport var symbols when destroying modules.
The problem with a global list is that an unloaded module with unresolved
imports will get garbage written in.  This should be safer, and hopefully
not slower.

Next up: func imports.
2013-08-31 17:31:30 -07:00
Unknown W. Brackets
9311d405e9 Centralize and track imports/exports.
So that we can "unresolve" them.
2013-08-31 17:00:08 -07:00
Henrik Rydgård
42ec8bc3ef Merge pull request #3537 from unknownbrackets/utility-minor
Return wrong dialog type in screenshot/gamesharing
2013-08-31 14:44:35 -07:00
Unknown W. Brackets
08225cad23 Return wrong dialog type in screenshot/gamesharing.
Should at least reduce reports of these failing, and give us better info.
May also work more correctly.
2013-08-31 14:42:55 -07:00