Commit graph

5317 commits

Author SHA1 Message Date
Arthur Blot
e4ce0592c1 Make previous code cleaner 2013-01-02 19:42:15 +01:00
Arthur Blot
73de0e9494 Consider blacklisted modules as fake 2013-01-02 19:42:15 +01:00
Arthur Blot
1519600441 Implemented sceKernelLoadModuleByID, better logs 2013-01-02 19:42:15 +01:00
Henrik Rydgard
d657fc9fa2 Disable clearing all the GPU's cache on sceKernelCacheWritebackAll, the performance penalty was too big. 2013-01-02 13:50:52 +01:00
Henrik Rydgård
6717359270 Merge pull request #310 from unknownbrackets/libc
Libc memcpy/etc. fixes
2013-01-02 01:56:05 -08:00
Henrik Rydgård
f8f691be78 Merge pull request #311 from unknownbrackets/more-dcache
Do more cache invalidation, fix return values
2013-01-02 01:55:17 -08:00
Unknown W. Brackets
1c156784b6 Be more deterministic about the time.
This way, if a state is loaded, the game doesn't know.
Also, if the host is slow/sped up, it won't get out of sync.
2013-01-02 01:09:44 -08:00
Unknown W. Brackets
5bd059a128 Do more cache invalidation, fix return values. 2013-01-02 00:54:23 -08:00
Unknown W. Brackets
4a713309a3 Make some libc-like funcs behave more like hw. 2013-01-02 00:35:31 -08:00
Unknown W. Brackets
62b8b9af75 Fix sceKernelLibcTime() when time_t is 64 bit. 2013-01-01 21:27:18 -08:00
Henrik Rydgård
4a44072641 Merge pull request #299 from raven02/sdk-fix
Add sceKernelSetCompiledSdkVersion401_402 (suggested by Xele02) and wrap...
2013-01-01 04:09:30 -08:00
Henrik Rydgård
5d34aad219 Merge pull request #303 from unknownbrackets/font-fix
Fix fake sceFontGetCharGlyphImage() overflowing
2013-01-01 04:03:37 -08:00
Unknown W. Brackets
305c41c932 Prevent duplicate waiting threads in sema/mutex.
If something did a tight loop of a short wait/timeout, it might end
up getting on the waitingThreads list multiple times.

Eventually this caused a massive performance problem.
2012-12-31 23:23:52 -08:00
Unknown W. Brackets
daa31bb02d Fix fake sceFontGetCharGlyphImage() overflowing. 2012-12-31 21:46:41 -08:00
raven02
8cb87924b3 Add sceKernelSetCompiledSdkVersion401_402 (suggested by Xele02) and wrapped two unload moudles 2013-01-01 09:20:01 +08:00
Henrik Rydgård
cff6d155f1 Add a null check. Make vtimer log ERROR until it works. 2012-12-31 12:18:53 +01:00
raven02
4a00bbbc33 Add sceKernelSetCompiledSdkVersion500_505/507 2012-12-31 17:12:14 +08:00
Henrik Rydgård
1ea34bb6e8 Stub out all of VTimer. 2012-12-30 21:30:33 +01:00
Unknown W. Brackets
62b1fe0fb1 sceIo doesn't have to do emu output, headless can. 2012-12-30 00:00:58 -08:00
Unknown W. Brackets
ade0f4103b Don't let native's log output spoil tests.
Also, log to stderr, makes more sense anyway.
2012-12-29 23:21:56 -08:00
Unknown W. Brackets
03d9157d26 Draw offscreen in headless (Windows only.) 2012-12-29 23:21:55 -08:00
Unknown W. Brackets
7bd16a7f97 Add warnings when GE callbacks are misused. 2012-12-29 15:55:05 -08:00
Unknown W. Brackets
97bdaf5dd2 Add support for selecting the GE callback per list.
Not sure if interrupts are right, but this should be more right.
2012-12-29 15:55:05 -08:00
Unknown W. Brackets
2ed0902ae2 Cleanup sceGe stubs and void return values. 2012-12-29 15:43:17 -08:00
Henrik Rydgård
acd1457308 Merge pull request #288 from unknownbrackets/savestates
Save more of the GPU's state, fix a crash
2012-12-29 15:34:57 -08:00
Unknown W. Brackets
8c98c7b141 Reverse the analog Y for everyone.
Verified XInput is still happy this way.
2012-12-29 13:01:10 -08:00
Unknown W. Brackets
589916fca2 Move GPU state to sceDisplay, reset GPU on load. 2012-12-29 12:49:49 -08:00
Unknown W. Brackets
ea9f0be28a Save more of the GPU's state, fix a crash.
Well, ReapplyGfxState() seems kinda dangerous now...
2012-12-29 11:41:33 -08:00
Unknown W. Brackets
cb0538c4db Can't just do that, might get the vtbl. Arg. 2012-12-29 03:19:13 -08:00
Unknown W. Brackets
0edbcdc955 Fix some missing things / bugs in save states. 2012-12-29 02:56:56 -08:00
Henrik Rydgård
ec080eb2b6 Merge pull request #281 from unknownbrackets/savestates
Savestate tweaks (gzip, Windows cli/UI cleanup)
2012-12-29 00:47:09 -08:00
Unknown W. Brackets
e03044b241 Fix a crash with FPL objects in save states. 2012-12-28 23:30:43 -08:00
Unknown W. Brackets
ac2768640a Add save stating changes to mediaengine.
Also makes it compile again.
2012-12-28 23:29:24 -08:00
Unknown W. Brackets
6f9f9e1c98 Merge branch 'master' into mediaengine.
Note: doesn't compile, just fixes conflicts.

