Commit Graph
6340 Commits
Author SHA1 Message Date
papelandYannis Damigos 38a5233dd4 Fix GetBufferInfoForResetting 2013-11-11 08:49:15 +02:00
Unknown W. Brackets 879060f008 Use a CORE_POWERUP state when starting.
Otherwise, we could startup in CORE_POWERDOWN in a second game, which is
confusing.
2013-11-09 23:07:52 -08:00
Igor Calabria 33f4b44061 Moves proAdhoc extra functions to a separate file 2013-11-10 01:26:31 +00:00
Henrik Rydgard 2fe898cda8 Add comment with link to important github thread about sceSas threading 2013-11-09 02:05:28 +01:00
Henrik Rydgard a028f07951 Turn down some logging. 2013-11-08 18:52:07 +01:00
Henrik Rydgård 714754e149 sceAudio: only use the optimized volume=max path if stereo, add a TODO.
Might take care of #4470.
2013-11-07 11:50:24 +01:00
Henrik Rydgård e687b283f1 Logspam reduction 2013-11-06 10:34:56 +01:00
Igor Calabria f3f0bc231b Adds cleanup method after game exit 2013-11-05 16:36:01 +00:00
Unknown W. Brackets 859d14d3f5 Correct sceKernelIsCpuIntrSuspended().
It takes a param.  Verified by tests, it just returns what the param
means, not anything about the current state.
2013-11-04 08:03:51 -08:00
Unknown W. Brackets dfbfed7534 Oops, avoid a crash on a bad HLE func.
In the debug stats area.
2013-11-04 08:03:50 -08:00
Unknown W. Brackets 732ae13ebb Fast path CallSyscall where possible.
It seems we're spending a decent amount of time there, which isn't
entirely unexpected.  We can eliminate some things easily.
2013-11-04 07:59:37 -08:00
Unknown W. Brackets baa82e0a9d Keep syscalls the same in the interpreter.
Rather than having different bugs.
2013-11-04 07:59:36 -08:00
Peter Tissen 3bd01cce31 fixes #4443 buffer underrun in the audio system 2013-11-04 14:03:36 +01:00
Henrik Rydgård b2298a9e86 Merge pull request #4420 from unknownbrackets/savestates
Enable rewind feature in UI, fix a savestate bug
2013-11-03 03:21:51 -08:00
Henrik Rydgård 3144a51e07 Merge pull request #4424 from unknownbrackets/perf
Speed up access to the current HLE thread
2013-11-03 03:13:17 -08:00
Unknown W. Brackets 348ea5b5cf Fix volume scaling for mono inputs, etc.
Fixes #4423.
2013-11-03 01:14:22 -07:00
Unknown W. Brackets d400b1a67b Keep track of the current thread obj.
To reduce overhead/improve perf.  Actually, it used to be only the current
thread object, but now it's just a cache with accessors.
2013-11-02 22:12:44 -07:00
Unknown W. Brackets 738dfc84e4 Speed up __GetCurrentThread(), it's called a lot.
This only needs to be an assertion.
2013-11-02 22:12:43 -07:00
Unknown W. Brackets f716d781b6 Retain threadend waits in savestates.
Oops, been broken since 3fb2c8f654.
2013-11-02 17:40:23 -07:00
Unknown W. Brackets c2b2b366eb Don't erase args in sceKernelLoadExec().
Suspect this will fix Kamen Rider Climax Heroes OOO.
2013-11-02 15:51:15 -07:00
raven02 98cbd90178 Regression font alignment fix 2013-11-02 20:31:39 +08:00
Henrik Rydgård abacdb1c9c Merge pull request #4344 from unknownbrackets/atrac-minor
Improve basic error checking in sceAtrac
2013-11-01 14:16:13 -07:00
Henrik Rydgård 590ad5c6df Merge pull request #4369 from unknownbrackets/deadbeef
Fill regs with 0xDEADBEEF after syscalls...
2013-11-01 14:15:53 -07:00
Henrik Rydgård ba0b9707ad Merge pull request #4218 from shenweip/Log
Change some log level.
2013-11-01 10:56:55 -07:00
Igor Calabria 2d22ccadca Fixes crash when server is not available 2013-10-30 16:19:35 +00:00
Igor Calabria 13718aed6e Changes psp ram structs to use correct int types 2013-10-30 16:10:59 +00:00
Unknown W. Brackets 1d14915d87 Fix a string pointer comparison. 2013-10-30 08:14:43 -07:00
Igor Calabria 24d2ac7c1b Uses native mutex 2013-10-30 14:56:08 +00:00
Unknown W. Brackets 8d3ba58936 Cap the buffer size in sceAtracSetDataAndGetID().
Not sure if this should be done in the others or not...
2013-10-30 07:55:47 -07:00
Unknown W. Brackets 696aa0f974 Initialize atrac context values per PSP tests. 2013-10-30 07:48:50 -07:00
Unknown W. Brackets 14cff41a9a Fix state value in atrac context with no buffer.
Unlikely games use this, but they could.
2013-10-30 07:48:50 -07:00
Unknown W. Brackets 31112d1fa1 Report and return errors for bad atrac data.
The PSP returns errors for invalid data, so we should too.
2013-10-30 07:48:49 -07:00
Unknown W. Brackets 8dcc384dba Adjust some atrac reporting/logging. 2013-10-30 07:48:49 -07:00
Unknown W. Brackets 3e0c37bb62 Return an error when no data set yet.
Specifically this happens if you sceAtracGetAtracID, but don't set any
data yet.  Games might check for it to load in data.
2013-10-30 07:48:48 -07:00
Unknown W. Brackets b7bd107956 When using a bad atrac ID, return proper errors.
Tested each func with invalid ids.
2013-10-30 07:48:48 -07:00
Igor Calabria ca2b0a9b9a Uses native functions for timing 2013-10-30 14:45:32 +00:00
Unknown W. Brackets ee57498b16 Add a setting to skip 0xDEADBEEF reg filling.
For debugging purposes.  Can't think of a better way.
2013-10-30 07:28:52 -07:00
Unknown W. Brackets 9ebaf7b68b Fill registers with 0xDEADBEEF after most syscalls.
Some, like sceMpegRingbufferPut(), we don't, since... it's complicated.
But most we do, like a real PSP does.
2013-10-30 00:47:04 -07:00
Unknown W. Brackets 04ec987448 Initialize thread regs with 0xDEADBEEF.
Also initialize the float regs to NaN.
2013-10-29 21:39:24 -07:00
Igor Calabria 2c484c9bee Adds adhoc support notes on readme, and option to load server address from config 2013-10-30 00:18:06 +00:00
Igor Calabria 0bc7dee02c Fixes time function 2013-10-29 21:39:45 +00:00
Igor Calabria 28ab767c88 Adds common sleep function, and implements ptp functions 2013-10-29 21:39:45 +00:00
Igor Calabria cce8ad050d Adds compability for packed structs on windows, and removes some redundant typedefs 2013-10-29 21:39:45 +00:00
Igor Calabria ecb1411f0f Fixes getPeerList, now it's using the correct pointer values in the struct 2013-10-29 21:39:45 +00:00
Igor Calabria 5959f5b486 Packs most of psp data structs and fixes sceNetAdhocctlGetParameter 2013-10-29 21:39:45 +00:00
Igor Calabria 47947fd3f7 adds some matching functions 2013-10-29 21:39:45 +00:00
Igor Calabria 0574e6e1d1 More functions and support for games that use the netdiag 2013-10-29 21:39:45 +00:00
Igor Calabria 553f1d4e4e Implements a bunch of adhoc functions 2013-10-29 21:39:45 +00:00
Unknown W. Brackets b71255e7b0 Optimize the case where volume is 0x8000.
When left and right volume are both 0x8000, which is the most common, we
can just do a memory copy which is faster.

Also, we can use pushPointers on big endian, probably still faster.
2013-10-29 08:24:55 -07:00
Henrik Rydgård 0e54e24b24 Revert "Use swap code from native instead. Remove all other versions of it."
Broke movie playback.

This reverts commit 9fcb08a326.

Conflicts:
	native
2013-10-28 17:24:03 +01:00