Commit Graph

234 Commits

Author SHA1 Message Date
mtheall
cdd066a4ba Merge branch 'refactor' 2014-10-30 13:39:47 -05:00
mtheall
a9d2f7b97f start sdmc devoptab 2014-10-30 13:34:13 -05:00
smea
58a1f0c68e plugged a bunch of handle leaks ! 2014-10-29 21:26:58 -07:00
smea
08f8caf924 Merge pull request #20 from idunoe/master
Defined FS archive ids
2014-10-27 09:31:10 -07:00
fincs
76d55fc97a Fix APT initialization code when RUNFLAG_APTWORKAROUND is set 2014-10-27 17:30:55 +01:00
idunoe
df841d272b Removed magic number from sdmc example 2014-10-27 22:59:14 +08:00
idunoe
ff2a97e35a Added archive ids to fs.h 2014-10-27 22:56:01 +08:00
StapleButter
afd2140cb7 Create APT event handler thread as soon as possible, and complete initialization automatically when needed. No more 'call aptSetupEventHandler() as late as possible' shit.
Adapt examples to the changes (not tested).
2014-10-27 15:37:30 +01:00
StapleButter
cb6b23b884 Add stencil op and other related stuff to make that functionality mostly complete.
Add color/depth write mask support (and rename GPU_SetDepthTest() accordingly).
Add blending color.

Blending color must be set right after stencil op. GPU freezes otherwise.
2014-10-27 15:19:27 +01:00
smea
51850d5e6a Merge pull request #19 from idunoe/master
Added new service APIs
2014-10-26 22:46:40 -07:00
idunoe
d9c3b85d34 SRV: misc fix 2014-10-27 13:19:24 +08:00
idunoe
419815e4e4 PS: Added API 2014-10-27 13:17:56 +08:00
idunoe
bf68b2d4e5 PM: Added API 2014-10-27 13:17:47 +08:00
idunoe
3d798def58 NS: Added API 2014-10-27 13:17:34 +08:00
idunoe
b66d047e76 AM: Added API 2014-10-27 13:17:24 +08:00
idunoe
337eb60bae SRV: Added <7.X srv:pm 2014-10-27 13:17:07 +08:00
idunoe
4d891e6190 updated types.h 2014-10-27 13:11:55 +08:00
smea
a62ae8c225 SOC : close shared mem handle when shutting down 2014-10-26 18:34:58 -07:00
smea
a5d210b1a1 Merge pull request #18 from archshift/examples
Fix arm11u and sdmc examples
2014-10-26 17:26:49 -07:00
archshift
746e8e12c1 Get sdmc example building again 2014-10-26 17:08:55 -07:00
archshift
0a176ddba8 Get arm11u example building again 2014-10-26 16:59:11 -07:00
fincs
6e819f3bad Merge pull request #17 from lioncash/fallthru
os: Fix switch fallthrough in osGetTime.
2014-10-27 00:23:47 +01:00
Lioncash
567b1ae4f7 os: Fix switch fallthrough in osGetTime. 2014-10-26 19:21:37 -04:00
fincs
d113e21434 Merge pull request #16 from lioncash/vaend
soc: Add missing va_end() calls in fcntl.
2014-10-27 00:15:22 +01:00
plutoo
c64bcbb078 Merge branch 'refactor' 2014-10-27 00:08:13 +01:00
Lioncash
1b0a0368d7 soc: Add missing va_end() calls in fcntl. 2014-10-26 19:08:07 -04:00
plutoo
950ae0b2a4 Added svcQueryMemory 2014-10-27 00:07:07 +01:00
smea
774bd6b292 Update README.md 2014-10-26 13:15:49 -07:00
smea
9cdddc19a1 fancy license because trusting people isn't cool 2014-10-26 13:10:14 -07:00
smea
8f782d2f00 Merge branch 'refactor' 2014-10-26 13:06:42 -07:00
smea
1557d0f4d6 Merge branch 'refactor' of github.com:smealum/ctrulib into refactor 2014-10-26 13:06:26 -07:00
smea
0d703b8e23 Merge branch 'master' of github.com:smealum/ctrulib 2014-10-26 13:05:17 -07:00
smea
f1633c7c5f Merge branch 'master' into refactor 2014-10-26 13:03:49 -07:00
smea
3032a15f95 Merge pull request #15 from neobrain/refactor
Add the system call outputDebugString.
2014-10-26 13:01:51 -07:00
smea
e115853aee added c-stick, ZL and ZR support via ir:rst 2014-10-25 18:30:19 -07:00
Tony Wasserka
90692fee60 Add the system call outputDebugString.
This doesn't do anything on retail consoles, but homebrew developers can use it to debug applications in Citra or in other 3DS emulators which HLE this system call.
2014-10-25 11:52:39 +02:00
smea
40d35ee420 Merge branch 'refactor' of github.com:smealum/ctrulib into refactor 2014-10-23 22:12:08 -07:00
smea
77b421aa6b nothing important 2014-10-23 22:11:50 -07:00
smea
4851ff3587 Merge pull request #14 from StapleButter/refactor
Alphablending, color logic op, alphatest, multitexturing, and more stability
2014-10-23 09:07:49 -07:00
StapleButter
af31a7c861 * add code for alphablending, color logic op, alpha test and multitexturing.
* add GPU_FinishDrawing() to be called after a batch of GPU_DrawArray() calls if you're done drawing or if you intend to change the GPU configuration before drawing more. Also fix GPU_Finalize(). With those changes, the GPU no longer freezes if you call GPU_DrawArray() an even number of times.
* fix GPU_SetViewport() to allow color buffer reading, so blending and logicop work as expected.
2014-10-23 17:56:56 +02:00
StapleButter
1f413a7d44 Add synchronization mechanism for entering sleep mode.
When the APT status is APP_PREPARE_SLEEPMODE, the application main thread should call aptSignalReadyForSleep() to signal that it is ready to enter sleep mode, and then call aptWaitStatusEvent() as usual.

