profi200
16ce5f4c7b
Added functions for launching other apps/applets
2014-11-10 17:03:41 +01:00
smea
bb1bb0f554
Merge branch 'master' of github.com:smealum/ctrulib
2014-11-09 00:40:35 -08:00
smea
c1f6773fb6
GPUCMD_GetBuffer, GPUCMD_AddRawCommands
2014-11-09 00:40:23 -08:00
fincs
abc3530f57
Add gxCmdBuf to headers
2014-11-08 23:21:41 +01:00
yellows8
6d2a0f5fa3
Started implementing code for new3ds mvd. Added osConvertOldLINEARMemToNew().
2014-11-06 19:02:55 -05:00
fincs
d95e95cf13
Merge branch 'master' of github.com:smealum/ctrulib
2014-11-05 20:59:15 +01:00
fincs
562cc896a1
Add linearMemAlign() (current implementation sucks)
2014-11-05 20:58:50 +01:00
smea
5652a0f0fa
macros for texture parameters
2014-11-05 10:32:30 -08:00
fincs
a77e8ae1cd
Add linearSpaceFree() for retrieving the free space in the linear heap
2014-11-03 20:20:33 +01:00
smea
c7be1e415f
Merge branch 'master' of github.com:smealum/ctrulib
2014-11-02 21:11:13 -08:00
smea
974b1094f3
GPUCMD_FlushAndRun
2014-11-02 21:10:56 -08:00
fincs
7f10ad4097
Add aptMainLoop() for handling APT events in main()
2014-11-02 18:58:37 +01:00
yellows8
3135d1c344
Updated APT_CheckNew3DS to only use the APT cmds once(which also now calls aptOpenSession/aptCloseSession), then store the output value in a flag which is then used for all future APT_CheckNew3DS calls. Updated HID init/shutdown code to automatically call irrst init/shutdown code when running on new3ds. Updated irrst init code to only do init when it wasn't already initialized, likewise for the irrst shutdown code.
2014-11-01 23:48:35 -04:00
yellows8
c8795b1b79
Added APT CheckNew3DS code. Added code for attempting to use the other APT services when APT:U isn't accessible.
2014-11-01 21:39:18 -04:00
StapleButter
c38276e37d
Add timer-related SVC calls.
2014-10-31 01:17:43 +01:00
smea
08f8caf924
Merge pull request #20 from idunoe/master
...
Defined FS archive ids
2014-10-27 09:31:10 -07: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
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
plutoo
c64bcbb078
Merge branch 'refactor'
2014-10-27 00:08:13 +01:00
plutoo
950ae0b2a4
Added svcQueryMemory
2014-10-27 00:07:07 +01: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
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
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
449ead1141
os: Added osGetTime().
2014-09-06 21:07:26 +02:00
yellows8
aa77f9b1e2
Added code for using the microphone and an example app for it.
2014-09-03 14:36:05 -04:00
profi200
3d34e123ee
Added functions for sysCore usage
2014-09-01 15:49:32 +02:00
yellows8
62f26e8760
Improved HID code, and added Accelerometer/Gyroscope support.
2014-08-30 20:41:09 -04:00
yellows8
9425edc406
Added HID event code, based on the GSP event code. Added event id check in gspWaitForEvent().
2014-08-29 16:19:58 -04:00
fincs
125398a52f
Refactor linear heap code (formerly known as GSP heap)
2014-08-27 23:44:38 +02:00
fincs
16544492a2
Fix KEY_CRIGHT/CLEFT
2014-08-27 12:03:25 +02:00
smea
335acee5d5
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
...
Conflicts:
libctru/include/3ds/types.h
2014-08-26 23:13:36 -07:00
smea
9e78466af8
added stdlibs for size_t
2014-08-26 23:12:33 -07:00
mtheall
43661f8263
Add FSUSER_GetSdmcArchiveResource().
2014-08-26 19:01:00 -05:00
mtheall
2eadd6d0b2
FIX DERP.
2014-08-26 17:43:34 -05:00
fincs
9b370c7eff
Reorganize includes
2014-08-26 23:18:14 +02:00
mtheall
a253b10b24
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
2014-08-26 15:58:24 -05:00
mtheall
cad12973c8
Add FSUSER_IsSdmcDetected() and FSUSER_IsSdmcWritable().
2014-08-26 15:58:18 -05:00
fincs
8b9666ac40
3ds/types.h: #include <stddef.h>
2014-08-26 22:56:38 +02:00
fincs
589c59fab7
Move 3ds.h to root, add C++ guard, use #pragma once
2014-08-26 22:53:00 +02:00