Henrik Rydgård
fefc229f15
Merge branch 'sas-clean-fix' of https://github.com/jacky400/ppsspp into jacky400-sas-clean-fix
...
Conflicts:
Core/HLE/sceSas.cpp
2012-12-09 15:27:21 +07:00
jacky400
e585206551
Merge branch 'master' of https://github.com/jacky400/ppsspp into sas-clean-fix
...
Conflicts:
Core/HLE/sceSas.cpp
2012-12-09 07:56:21 +08:00
Xele02
d37212c361
Savesystem with unencrypted data load/save.
...
Only on PC. Tested with Project Diva Extend on Linux Build
Save feature working : Autoload / Load / ListLoad / Autosave / Save / ListSave
Save files in ./SaveData/<GameID><SaveID>/ directory using PSP Like directory name
2012-12-08 23:39:47 +01:00
jacky400
6cef08fd72
Remove prefix in struct WaveformEffect
2012-12-08 21:07:21 +08:00
jacky400
ba83f0041a
Make struct WaveformEffect
2012-12-08 17:29:53 +08:00
jacky400
bfb0108959
Change HACK to UNIMPL in sceAudio
2012-12-08 17:26:04 +08:00
jacky400
eff0f8663f
Change HACK to UNIMPL in sceAudio
2012-12-08 17:24:44 +08:00
jacky400
b6b26e38f6
New functions for sceSas/sceVaudio .Massive checkup on all functions parameters and return value.
2012-12-08 16:09:10 +08:00
jacky400
be167141dd
Update Core/HLE/sceSas.cpp
2012-12-08 16:05:11 +08:00
jacky400
5231dc0dda
Update Core/HLE/sceSas.cpp
2012-12-08 16:02:21 +08:00
jacky400
86e21c248a
Update Core/HLE/sceSas.cpp
2012-12-08 15:53:11 +08:00
jacky400
0739fd2370
Update Core/HLE/sceSas.cpp
2012-12-08 15:43:31 +08:00
jacky400
43a89fe4b7
Update Core/HLE/sceSas.cpp
2012-12-08 15:33:19 +08:00
jacky400
453182b7bc
Update Core/HLE/FunctionWrappers.h
2012-12-08 14:22:47 +08:00
jacky400
e7cb558cb9
Update Core/HLE/sceSas.cpp
2012-12-08 14:13:41 +08:00
jacky400
414f103211
Cleanup and new function in SasCore
2012-12-08 11:36:07 +08:00
Unknown W. Brackets
5d8554b8af
Fix sceSasCore* params which broke some games.
2012-12-07 09:53:18 -08:00
jacky400
17d32c2606
Add 3 functions in sceVaudio
2012-12-07 20:41:51 +08:00
Unknown W. Brackets
15c05dc08c
Implement sceKernelTerminateThread(), not fully.
...
It's mostly correct but needs some tests and TLC.
This allows threads to be restarted.
2012-12-07 00:46:19 -08:00
Unknown W. Brackets
6fd71f5b27
Fix failed free issues with thread stacks.
2012-12-07 00:46:19 -08:00
Unknown W. Brackets
8bae2e0964
Cancel wakeup events when a thread ends.
2012-12-07 00:46:19 -08:00
Unknown W. Brackets
573aba2fb9
Refactor CoreTiming::Advance() slightly to cleanup.
2012-12-07 00:46:18 -08:00
Unknown W. Brackets
a67505761e
Mutexes and semaphores were rescheduling twice.
...
This was causing it to "jump" the correct thread and go to the next.
2012-12-07 00:46:18 -08:00
jacky400
a24cc1dd9a
Implement sceSasSetPause
2012-12-07 13:23:26 +08:00
jacky400
b61a672449
Add WrapU_UIC for sceSasSetPause
2012-12-07 12:59:30 +08:00
jacky400
c643345c71
Implement sceSasGetGrain and sceSasSetGrain
2012-12-07 12:45:16 +08:00
Henrik Rydgård
ef387dbd51
More buildfixing...
2012-12-07 01:46:17 +07:00
Henrik Rydgård
176849572b
Merge pull request #138 from jacky400/master
...
Implemented setters for ADSR (Attack/Decay/Sustain/Release) envelope processing
2012-12-06 10:36:59 -08:00
jacky400
3055366e48
Small fix to sceSasSetSimpleADSR
2012-12-07 02:24:42 +08:00
Henrik Rydgård
99bdfcbcfa
Merge pull request #140 from tmaul/master
...
Attempt to get some games going further
2012-12-06 10:20:47 -08:00
Henrik Rydgård
a3fe130c0f
Fix/paper-over some build compatibility issues. Warning fixes.
2012-12-07 01:09:15 +07:00
TMaul
ea21789d34
Fake sceDisplayWaitVblankStartMulti
...
And stub the sceVaudio fuctions called by DOA paradise
2012-12-06 18:02:56 +00:00
TMaul
a737f70cae
Fake scesupPreAcc
...
Gets Dissidia Final Fantasy to title screen. We will need to make this
one go away by getting PRX loading working properly I think.
2012-12-06 18:02:55 +00:00
TMaul
0efde68d74
Add another sceNetStub
...
sceNetInetSocketAbort this time
2012-12-06 18:02:55 +00:00
TMaul
9bcb67f90b
Add some missing sce* Functions
...
Add the missing functions to sceHttp
Create sceOpenPSID and add what jpcsp is doing
Create sceParseHttp.cpp
Create sceParseUri.cpp
Create sceSsl.cpp and add what jpcsp is doing
reindent some files.
in an attempt to try and get a few games doing more.
2012-12-06 18:02:55 +00:00
jacky400
ff34632bb4
Small fix to sceSasSetSimpleADSR
2012-12-07 01:54:06 +08:00
Henrik Rydgård
257fd29e52
Buildfix Jacky's web browser edited commit :P
2012-12-07 00:52:32 +07:00
Henrik Rydgård
f909605e6e
sceIo: tidy op obsolete comments, switch to one bracing style
2012-12-07 00:50:05 +07:00
Henrik Rydgård
4a4d2c20fb
Merge pull request #139 from jacky400/sceSas
...
Implemented sceSasSetSL and sceSasSetNoise
2012-12-06 09:48:03 -08:00
jacky400
d24089e1f7
Small fix to _sceSasCore and _sceSasCoreWithMix
2012-12-07 01:45:09 +08:00
jacky400
234ed38de7
Merge remote-tracking branch 'upstream/master'
2012-12-07 00:46:25 +08:00
jacky400
53c0d3a62f
small fix to sceSasSetSL
2012-12-07 00:15:48 +08:00
jacky400
c3b1dedeff
Implemented ADSR (Attack/Decay/Sustain/Release) envelope processing
2012-12-06 23:14:38 +08:00
jacky400
8e181c4c1a
Implemented sceSasSetSL and sceSasSetNoise
2012-12-06 23:05:55 +08:00
Henrik Rydgård
4bdf9aab9b
Merge pull request #137 from Yn5an3/master
...
Fix to my previous commit
2012-12-06 06:47:29 -08:00
jacky400
0a8ddcd64b
Implemented ADSR (Attack/Decay/Sustain/Release) envelope processing
2012-12-06 22:37:41 +08:00
Yn5an3
c3ba5be502
Fixed sceIoOpenAsync.
2012-12-06 15:27:36 +01:00
Henrik Rydgård
e1aa287ab7
Merge pull request #134 from jacky400/master
...
sceSas Full Wrap
2012-12-06 00:14:29 -08:00
jacky400
223a3b0162
Small fix to _sceSasCore and _sceSasCoreWithMix
2012-12-06 12:13:37 +08:00
jacky400
4fe971c239
Add corresponding wrap templates
2012-12-06 12:12:18 +08:00
jacky400
7e2aa90657
sceSas Wrap
2012-12-06 11:26:05 +08:00
TMaul
af8dfdb4e4
Make sceRtcSetTime_t test complete
...
(Now with fixed line endings)
2012-12-05 23:48:20 +00:00
TMaul
1a13bfe8a9
Revert "Make sceRtcSetTime_t test complete"
...
This reverts commit 315295af9a
.
2012-12-05 23:47:39 +00:00
TMaul
315295af9a
Make sceRtcSetTime_t test complete
...
And a few other cleanups as suggested
2012-12-05 23:40:10 +00:00
TMaul
67e52a6fa8
noticed some strange check day of week calls, we are not returning the correct value for them
2012-12-05 23:40:10 +00:00
Henrik Rydgård
d06dfc36e0
Merge pull request #129 from Yn5an3/master
...
Wrapped sceGe and sceIo functions
2012-12-05 15:31:27 -08:00
Yn5an3
8d5125ea8b
Cleaned identation, solved bug in WrapI_UU64(). Ammended
...
sceIoWaitAsync and sceIoWaitAsyncCB since they can not be wrapped.
2012-12-05 22:19:14 +01:00
Henrik Rydgård
d493217826
Merge pull request #131 from jacky400/master
...
Implement sceSasSetADSR and sceSasSetADSRMode
2012-12-05 09:02:31 -08:00
jacky400
7d854ae858
Update Core/HLE/sceSas.cpp
2012-12-06 00:17:55 +08:00
jacky400
3992d44a97
Update Core/HLE/sceSas.cpp
2012-12-06 00:09:01 +08:00
jacky400
3763585afb
Update Core/HLE/sceSas.cpp
2012-12-05 23:57:32 +08:00
jacky400
9406a1760c
Update Core/HLE/FunctionWrappers.h
2012-12-05 23:53:06 +08:00
jacky400
0673217091
Update Core/HLE/sceSas.cpp
2012-12-05 23:51:10 +08:00
Álvaro Acción Montes
fb919a392b
Merge branch 'master' of https://github.com/hrydgard/ppsspp
2012-12-05 15:51:07 +01:00
Yn5an3
85177ebf09
Wrapped funtions in sceIo.cpp
2012-12-05 15:49:48 +01:00
Henrik Rydgård
16a9dd62ea
Merge pull request #127 from jacky400/master
...
Implement sceSasGetPauseFlag() in sascore.cpp
2012-12-05 05:17:49 -08:00
jacky400
595ff3b1fb
Update Core/HLE/sceAudio.cpp
...
Too spam and change it to debug log
2012-12-05 20:22:11 +08:00
jacky400
305a87407b
Update Core/HLE/sceSas.cpp
...
Implement sceSasGetPauseFlag() in sascore.cpp
2012-12-05 19:50:25 +08:00
Henrik Rydgård
b4c19bdd02
Merge pull request #123 from tmaul/master
...
Improve the sceRtcTickAddMonths method
2012-12-05 03:22:00 -08:00
Henrik Rydgård
36943db4ec
Merge branch 'master' of github.com:hrydgard/ppsspp
...
Conflicts:
Core/Config.h
2012-12-05 10:57:30 +07:00
Kevin Armstrong
e1a5bf91c3
more rtc changes, getting closer
2012-12-04 21:32:15 +00:00
Kevin Armstrong
4380995193
make addmonths work slightly more correctly
2012-12-04 21:32:15 +00:00
jacky400
0b659e20fd
Update Core/Config.h
2012-12-05 00:04:55 +08:00
jacky400
582b078c23
Update Core/Config.cpp
2012-12-05 00:04:24 +08:00
Yn5an3
21ccc60b87
Wrapped sceGe.cpp functions
2012-12-03 23:37:14 +01:00
Unknown W. Brackets
d07e51bff0
Always allow peeking into ctrl buffers.
2012-12-02 21:07:17 -08:00
Unknown W. Brackets
8a801ff761
Send the recent N ctrl buffers, fixing lag.
2012-12-02 19:53:20 -08:00
Unknown W. Brackets
f6009e477f
Start with one free buffer to match things.
2012-12-02 17:14:00 -08:00
Unknown W. Brackets
aea9b16a04
Add ctrl waits when there are no buffers yet.
2012-12-02 17:03:13 -08:00
Unknown W. Brackets
ec6c0e9ccd
The ctrl latch should work now, don't log as error.
2012-12-02 16:19:14 -08:00
Unknown W. Brackets
fd2d666191
Add ctrl sampling (vblank).
...
This makes it work like the PSP does with number of buffers, etc.
Still doesn't wait yet.
2012-12-02 15:44:23 -08:00
Unknown W. Brackets
7edb340577
Start the ctrl latch off all just released.
2012-12-02 12:44:33 -08:00
Unknown W. Brackets
b93c4f636c
Oops, prevent a possible crash in ctrl.
2012-12-02 08:28:05 -08:00
Unknown W. Brackets
754a49dfd7
Make sceCtrlReadLatch work more correctly.
...
It gets changes since last call, makes sense.
2012-12-02 08:28:05 -08:00
Unknown W. Brackets
0dc8e2a420
Set the ctrl frame value to something useful.
2012-12-02 08:28:04 -08:00
Unknown W. Brackets
843d495c5b
Don't expect sceCtrlInit ever, minor ctrl funcs.
...
I don't see any indication that you need to call init first.
2012-12-02 08:28:04 -08:00
Unknown W. Brackets
bf8abaebe5
Don't include analog when not enabled in ctrl.
...
Fixes menu, movement in Tales of Eternia.
2012-12-02 08:28:04 -08:00
Unknown W. Brackets
9e8160c88b
Correct sceUmdGetDiscInfo().
...
The struct was wrong, also add error handling.
2012-12-02 00:33:39 -08:00
Unknown W. Brackets
e5f1d701e3
Don't unregister a different UMD callback, cleanup.
2012-12-02 00:20:28 -08:00
Unknown W. Brackets
9ba9415df4
Change the UMD callback on overwrite.
2012-12-01 23:48:11 -08:00
Unknown W. Brackets
51a4ed4f75
Reschedule when activating/deactivating the UMD.
...
This is what a PSP seems to do.
2012-12-01 23:29:25 -08:00
Unknown W. Brackets
00ca9d8dc7
Make the UMD wait funcs actually wait.
2012-12-01 23:29:24 -08:00
Unknown W. Brackets
16c29a52a8
Improve debugging for bad callback ids.
2012-12-01 23:29:24 -08:00
Unknown W. Brackets
eaaedc7adc
This notify isn't needed and was broken anyway.
2012-12-01 23:29:24 -08:00
Unknown W. Brackets
1142ad3ec6
sceUmdDeactivate() seems to always schedule a cb.
2012-12-01 23:29:23 -08:00
Unknown W. Brackets
4abcb6a8ac
Fix sceUmdWaitDriveStatCB() so it fires right away.
...
This makes Crisis Core actually show loading again.
2012-12-01 23:29:23 -08:00
Unknown W. Brackets
c00f3dcdd8
Implement sceUmdCancelWaitDriveStat().
2012-12-01 23:29:22 -08:00
Unknown W. Brackets
f3e23f2672
Add some asserts for activating UMDs.
2012-12-01 23:29:22 -08:00
Henrik Rydgård
364a78edaf
Add option to show/hide touch controls
2012-12-01 23:20:08 +01:00
Henrik Rydgard
4393dc02a6
Buildfix
2012-12-01 12:36:52 +01:00
Henrik Rydgard
ab4482a0a4
Respect param len in PARAM.SFO parser
2012-12-01 10:33:05 +01:00
Henrik Rydgard
6e32b30afd
DisplayDrawer->FramebufferManager
2012-12-01 10:17:34 +01:00
Henrik Rydgard
cdc94a6cad
Halve the kernel memory so that the "volatile" 4MB fits without overlapping
2012-12-01 10:17:33 +01:00
Unknown W. Brackets
a2ee736793
Process events when idle or switching threads.
...
Fixes hrydgard/ppsspp#104 , so things execute more accurately.
2012-11-30 23:09:14 -08:00
Unknown W. Brackets
998104e2eb
Consider threads still waiting until they wake.
...
This seems to match the actual behavior of timeouts much better.
2012-11-30 23:04:24 -08:00
Unknown W. Brackets
48c5efd0c2
Match hw timing of mutex/sema timeouts better.
...
Affects some tests passing/not passing due to minor timing issues, ugh.
2012-11-30 22:58:42 -08:00
Unknown W. Brackets
7164638799
Allow semaphores with waiters to signal.
...
If the max is 1, but there's 1 waiting, it's okay to signal 2.
Really, the final result is what matters.
2012-11-30 22:58:41 -08:00
Unknown W. Brackets
3ab41e515d
Mutexes and semaphores don't always reschedule.
...
It's just the normal rescheduling happening. Previous tests weren't
correct.
Also some minor cleanup.
2012-11-30 22:58:41 -08:00
Henrik Rydgard
1189da826c
Also get TITLE from PARAM.SFO
2012-11-30 22:34:08 +01:00
Henrik Rydgard
a5e35ad6d9
Parse PARAM.SFO to get the disc ID, show in title bar on Windows
2012-11-30 22:32:51 +01:00
Kevin Armstrong
82abb1e296
at least one game expects the UMD to be on UMD:
2012-11-30 16:47:04 +00:00
Henrik Rydgard
945d9b6762
Implement wsbh
2012-11-29 14:35:44 +01:00
Henrik Rydgard
e370a1a8aa
Fix project and .rc so it builds with VS 2010 Express, thanks Darth1701. Plus logging tweaks.
2012-11-29 10:41:48 +01:00
Kevin Armstrong
5d0c88334b
9999 is actually the maximum year as verified on my PSP
2012-11-28 19:24:35 +00:00
Kevin Armstrong
de0a161be6
reduce the number of errors in sceRtc.cpp
2012-11-28 19:02:56 +00:00
Henrik Rydgard
5fb8e6dfb0
DXT textures now mostly working-ish (work left to do on alpha for DXT3/5)
2012-11-28 16:12:29 +01:00
Henrik Rydgard
980d13fe50
Assorted GPU fixes: Advance vertex pointer, fixes missing triangles in SPT. More logging. Separate proj matrices for through and normal mode (through matrix don't need to get updated as often). Some cleanup.
2012-11-28 13:45:22 +01:00
Henrik Rydgard
111f52d67f
Unbreak sceAudioOutput2OutputBlocking - must be careful about returns in blocking functions!
2012-11-28 11:09:12 +01:00
Henrik Rydgard
52572d92e6
Merge branch 'master', remote-tracking branch 'origin'
2012-11-28 10:38:22 +01:00
Sacha
6192bdf6df
sceIoRename function
2012-11-28 05:21:32 +10:00
Henrik Rydgård
156cfc4e6a
Merge pull request #100 from Ced2911/endian
...
sceAudio wrap
2012-11-27 04:12:37 -08:00
Ced2911
8bf93cfb54
sceAtrac wrap
2012-11-27 13:05:51 +01:00
Ced2911
f6fd7e13d1
sceAudio wrap
2012-11-27 12:18:58 +01:00
Henrik Rydgard
a74af8f372
Some new NIDs, log fix, very minor bugfix.
2012-11-27 11:40:30 +01:00
Henrik Rydgård
4991c84868
Merge pull request #99 from Ced2911/endian
...
less Memory::GetPointer
2012-11-27 01:31:50 -08:00
Ced2911
6db4ea2ad1
less Memory::GetPointer
2012-11-27 10:18:36 +01:00
Kevin Armstrong
c124c079dc
more sceRTC functions. Ones marked as hack either fail the tests or are a bit wrong
2012-11-26 23:37:21 +00:00
Henrik Rydgard
870ea6628b
Reasonably correct viewport handling. Optional debug stats overlay (not always 100% working).
2012-11-26 17:35:08 +01:00
Henrik Rydgård
b3a6444f4b
Merge pull request #94 from xsacha/master
...
CMakeLists cleanup; Improve portability to future platforms; iOS support
2012-11-26 00:02:30 -08:00
Sacha
3c903dda24
Improve portability to future platforms. Make use of new USING_GLES2 define throughout PPSSPP. Also use ARM definition where suitable. Remove some redundancy with includes.
2012-11-26 13:25:14 +10:00
Kevin Armstrong
e3b521b893
sceRtc function stubs, and some actual working functions
2012-11-26 00:36:36 +00:00
Henrik Rydgard
c0075d8322
Special case for GL_ZERO blend factor too. Don't log on "sync".
2012-11-25 17:48:05 +01:00
Henrik Rydgard
ced89f5983
Warning fixes
2012-11-25 15:46:51 +01:00
Henrik Rydgård
fc453c979f
MacOSX buildfix. Doesn't run right yet though.
2012-11-25 12:25:07 +01:00
Henrik Rydgård
ec25bfc9a4
Merge pull request #90 from tmaul/master
...
Update sceRtcSetTick based on test cases
2012-11-25 02:13:27 -08:00
Unknown W. Brackets
8736a567b2
Advance the PC after vrnds.
2012-11-24 18:25:42 -08:00
kev :)
68d644306e
Rename and retype a variable
2012-11-25 00:22:39 +00:00
kev :)
7e85df9c0f
Update sceRtcSetTick based on test cases
2012-11-25 00:14:14 +00:00
Unknown W. Brackets
063f914ff3
Fix project files so things build again.
2012-11-24 09:20:53 -08:00
Unknown W. Brackets
3642c02562
Add some guards to audio funcs on channel.
...
The atrac test was crashing.
2012-11-23 16:25:26 -08:00
kev :)
fcfeeb8319
add sceKernelMemcpy & sceRtcSetTick
...
Untested apart from via games. gets bemani going further.
2012-11-23 18:51:36 +00:00
Henrik Rydgard
a97f66766d
Add "slightly faster interpreter", optimizing the most common instrs. Not as helpful as I thought it would be on Android, really need a proper JIT.
2012-11-23 12:42:35 +01:00
Henrik Rydgard
f3aeadedfa
Remove audio rate throttling, it's better to frame rate throttle. Gets rid of the slowdown that audio caused.
2012-11-23 10:35:28 +01:00
Henrik Rydgard
a385ec6056
MIPSDis cleanup, allow mfv zero, 255 (appears to be used to flush VFPU state or something)
2012-11-23 10:35:28 +01:00
Unknown W. Brackets
ad116632bf
Implement sceRtcGetTick().
...
Unfortunately, this fixes things so that rtc/rtc is correctly failing.
2012-11-22 23:49:23 -08:00
Unknown W. Brackets
c40d8a4fbe
Implement sceRtcGetCurrentClock().
...
Not sure if this needs some kind of DST handling for the tz?
2012-11-22 23:48:12 -08:00
Unknown W. Brackets
965eeaf9da
Add error handling to sceRtcGetDaysInMonth().
2012-11-22 23:48:12 -08:00
Unknown W. Brackets
21398bfcf8
Fix sceRtc module name so the right funcs are run.
...
Makes rtc/rtc pass again.
2012-11-22 23:48:12 -08:00
Unknown W. Brackets
6a4a26d4bf
No need for these headers anymore.
2012-11-22 23:48:11 -08:00
Unknown W. Brackets
d3f2d9d10b
Use u64 here to avoid warnings, better precision.
...
The timeout value is u32 anyway, so an int was already a loss.
2012-11-22 16:40:26 -08:00
Unknown W. Brackets
c2c2b77792
Fix threads locking more than one mutex at a time.
...
Duh, of course they can. Even my test did, I'm stupid.
2012-11-22 16:33:16 -08:00
Henrik Rydgard
d141d205f8
Delete old textures, to prevent memory usage from growing indefinitely.
2012-11-22 23:07:15 +01:00
Henrik Rydgård
272bce83d6
Merge pull request #79 from unknownbrackets/master
...
Remove some warnings, fix old proj files
2012-11-22 13:31:41 -08:00
Henrik Rydgard
08f8f4b323
Cleanup sceRtc, move sceFont to its own file.
2012-11-22 22:30:44 +01:00
Henrik Rydgard
772b599041
Resurrect vmfvc/vmtvc, they are different from mfvc/mtvc
2012-11-22 22:30:44 +01:00
Unknown W. Brackets
a6a47c0c3e
Don't complain when PPGe wasn't init yet.
...
This was causing BlockAllocator complaints if you closed right away.
2012-11-22 13:21:47 -08:00
kev :)
03c5e83953
Some sceUtility wrapping
...
Minus OSK and netconf
2012-11-22 20:46:22 +00:00
Henrik Rydgard
8f33837de9
Bug fixing mtv/mfv, add comment
2012-11-22 20:14:24 +01:00
Henrik Rydgard
232b84cd10
Assorted FPU/VFPU fixes, after adding more tests.
2012-11-22 18:13:48 +01:00
Diogo Franco (Kovensky)
6108e36ae9
Several fixes to build under stricter C++11
...
Add missing #include to various files.
strings.h isn't provided by MSVC so we don't include it there; it's needed
for other OSes/compilers.
Get rid of pre-ISO-C malloc.h includes; malloc is provided by stdlib.h.
Fixes some linuxisms.
Prepend __builtin_ to __clear_cache, calling it without the prefix is a
GNU extension.
2012-11-21 14:33:50 -03:00
Unknown W. Brackets
1bf04790e9
Darn, buildfix for debug.
2012-11-21 07:28:54 -08:00
Henrik Rydgård
3934876908
Merge pull request #70 from unknownbrackets/mutexes
...
Mutexes
2012-11-21 01:48:44 -08:00
Unknown W. Brackets
879efb25cc
Don't allow unlocking someone else's mutex.
2012-11-21 00:28:29 -08:00
Unknown W. Brackets
fa9b9840d0
Implement LwMutex locking and unlocking.
2012-11-21 00:21:25 -08:00
Unknown W. Brackets
db16f9309e
Don't crash if something goes wrong with mutexes.
...
Probably can't happen but being defensive is good.
2012-11-20 22:57:14 -08:00
Henrik Rydgård
2a56d36b12
glViewport calls need to be in pixel coordinates.
2012-11-20 16:48:24 +01:00
Henrik Rydgard
4b87da74cb
windows gui option for buffered rendering. Misc fixes, prettier checkbox on android.
2012-11-20 11:35:48 +01:00
Unknown W. Brackets
b71d998a20
Broadcast a threadend event to wake mutexes.
2012-11-20 02:20:16 -08:00
Unknown W. Brackets
dd3db71b61
Forget mutex waiting threads when they timeout.
2012-11-20 02:20:16 -08:00
Unknown W. Brackets
8da2fb074c
For mutexes/semaphores, register a global timer.
...
Instead of leaking one per each. Should be faster.
Since we can only wait on one thing per thread at a time, this is fine.
2012-11-20 02:20:16 -08:00
Unknown W. Brackets
a81c138004
Create and Delete LwMutex funcs.
2012-11-20 02:20:15 -08:00
Unknown W. Brackets
619a9906de
Remove threads from semaphores when they timeout.
...
This makes wait tests *almost* pass. There's some timing
related issues left, though.
2012-11-20 02:20:15 -08:00
Unknown W. Brackets
fd41851503
Implement timeouts on semaphores too.
2012-11-20 02:20:14 -08:00
Unknown W. Brackets
4d71e32193
Update the value when mutexes timeout.
2012-11-20 02:20:14 -08:00
Unknown W. Brackets
aad7e48a1a
Oops, turns out mutex timeouts are in micro.
...
Found it documented as milli somewhere, but it was wrong.
2012-11-20 02:20:14 -08:00
Unknown W. Brackets
d88fa153b7
Implement timeouts on mutexes.
...
Still need to set timeoutPtr after they expire.
Pretty sure I did this the right way, seems CoreTiming does already
allow/use multiple events for the same type?
2012-11-20 02:20:13 -08:00
Unknown W. Brackets
b9bb5c4cce
Make sceKernelStartThread() reschedule.
...
Mutexes and semaphores are wrong, duh.
2012-11-20 02:20:13 -08:00
Unknown W. Brackets
7b9a8bf766
Minor correctness on create mutex.
2012-11-20 02:20:12 -08:00
Unknown W. Brackets
7fa388952e
Refactor mutex locking to simplify.
2012-11-20 02:20:12 -08:00
Unknown W. Brackets
0681c8e5c5
Add overflow error to mutex locking.
2012-11-20 02:20:12 -08:00
Unknown W. Brackets
40a6ebfabe
Fix sceKernelCancelSema() to handle any negative.
...
So the test isn't failing.
2012-11-20 02:19:21 -08:00
Unknown W. Brackets
2290397b94
sceKernelTryLockMutex() and fix other locking.
2012-11-20 02:19:21 -08:00
Unknown W. Brackets
4bfa24eca8
Fix sceKernelCreateMutex() to match tests.
...
Still have an issue where reusing threads doesn't work.
2012-11-20 02:19:21 -08:00
Unknown W. Brackets
a539580195
Reschedule after acquiring a lock.
...
This matches the actual test results.
2012-11-20 02:19:20 -08:00
Unknown W. Brackets
2613ed8806
Cleanup mutex func types.
...
Looks like mutexes reschedule when they lock, so switch to void.
2012-11-20 02:19:20 -08:00
Unknown W. Brackets
429ac9de87
Oops, CreateMutex was missing a parameter.
2012-11-20 02:19:19 -08:00
Unknown W. Brackets
4bab714db5
Mutexes go in FIFO order as expected.
...
The test was wrong.
2012-11-20 02:19:19 -08:00
Unknown W. Brackets
4cddd3092a
Implement basic locking for sceKernel mutexes.
...
Test still not passing, due to odd order the mutex is unlocked in?
But, at least, it does lock now.
2012-11-20 02:19:19 -08:00
Henrik Rydgard
f378f959e1
Fix issues with games that don't call sceDisplaySet mode. Add option to run without FBOs, may be useful on slow devices.
2012-11-20 10:59:23 +01:00
Henrik Rydgard
f226afc3ca
Implement a missing time function
2012-11-20 01:04:39 +01:00
Henrik Rydgard
45d42f09a1
Remove x86disasm, experiment with build order
2012-11-20 00:48:13 +01:00
Henrik Rydgard
ee32db47b9
Assorted FBO fixes
2012-11-20 00:31:19 +01:00
Henrik Rydgard
4a49b8ee36
Workaround for motogp setting a bogus framebuffer address.
2012-11-19 23:53:38 +01:00
Henrik Rydgard
8b67975a47
GL: Framebuffer management using FBOs. Fixes flicker in Lumines and many others.
2012-11-19 23:29:14 +01:00
Henrik Rydgard
91e1cce17e
Some reorg in preparation for FBO work
2012-11-19 21:23:29 +01:00
Henrik Rydgård
14a59fdc75
Found a better way to do the previous change. Allow JIT on mac/linux.
2012-11-19 14:51:47 +01:00
Henrik Rydgård
fb25b7405c
Synchronize the mainloop to the display end-of-frame on nonWindows
...
platforms.
2012-11-19 14:16:37 +01:00
Henrik Rydgård
ec2cb15c38
Merge branch 'master' of github.com:hrydgard/ppsspp
...
Conflicts:
Core/HLE/sceKernelInterrupt.cpp
native
2012-11-19 11:35:53 +01:00
Henrik Rydgard
1f48dc380a
gitignore, comments, upgrade native.
2012-11-19 09:25:50 +01:00
Henrik Rydgard
2d431d27e7
Crashfix for a buggy game that misuses sceUtility
2012-11-19 00:29:41 +01:00