Example code:

APP_STATUS status;
while ((status = aptGetStatus()) != APP_EXITING)
{
	if(status==APP_RUNNING)
	{
		// application logic here
	}
	else if(status == APP_SUSPENDING)
	{
		aptReturnToMenu();
	}
	else if(status == APP_PREPARE_SLEEPMODE)
	{
		aptSignalReadyForSleep();
		aptWaitStatusEvent();
	}
}

This maybe isn't the proper/recommended way to do sleep mode, but I tested it multiple times and it always worked reliably.

(note: maybe the sample code above will not work if GPU drawing is done in a separate thread, haven't tested that)
2014-09-18 22:09:15 +02:00
StapleButter
6431810185 Merge pull request #1 from smealum/refactor
Refactor
2014-09-18 20:59:46 +02:00
fincs
27be99a793 Add proper linear heap allocator 2014-09-17 00:22:30 +02:00
fincs
2c589cd2ef linearAlloc: use 16-byte alignment 2014-09-16 22:24:26 +02:00
fincs
e26017a75c Merge branch 'refactor' of https://github.com/StapleButter/ctrulib into refactor 2014-09-13 18:00:23 +02:00
StapleButter
8b27dbe623 * Make the GSP event handler signal events in the right order (essential for proper PICA200 sync)
* Add some comments about the GSP events (based on my observations, may not be right)
2014-09-13 17:01:20 +02:00
plutoo
b832ed5179 Merge pull request #10 from StapleButter/refactor
Fix FS init.
2014-09-11 21:04:35 +02:00
StapleButter
ad08977e37 Fix FS init. 2014-09-11 21:02:56 +02:00
yellows8
a9f4b3402b Fixed broken CSND_playsound() code for looping(use vaddr1 for that instead of vaddr0, and adjust the size). 2014-09-06 17:49:48 -04:00
plutoo
449ead1141 os: Added osGetTime(). 2014-09-06 21:07:26 +02:00