Conflicts:
	Core/HLE/sceKernel.cpp
	Core/HLE/sceKernelThread.cpp
	Core/HLE/sceKernelThread.h
2012-12-28 22:32:56 -08:00
Florent Castelli
6eec4f5d7f Move display list management to common GPU class 2012-12-29 03:11:35 +01:00
Henrik Rydgård
95c4e0b9c4 Quick build fix for gcc 2012-12-28 23:33:00 +01:00
Unknown W. Brackets
269a776363 Add a simple devctl to verify the state.
Could do more, but this should be useful.
2012-12-28 14:13:34 -08:00
Unknown W. Brackets
fd2f609367 Save the savedata and other dialog state.
Although, hopefully it wouldn't be running anyway.
2012-12-28 13:55:31 -08:00
Unknown W. Brackets
bcecd881b1 Savestate cleanup + be more careful with vectors.
For some reason I debugged it going into std::string so I just made
them all more explicit which fixed everything.
2012-12-28 13:55:31 -08:00
Unknown W. Brackets
644e6b615c Fix memory leak in msgpipe when loading state. 2012-12-28 13:55:31 -08:00
Unknown W. Brackets
e665618891 Fix kernel object loading (ouch) from save states.
Also a fix to SAS voices not saving right.
2012-12-28 13:55:30 -08:00
Unknown W. Brackets
5999fac10d Start saving the state of the GPU.
Not 100% sure this is all that's needed, but let's try it.
2012-12-28 13:55:30 -08:00
Unknown W. Brackets
19aaca2705 Start save stating audio, plus minor fixes. 2012-12-28 13:55:29 -08:00
Unknown W. Brackets
042e515037 Warniof the sceIo defAction is used when stating.
This is broken anyway so skipping for now.
2012-12-28 13:55:28 -08:00
Unknown W. Brackets
cd1d4367bf Save state of a bunch of small modules. 2012-12-28 13:55:28 -08:00
Unknown W. Brackets
4b39e39455 Start save stating the filesystem state.
Plus minor fixes and at least an attempt to make states the same
on both 32 and 64 bit.
2012-12-28 13:55:27 -08:00
Unknown W. Brackets
b81899876f Don't leak MipsCall objects. 2012-12-28 13:55:26 -08:00
Unknown W. Brackets
a8c9c31e16 Add a registry for actions so they can be stated.
Also add late loaders to ensure things are hooked up properly.
2012-12-28 13:55:26 -08:00
Unknown W. Brackets
f5dd7f03e8 Change threadqueue and currentThread to be SceUIDs.
hmm, kind of a big change.  Tried to add some checks to be safe.
2012-12-28 13:55:25 -08:00
Unknown W. Brackets
db787d266d Require interrupt handlers to be registered.
This allows it to be save stated sanely.
2012-12-28 13:55:25 -08:00