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
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
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
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
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
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
smea
2a1c7c8ea9
some GSP and GPU fixes
2014-08-28 22:53:45 -07:00
fincs
b41f1ca796
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
2014-08-28 00:02:56 +02:00
fincs
0275d6a924
initSystem: fix global ctor/dtor code
2014-08-28 00:00:53 +02:00
fincs
125398a52f
Refactor linear heap code (formerly known as GSP heap)
2014-08-27 23:44:38 +02:00
yellows8
f37a7b004f
Added checks for the array index code in hid.c.
2014-08-27 17:42:53 -04: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
a2911e4883
Add word 2 to response for FSUSER_IsSdmcDetected() and FSUSER_IsSdmcWritable().
2014-08-26 17:54:52 -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
smea
8e86af967a
added Makefile rule to compile vsh shader code to gpu example (fincs, can you see if you can improve it ?)
2014-08-25 23:26:36 -07:00
smea
0aff9c6902
so sick of all these includes
2014-08-25 22:55:12 -07:00
smea
d30d5283c6
GSP/GFX stuff
2014-08-25 21:48:00 -07:00
smea
b9d6ffe8f2
oops, looks like i was editing deprecated files
2014-08-25 21:35:53 -07:00
smea
d287719900
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
...
Conflicts:
libctru/source/gfx.c
2014-08-25 21:32:00 -07:00
smea
47284dcd34
GPU stuff
2014-08-25 21:31:12 -07:00
mtheall
91f7e56129
Fix NULL handling for PTMU_GetBatteryLevel() and PTMU_GetBatteryChargeState().
2014-08-25 23:24:06 -05:00
mtheall
4c04373046
Update FS_dirent.
2014-08-25 19:38:17 -05:00
plutoo
716fd86057
Merge branch 'refactor' of https://github.com/smealum/ctrulib into refactor
2014-08-25 23:12:35 +02:00
plutoo
dc052c19ee
gsp: Added gspAllocLinear() to allocate from LINEAR heap
...
Required by CSND, for example
2014-08-25 23:11:53 +02:00
smea
56d9f4abb3
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
2014-08-25 09:40:10 -07:00
smea
8f3997e3a7
PTM & AC stuff
2014-08-25 09:14:48 -07:00
fincs
fa18d4750b
gfxInit(): initialize GSP event handler, use __gsp_heap_size
2014-08-25 12:07:00 +02:00
smea
14312cf851
APT WORKAROUND fix
2014-08-24 23:36:37 -07:00
smea
4c9abef1a9
APT WORKAROUND (update 3dsx_crt0.s to https://gist.github.com/smealum/305802b2b9bf4c877ddb and recompile everything please)
2014-08-24 23:25:54 -07:00
smea
fb1dc89eab
fsInit fix
2014-08-24 22:50:57 -07:00
smea
3fae8817cc
minifix gfxSetFramebufferInfo (for 3D)
2014-08-24 22:03:47 -07:00