163 Commits

Author SHA1 Message Date
Henrik Rydgard
e37a1fb1d3 Add internal 2D drawing library that goes through the Ge emulation for portability.
To be used for things like sceUtility* and other overlays like FPS and stats.
2012-11-18 13:04:49 +01:00
Henrik Rydgard
7720dc3f60 Various warning, logging, jit fixes 2012-11-17 19:56:28 +01:00
Henrik Rydgard
449f56d6f8 Fix analog stick stuck in Up 2012-11-17 19:23:05 +01:00
Henrik Rydgard
d239f4ece1 Fix tests hanging, after the audio rewrite 2012-11-17 18:08:10 +01:00
Henrik Rydgard
9165c0b3a9 Add zoom setting to Windows version. Doesn't work while playing. 2012-11-17 17:46:05 +01:00
Henrik Rydgard
64e476c199 Merge branch 'unknownbrackets-sema-cleanup' 2012-11-17 15:06:48 +01:00
Henrik Rydgard
423bba5d8d Some optimization and minor fixes 2012-11-17 15:06:10 +01:00
Henrik Rydgard
184d5b9443 Merge branch 'sema-cleanup' of https://github.com/unknownbrackets/ppsspp into unknownbrackets-sema-cleanup
Conflicts:
	pspautotests
2012-11-17 15:05:30 +01:00
Henrik Rydgard
5a48578a12 Rewrite audio line output. Now deterministic (from the game's POV) and smoother. 2012-11-17 14:20:59 +01:00
Unknown W. Brackets
157858819b Additional semaphore fixes with updated tests. 2012-11-17 01:43:01 -08:00
Henrik Rydgård
509ae819ab Merge pull request #54 from unknownbrackets/sema-cleanup
Semaphore func cleanup
2012-11-16 02:33:09 -08:00
Unknown W. Brackets
2e9e61dfc6 CancelSema: adjust scheduling to match PSP. 2012-11-16 01:50:26 -08:00
Unknown W. Brackets
8517fbe761 PollSema: don't allow values <= 0. 2012-11-16 01:41:54 -08:00
Unknown W. Brackets
71e57043e8 SignalSema: throw an error on overflow.
This is what the PSP does.
2012-11-16 01:32:00 -08:00
Unknown W. Brackets
dd14450424 CreateSema: Truncate and validate like the PSP. 2012-11-16 01:26:04 -08:00
Unknown W. Brackets
0ab19c18e5 Wrap sceKernelCreateSema(). 2012-11-16 00:06:44 -08:00
Unknown W. Brackets
4191d40187 Add notes about PRIORITY attribute.
Not supported yet.
2012-11-15 23:55:23 -08:00
Henrik Rydgard
2bed15f122 The mystery VFPU op turned out to be vmax. Bug in decoding table, sigh. 2012-11-15 13:19:04 +01:00
Henrik Rydgard
90654bcd0e VFPU fixes, misc 2012-11-15 10:15:40 +01:00
kev :)
d0fdd4c172 Make sceUtility test pass (assuming the last line is wrong)
It has to be more correct than before even if its still not 100%
2012-11-14 23:05:58 +00:00
kev :)
3764f48bee Make the directory test pass
The test for this might need to be extended to see what happens with
multiple sub folders and large files, and i do question the expected
size of '..'
2012-11-14 21:24:57 +00:00
Henrik Rydgård
1e854170e4 Merge pull request #50 from tmaul/master
Some stubs and some stub changes
2012-11-14 11:11:09 -08:00
Henrik Rydgard
7c0664ffc7 vcmp should only modify the affected bits in CC. The cpu/vfpu/base/vfpu test now works. 2012-11-14 20:08:18 +01:00
kev :)
0753643dc4 More stubs
And one possible hack..
2012-11-14 18:52:06 +00:00
kev :)
0b1f2f59c4 A few more stubs
Stubbed out some missing inet functions used by a couple of games
2012-11-14 18:33:18 +00:00
kev :)
435c69196a This is used by a couple of games.
stubbed out to make them shutup.
2012-11-14 18:16:13 +00:00
Unknown W. Brackets
306274ffdf Fix iterator in sceKernelSignalSema().
I'm sure we dont' want to change s.
2012-11-14 07:42:21 -08:00
Unknown W. Brackets
5c69d6169f Use WriteStruct() in sceKernelReferSemaStatus(). 2012-11-14 00:13:17 -08:00
Henrik Rydgard
059bb3c40c Buildfix, bugfix. Fixes issue 46. 2012-11-13 20:10:48 +01:00
Henrik Rydgard
1ba3b005cf Merge branch 'master' of github.com:hrydgard/ppsspp
Conflicts:
	pspautotests
	test.py
2012-11-12 20:55:11 +01:00
Henrik Rydgård
e86f19452e Merge pull request #44 from tmaul/master
Default to english psp emulation
2012-11-12 11:00:16 -08:00
Henrik Rydgård
d7230a1482 Merge pull request #43 from unknownbrackets/master
Make threads/semaphores pass, fixing sceKernelStartThread
2012-11-12 10:59:25 -08:00
Diogo Franco (Kovensky)
7e7e9a0452 Add a class for keyboard input
Removes the windows-specific hack from sceCtrl
to read keyboard input and instead add a hack to
PPSSPPWindows.

The input mapping is still hardcoded and is the same
as it was in sceCtrl.

Add an std::list to WindowsHost that, curretly, contains
a hardcoded list of preferred `InputDevice`s. Devices
are tried in-order until one of them reports success.
Xinput is preferred over Keyboard. Keyboard always
returns success. Pointers are stored in the std::list
for polymorphism.

Change XinputDevice to report failure as soon as a
device can't be queried, instead of only a frame later.
2012-11-12 17:49:40 +00:00
kev :)
43b90527d4 Default to english
Default to english. Needs to be menu/config driven really...
2012-11-12 17:18:20 +00:00
Unknown W. Brackets
d1fd16ecba sceKernelStartThread(): skip argPtr for 0 args.
This makes threads/semaphores pass, so adding to passing list.
Depends on an update to pspautotests.
2012-11-12 08:16:16 -08:00
Unknown W. Brackets
f37dd7fefe Fix $v0 on wrong thread in semaphore funcs.
Need to RETURN() prior to switching threads or it will write to the
wrong thread, oops.
2012-11-12 07:24:40 -08:00
Henrik Rydgard
d485b76e11 Jit fixes, test update 2012-11-12 14:35:10 +01:00
Unknown W. Brackets
a0cacc7eb9 Merge remote-tracking branch 'upstream/master' 2012-11-12 01:35:38 -08:00
Henrik Rydgård
93b13a2ac8 Merge pull request #41 from unknownbrackets/thread-fix1
Fix crash in sceKernelExitDeleteThread()
2012-11-12 00:21:33 -08:00
Unknown W. Brackets
808c7e9807 Fix crash in sceKernelExitDeleteThread().
0 means current thread, seen in Wild Arms XF.
Doesn't make the game run but at least it doesn't segfault.
2012-11-11 20:09:03 -08:00
Unknown W. Brackets
33559d23db sceKernelDeleteSema() not returning 0?
Seems to be a bug outside this func, adding a comment at least.
2012-11-11 19:03:37 -08:00
Unknown W. Brackets
b58032039b Cleanup sceKernel semaphore funcs.
Remove some duplication of code so it's cleaner.
2012-11-11 18:54:06 -08:00
Unknown W. Brackets
a69fd56573 Implement sceKernelCancelSema() based on jpcsp.
Don't have any tests/users, but this jpcsp's behavior seems sane.
2012-11-11 18:33:13 -08:00
Unknown W. Brackets
e7b6487c4e Wrap sceKernel DeleteSema and CancelSema.
Also fix copy/paste mistake from SignalSema func.
2012-11-11 18:30:13 -08:00
Unknown W. Brackets
70809bf1f5 Make sceKernelDeleteSema() resume waiting threads.
This makes threads/semaphores *almost* pass.
It's now failing from sceKernelStartThread() or something, though.
2012-11-11 18:10:33 -08:00
Unknown W. Brackets
deab1c21b7 Fix sceKernelSignalSema().
Handle numWaitThreads and currentCount more correctly.
Well, I'm not 100% sure it's totally right now but it matches the test.
2012-11-11 17:59:15 -08:00
Unknown W. Brackets
8e2fff97bf Wrap a few semaphore sceKernel* funcs. 2012-11-11 17:57:35 -08:00
Unknown W. Brackets
3acca0f941 Fix crash in sceKernelReferSemaStatus.
This was crashing threads/semaphores, and also PQ2 (and maybe other games.)
Note: threads/semaphores still not passing.
2012-11-11 17:05:44 -08:00
Diogo Franco (Kovensky)
d2a0fcc38e Wrappers for LoadExecForUser 2012-11-12 00:43:48 +00:00
Diogo Franco (Kovensky)
af74d30790 Wrappers for sceKernelEventFlag 2012-11-12 00:43:48 +00:00