fincs
50541234b4
Merge pull request #150 from Megazig/master
...
PS service key type and socket functionality
2015-09-05 17:44:26 +02:00
Lectem
98d937ebc1
Added getThreadStaticBuffers for IPC
2015-09-01 15:28:52 -04:00
Lectem
d10fc00786
Added pseudo handles for current proc and thread
2015-08-30 23:30:53 -04:00
Lectem
6ca0ab50dd
documentation for svcCreateMemoryBlock
2015-08-28 14:55:49 -04:00
Lectem
84d368918e
documentation for the soc service
2015-08-28 14:55:40 -04:00
fincs
570ea2ebd2
Add work in progress RomFS driver/devoptab
2015-08-27 20:53:08 +02:00
Daz Jones
debe7a7553
svc: add a few more SVC bindings
...
Mostly debug and IPC related.
2015-08-23 20:29:23 +01:00
Subv
ad3dd538dc
Use register 0x22A (GPUREG_DRAW_VERTEX_OFFSET) when using GPU_DrawArrays.
...
It will set the index of the first vertex to draw, akin to the "first" parameter of glDrawArrays.
2015-08-22 22:18:33 -05:00
fincs
6f9edd9bbe
Merge pull request #154 from Subv/tev_buffer_color
...
GPU: Added code to manipulate the combiner buffer.
2015-08-22 21:20:37 +02:00
Subv
1738893d05
GPU: Added code to manipulate the combiner buffer.
...
You can set an initial color value with GPUREG_TEXENV_BUFFER_COLOR, then use GPU_SetCombinerBufferWrite with GPU_TEV_BUFFER_WRITE_CONFIG to allow/disallow the TEV stages to write their color outputs to the buffer.
You can retrieve the previous buffer color using GPU_PREVIOUS_BUFFER as color source in the TEV config.
2015-08-22 11:28:30 -05:00
Subv
f1b641a4ad
Added the rest of the stencil operations and corrected their names.
2015-08-21 15:10:13 -05:00
megazig
9e597a7af9
update definition of gethostbyaddr
2015-08-18 17:15:21 -05:00
megazig
8e7606692d
move h_errno definition to soc_common
...
add h_addr member to hostent structure
implement gethostbyaddr
2015-08-18 16:55:50 -05:00
megazig
033b353128
add key type 9 (NFC) for ps service
2015-08-18 16:54:22 -05:00
Lectem
8d36f3f03b
Fixed transfer unit and gap type and added a warning
2015-08-10 00:44:55 +02:00
Lectem
ea7b0eac5d
added gpu examples to doc
2015-07-23 22:41:13 +02:00
Lectem
2d7a53d75f
Documented GX TRANSFER_SCALE and FILL_CONTROL
2015-07-23 21:54:48 +02:00
Lectem
894d5342a1
fixed y2r doc and added csnd pan/vol ranges
2015-07-23 21:26:37 +02:00
Lectem
4109bf5b66
Fixed wrap_s and wrap_t
...
Those were swapped.
2015-07-20 00:20:35 +02:00
Lectem
a204c0def7
added texture border color
2015-07-08 00:17:25 +02:00
Lectem
0774378190
added texture border color
2015-07-08 00:03:01 +02:00
Lectem
594215e5e5
Added GPU_CLAMP_TO_BORDER and GPU_MIRRORED_REPEAT
2015-07-07 22:25:00 +02:00
Lectem
63472635ff
added examples to documentation
2015-06-28 14:13:57 +02:00
Lectem
2b385581b9
svc.h : updated MemOp enum and documented half of the file
2015-06-28 02:12:25 +02:00
Lectem
0c8c272bf4
updated y2r documentation
2015-06-26 23:00:12 +02:00
Lectem
ac9b5dbb61
os documentation
2015-06-26 22:58:22 +02:00
Lectem
8c053770a2
gfx documentation
2015-06-26 22:27:18 +02:00
Lectem
5b6d9b1ad9
fix firm/kernel version and added defines
2015-06-26 22:18:15 +02:00
infinicore
ec64beffbd
os: add function to get link level
2015-06-23 19:13:30 +00:00
fincs
66b2e4548e
Merge pull request #126 from yuriks/y2r
...
Add y2r:u commands
2015-06-22 00:22:41 +02:00
Lectem
364b9834db
Documented y2r
...
Also aligned enums for readability and changed SetCoefficient to
SetCoefficients
2015-06-22 00:07:18 +02:00
Yuri Kunde Schlesner
8a76010988
Add y2r:u commands
2015-06-21 07:25:28 -03:00
fincs
a7aba7feae
(I forgot to update the comment in the header file)
2015-06-20 18:21:06 +02:00
Lectem
de687695cf
added GX_SetMemoryFill control enums
2015-06-03 21:17:38 +02:00
smea
31e0f2ee07
Merge pull request #122 from Lectem/thread_svcs
...
threads svcs
2015-05-30 09:07:41 -07:00
yellows8
f631036063
Added code for getting the session handles for am, fs, and srv. Updated ACU_WaitInternetConnection() so that it waits for outval!=0 instead of outval==1, this fixes new3ds support for this func.
2015-05-26 13:49:37 -04:00
smea
79e2efdc0c
Update svc.h
...
cf PR #123
2015-05-25 23:05:14 -07:00
173210
9ad62755b7
svc.h: Remove volatile for getThreadLocalStorage
2015-05-26 14:48:20 +09:00
Lectem
f3bb5339f7
threads svcs
2015-05-25 21:11:16 +02:00
smea
33eb72e071
Merge pull request #112 from xerpi/master
...
GX_SetDisplayTransfer enums, GPU_SetTexture bug, GPU sample commented
2015-05-24 21:36:25 -07:00
smea
5747dcbd0d
Merge pull request #120 from Lectem/texenv_operands
...
added missing texenv op
2015-05-24 21:34:42 -07:00
Steven Smith
40d0739ade
Update NS_APPID values.
2015-05-23 10:57:40 -07:00
fincs
da680e0503
Add APT event hooking mechanism
2015-05-22 21:56:47 +02:00
smea
e2f8011f69
Merge pull request #115 from Steveice10/master
...
Add news:u commands.
2015-05-19 15:40:35 -07:00
Lectem
53b03ef6c5
use GPU prefix instead of GL
2015-05-16 21:53:10 +02:00
Lectem
7c26d8e68d
added missing texenv op
2015-05-16 21:43:34 +02:00
archshift
e66e417ce0
Add missing httpcAddRequestHeaderField to httpc.h
2015-05-12 22:29:40 -07:00
smea
d30d14dff4
Merge pull request #116 from profi200/master
...
Added AM_GetCiaFileInfo() and FSUSER_DeleteDirectoryRecursively().
2015-05-09 13:46:56 -07:00
fincs
350cb955b2
Added RUNFLAG_APTREINIT for supporting environments that require APT reinitialization
2015-05-06 22:01:40 +02:00
fincs
004dfff8bd
Added some srv commands
2015-05-06 21:59:47 +02:00
profi200
df46a2c7dd
Added AM_GetCiaFileInfo() and FSUSER_DeleteDirectoryRecursively().
2015-05-04 19:29:13 +02:00
fincs
5a28a7398a
Merge branch 'master' of github.com:smealum/ctrulib
2015-04-15 22:17:53 +02:00
fincs
c443c34ad0
Major CSND overhaul, see details:
...
- Missing commands are now added
- Volume and pan are now available in csndPlaySound
- Minor optimization that saves one memcpy per command
- Minor optimization in shared mem channel index computation
2015-04-15 22:17:19 +02:00
Steven Smith
6f37ad03f7
Add news:u commands.
2015-04-14 12:37:20 -07:00
Steven Smith
3adff173cd
Remove MEMOP_FREE_LINEAR
2015-04-13 12:50:02 -07:00
fincs
7b059d9395
svc.h/s cleanup; add svcWriteProcessMemory & svcControlProcessMemory
2015-04-13 17:56:38 +02:00
archshift
7bb4fc8547
Implement svcBackdoor in SVCs
2015-04-03 14:37:09 -07:00
Sergi Granell
cf7082ad1b
Added GX_SetDisplayTransfer flags enums and define helpers
...
Solved GPU_SetTexture bug (width and height was swapped)
Comment the GPU sample a bit more (to make it easier to understand)
2015-04-03 18:05:31 +02:00
profi200
4ab2b1a363
Replaced AM_installFIRM() with AM_installNativeFirm().
2015-03-28 22:02:46 +01:00
Dave Murphy
5c0a6ceda6
Merge branch 'master' into gpu_revamp
2015-03-11 16:46:49 +00:00
patois
57f139799c
add syscalls 0x61, 0x62, 0x63, 0x64
2015-03-10 12:43:15 +01:00
profi200
1a6bdc38a9
Implemented functions to start system applets.
2015-03-07 22:10:18 +01:00
fincs
624dc1c1b3
GPU_DepthRange() -> GPU_DepthMap()
2015-03-07 16:59:52 +01:00
fincs
0eed263bba
Merge branch 'master' into gpu_revamp
2015-03-06 16:32:13 +01:00
Dave Murphy
b275d5715b
add svcGetProcessorID
2015-03-03 11:04:00 +00:00
fincs
0f4ee280d2
Merge branch 'master' into gpu_revamp
2015-03-01 22:46:24 +01:00
profi200
ed3045ab6a
Fixed AM_InstallFIRM(). See 3dbrew.
2015-03-01 21:52:19 +01:00
profi200
a2d2df17f9
Minifix.
2015-03-01 19:57:57 +01:00
profi200
c998b5d035
Added AM_ListTitles(), removed nonsense bitwise ands, replaced sprint() with memcpy() (overflow safe) and made utf.h aveilable for apps.
2015-03-01 19:49:38 +01:00
Dave Murphy
341f10b057
Merge pull request #88 from Steveice10/master
...
Add AM_GetTitleProductCode, FSUSER_GetNandArchiveResource, and fix missing service imports in 3ds.h.
2015-03-01 18:19:14 +00:00
Dave Murphy
82affd3f77
Merge branch 'master' into gpu_revamp
2015-03-01 16:40:12 +00:00
Steven Smith
20a1a610da
Add AM_GetTitleProductCode, FSUSER_GetNandArchiveResource, and fix missing service imports in 3ds.h.
2015-02-28 23:13:21 -08:00
Yuri Kunde Schlesner
9ee96105f6
Add a few more SVC call stubs
2015-02-27 21:20:55 -03:00
Dave Murphy
b40d605660
Merge branch 'master' into gpu_revamp
2015-02-19 18:35:10 +00:00
Dave Murphy
727d5d4767
Merge branch 'utf'
...
Conflicts:
libctru/source/sdmc_dev.c
2015-02-15 13:28:34 +00:00
mtheall
e75fd8b648
Refactor soc to use errno.
2015-02-11 22:15:11 +00:00
Dave Murphy
3f19e7920c
threads take void * not u32
2015-02-02 19:30:08 +00:00
mtheall
7e58d84a37
Merge branch 'master' into utf
2015-01-23 15:07:44 -06:00
fincs
d414258995
Le chapeau de cul: fix some broken things after the git rebase
2015-01-20 18:05:25 +01:00
fincs
983b38f626
Some more function renaming
2015-01-20 17:57:05 +01:00
fincs
3fafe70f3b
CSND: add some capture commands
2015-01-20 17:55:26 +01:00
fincs
69ee2f97c5
Add CSND_AcquireCapUnit/CSND_ReleaseCapUnit
2015-01-20 17:55:25 +01:00
fincs
cbc1c645a6
CSND: IMA-ADPCM playback support, really fix looping
2015-01-20 17:55:24 +01:00
fincs
671ea5f555
Add CSND_ChnSetDuty()
2015-01-20 17:55:24 +01:00
fincs
e562b15a68
CSND: many looping-related discoveries
2015-01-20 17:54:35 +01:00
fincs
59009d531d
Partially fix csndChnGetState() and csndChnIsPlaying()
2015-01-20 17:54:33 +01:00
fincs
e943b25bc5
CSND: move waiting code to csndExecChnCmds()
2015-01-20 17:53:52 +01:00
fincs
b15eb566dd
Separate left & right volumes in CSND_ChnSetVol
2015-01-20 17:53:51 +01:00
fincs
dba29fe501
CSND: function renaming, refactoring, etc.
2015-01-20 17:53:51 +01:00
fincs
840088a02b
Begin CSND refactoring
2015-01-20 17:52:30 +01:00
Emmanuel Gil Peyrot
dc887e7ccf
add missing include for gfxScreen_t in console.h
2015-01-18 18:22:13 +01:00
mtheall
b7ec5341b9
Add UTF-8 <-> UTF-16 support.
2015-01-16 11:44:05 -06:00
Dave Murphy
0a3bb7bcad
allow for extenstion beyond 256 characters
2015-01-06 12:28:16 +00:00
smea
b7ab3f9a54
shbin.c cleanup, shaderInstanceGetUniformLocation
2015-01-02 21:22:37 -08:00
smea
5df4902c4e
GPU_SetUniform -> GPU_SetFloatUniform
2015-01-02 21:16:17 -08:00
smea
8b84747df3
updated gpu.c to use new convention
2015-01-02 21:14:03 -08:00
smea
d195917ec1
minifix + geoshader stride
2015-01-02 19:39:37 -08:00
smea
80e6bcfd34
shaderProgram
2015-01-02 19:16:23 -08:00
smea
cd05cc45ff
started work on shaderProgram
2015-01-02 17:15:44 -08:00
Dave Murphy
897498f0c1
add parameters to gfxInit, add gfxInitDefault function
2015-01-03 00:02:49 +00:00
Dave Murphy
abfb15af1b
use struct for channel status array
2015-01-02 22:42:12 +00:00
Dave Murphy
39605bc6e2
add macros for packing and aligning
2015-01-02 22:42:11 +00:00
smea
1b80b69e73
Merge branch 'master' into gpu_revamp
2014-12-31 13:35:40 -08:00
smea
3c4c2a6c04
Merge branch 'master' into gpu_revamp
2014-12-31 13:34:25 -08:00
profi200
18190a0237
Added more cfg:u cmds.
2014-12-29 23:31:15 +01:00
profi200
bb5c4a6ca8
Simplified reading the system language by adding a wrapper. Print only once in the get_system_language example.
2014-12-29 22:46:59 +01:00
smea
05e886c9fa
fixed up DVLE_SendOutmap
2014-12-27 11:22:48 -08:00
profi200
54f2afcb19
Added CFGU_GetConfigInfoBlk2() and an example.
2014-12-26 02:31:59 +01:00
smea
7f0d169c10
fixed hb naming
2014-12-24 21:06:09 -08:00
smea
8f9a2edd1a
additional HB stuff
2014-12-23 21:05:55 -08:00
smea
2c04f993d6
added HB service support (ninjhax only)
2014-12-23 20:47:00 -08:00
yellows8
1a72193dc5
Added qtm support + example.
2014-12-21 01:02:23 -05:00
mtheall
edf2c1c139
Add gfxGetScreenFormat().
2014-12-19 23:38:30 -06:00
smea
db11dd9bbc
GPUCMD_AddMaskedWrite, GPUCMD_AddWrite, GPUCMD_AddMaskedWrites, GPUCMD_AddWrites, GPUCMD_AddMaskedIncrementalWrites, GPUCMD_AddIncrementalWrites
2014-12-18 21:11:53 -08:00
smea
91f01e8280
added registers.h (for real this time)
2014-12-17 22:48:05 -08:00
smea
5f10c8ee74
added registers.h
2014-12-17 22:47:41 -08:00
smea
934f0f80b0
Revert "Merge branch 'master' of github.com:smealum/ctrulib"
...
This reverts commit f934dc0982
, reversing
changes made to 60edc69d73
.
2014-12-17 22:41:31 -08:00
smea
f934dc0982
Merge branch 'master' of github.com:smealum/ctrulib
2014-12-17 22:28:39 -08:00
smea
7692b4eb54
added registers.h
2014-12-17 22:28:26 -08:00
plutoo
f9dee4c2c0
Merge pull request #52 from Aurelio92/2-new-hid-function
...
Added 2 hid functions
2014-12-15 01:46:49 +01:00
fincs
99186f4258
Add a VRAM allocator
2014-12-14 17:47:34 +01:00
Dave Murphy
ee0a97f3ce
fix PM_LaunchFIRMSetParams and PM_LaunchTitle prototypes
2014-12-13 16:20:54 +00:00
Dave Murphy
ab3b081398
allow redirecting stderr to 3dmoo
2014-12-13 14:03:12 +00:00
Aurelio Mannara
9849deca01
Added 2 hid functions
...
-Added HIDUSER_GetGyroscopeRawToDpsCoefficient(float *coeff)
-Added HIDUSER_GetSoundVolume(u8 *volume)
2014-12-13 13:10:54 +01:00
Dave Murphy
2de946890d
support more codes
2014-12-13 02:51:57 +00:00
Dave Murphy
6a36d31568
use 3 intensity levels
2014-12-13 02:21:50 +00:00
Dave Murphy
493d7dc55a
add macro to convert 8bit RGB to RGB565
2014-12-12 22:57:24 +00:00
Dave Murphy
a39890ef48
allow console on either screen
2014-12-12 13:43:40 +00:00
smea
7d8a27fe14
Merge pull request #50 from yuriks/memperm-dontcare
...
Add MEMPERM_DONTCARE to MemPerm
2014-12-11 19:18:48 -08:00
Dave Murphy
a645436ebe
add console
2014-12-12 00:24:08 +00:00
Dave Murphy
36e3a3de3a
add macro for building RGB565 colors
2014-12-11 23:03:29 +00:00
Dave Murphy
1a575891eb
allow independent setting of double buffering
2014-12-11 22:24:15 +00:00
Yuri Kunde Schlesner
46c0a1763c
Add MEMPERM_DONTCARE to MemPerm
2014-12-11 16:44:09 -02:00
archshift
3da1a19f0c
Added CreateFile implementation, tested on hardware.
...
Information about using CreateFile was taken from Steel Diver: Sub Wars with the wonderful help of Citra.
2014-12-10 00:33:08 -08:00
Subv
a2d2f4483e
SVC: Implemented svcGetThreadId
2014-12-08 18:04:31 -05:00
smea
a9f68cde3b
Merge pull request #45 from Subv/semaphores
...
Added svcReleaseSemaphore and svcCreateSemaphore
2014-12-08 15:02:19 -08:00
mtheall
f02082048f
Update poll.h
2014-12-08 16:19:07 -06:00
mtheall
8536e1e6ef
Update poll.h
2014-12-08 12:12:34 -06:00
fincs
b5723c9209
Add gfxSetDoubleBuffering() for disabling double-buffering
2014-12-08 15:57:39 +01:00
Subv
a85c6edfaa
Added svcReleaseSemaphore and svcCreateSemaphore.
...
Tested.
2014-12-05 14:57:51 -05:00
fincs
377e753b7d
Add getThreadLocalStorage(), major cleanup in svc.h/svc.s
2014-12-05 14:13:18 +01:00
yellows8
7c13463969
Fixed FSUSER_IsSdmcDetected and FSUSER_IsSdmcWritable: the output is an u8 not u32.
2014-12-03 11:06:01 -05:00
fincs
ac0e9ef9ca
Add svcSetThreadPriority
2014-11-29 21:40:59 +01:00
Dave Murphy
ea97e7a529
stop polluting 3ds headers with extra system headers
2014-11-28 13:13:34 +00:00
yellows8
56b1c2755c
Added note about broken applet process termination with APT_LaunchLibraryApplet().
2014-11-28 01:26:20 -05:00
yellows8
58b988ab97
Added comments to GSP_FramebufferFormats for the pixel byte-sizes.
2014-11-27 11:27:21 -05:00
plutoo
c5aa5ebbbc
added gfxSetScreenFormat
2014-11-26 01:32:47 +01:00
smea
643bf59d80
Merge pull request #30 from Subv/cfgu_2
...
Added more cfg:u functions
2014-11-22 18:26:35 -08:00
smea
dfc9c12b9b
Merge pull request #36 from yuriks/fs-rename
...
Add FSUSER_RenameFile and FSUSER_RenameDirectory
2014-11-22 14:18:43 -08:00
Yuri Kunde Schlesner
2815cd84c4
Add FSUSER_RenameFile and FSUSER_RenameDirectory
2014-11-22 20:18:32 -02:00
Thibaut Girka
251c4d458f
Implement PTMU_GetShellState and PTMU_GetPedometerState
2014-11-22 22:04:34 +01:00
plutoo
2d697d6566
Merge pull request #31 from Subv/ptm_u
...
Added the PTMU_GetTotalStepCount function
2014-11-22 21:23:36 +01:00
smea
49c293e8bf
Merge pull request #33 from minexew/master
...
Fix error in GPU example
2014-11-22 10:51:12 -08:00
yellows8
240ab44f9c
Updated httpc code and added an example.
2014-11-22 00:43:39 -05:00
Subv
25d445818f
Added the PTMU_GetTotalStepCount function
2014-11-21 23:36:48 -05:00
Subv
0cc31baaea
Added more cfg:u functions
...
GetRegionCanadaUSA
GetModelNintendo2DS
GetCountryCodeString
2014-11-21 22:40:23 -05:00
Subv
8e8685b6e7
Addressed some style issues
2014-11-21 22:12:34 -05:00
Subv
e8c551b114
Added a file for the cfg:u service.
...
Implemented the CFGU_GetSystemModel function
2014-11-21 22:08:05 -05:00
fincs
b0c29ba658
Fix typo in soc_ioctl.c
2014-11-21 23:51:06 +01:00
Xeatheran Minexew
e7c3b7c8a1
Make SHDR_GetUniformRegister name argument const
2014-11-21 22:42:25 +01:00
yellows8
7281abfcd7
Added code for APT_IsRegistered. Added code for launching library applets, which isn't usable from the homebrew launcher atm.
2014-11-21 00:35:37 -05:00
mtheall
55608adaad
Overhauled soc service.
2014-11-20 15:36:50 -06:00
mtheall
919917b7ed
Added svcCreateAddressArbiter() and svcArbitrateAddress()
2014-11-20 15:33:21 -06:00
mtheall
9d1181ef50
Merge branch 'master' of github.com:smealum/ctrulib
2014-11-20 15:29:37 -06:00
mtheall
d2fca0f721
Add rbtree
2014-11-20 15:28:13 -06:00
smea
463f366e2b
added prototype to soc.h
2014-11-20 03:05:51 -08:00
smea
99a5c4406b
added APT_HardwareResetAsync (tested)
2014-11-19 17:25:40 -08:00
yellows8
ce226ec1b2
Updated mvd code and added an example.
2014-11-19 16:37:02 -05:00
mtheall
8a3f532967
Add sdmc.h
2014-11-17 22:33:09 -06:00
yellows8
224a05a39e
Merge pull request #22 from profi200/master
...
Added functions for launching other apps/applets
2014-11-17 23:22:03 -05:00
smea
b30a8d4d3d
gpu stuffs
2014-11-15 14:08:45 -08:00
profi200
aa2b5d1464
Little fix
2014-11-11 15:07:23 +01:00
StapleButter
6e9cd355a5
Scissor test.
...
(if calling SetScissorTest right after SetViewport, call FinishDrawing inbetween)
2014-11-11 00:12:31 +01:00
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
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
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
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
8f3997e3a7
PTM & AC stuff
2014-08-25 09:14:48 -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
3884ce985c
added gfx for simplified framebuffer access
2014-08-24 21:37:49 -07:00
smea
f9fbfc3c48
Merge branch 'refactor' of github.com:smealum/ctrulib into refactor
2014-08-24 21:01:35 -07:00
smea
d5ac7a7cb0
minor GSP adjustments
2014-08-24 21:01:21 -07:00
mtheall
c2315a618d
Merge branch 'refactor_mtheall' into refactor
2014-08-24 22:37:34 -05:00
plutoo
41c2a759f8
Merge branch 'refactor' of https://github.com/smealum/ctrulib into refactor
2014-08-24 22:51:19 +02:00
plutoo
65878d99c6
gsp: Update header as part of renaming.
2014-08-24 22:42:23 +02:00
mtheall
d5c39263d8
Add more filesystem service commands.
2014-08-21 21:47:25 -05:00
fincs
8fccb570e5
Homogenize indentation (use tabs)
2014-08-21 22:59:42 +02:00
plutoo
a0f8a6d153
os: Changed Get*Version format.
2014-08-21 22:35:20 +02:00
plutoo
ef1323a3a1
APT: Enumerated the notification signals.
2014-08-21 20:54:23 +02:00
plutoo
8c3ecfc621
os: Added functions for getting Firm/Kernel version.
2014-08-21 20:41:51 +02:00
plutoo
9ff9ce5ad4
os: Added osStrError().
...
This will summarize an error-code given by the OS/sysmodules in few words.
Useful for debugging.
2014-08-21 20:20:23 +02:00
plutoo
89e29dbe06
HID: Various improvements.
...
Added gyro enable/disable cmd.
Added accelerometer disable cmd.
Fixed hidInit() error handling.
hidInit() no longer enables accelerometer.
HIDUSER_GetInfo has been renamed to HIDUSER_GetSharedMem.
hid functions no longer require a NULL-ptr as arg0.
2014-08-21 20:08:08 +02:00
fincs
0e850119c9
HID: implement key/touch/circle pad access
2014-08-21 16:55:21 +02:00
fincs
9cef70bbd4
Remove #ifdef SRV_OVERRIDE_SUPPORT
2014-08-21 01:29:22 +02:00
fincs
af93d8e10c
gspWaitForEvent(): add nextEvent parameter; GSPEVENT_count -> '_MAX
2014-08-21 00:24:24 +02:00
fincs
0d3ed55b88
GSP: add basic event handling system
2014-08-21 00:09:39 +02:00
fincs
0a1d0403d1
__ctru_exit(): perform svcExitProcess() if there's no retAddr
2014-08-20 22:16:28 +02:00
smea
370707c663
use svcDuplicateHandle in handle override
2014-08-17 13:37:49 -07:00
smea
2b4a219f87
fsInit, fsExit
2014-08-16 17:11:13 -07:00
smea
aa7d9acbbe
enable srv override + __service_ptr fix
2014-08-16 15:11:33 -07:00
smea
4e3c18863b
various fixes
2014-08-16 14:48:05 -07:00
plutoo
d35233fb1c
Revamped "srv.c".
2014-07-28 23:26:13 +02:00
plutoo
ec9734bdeb
Moved OS module back out. Renamed functions.
2014-07-28 22:31:20 +02:00
plutoo
884df0ba75
Moved header files from ctr/ to 3ds/.
2014-07-28 21:41:48 +02:00
plutoo
15d2dc765d
Renamed svc_camelCase to svcCamelCase.
2014-07-28 20:58:47 +02:00
yellows8
7a54bb623a
Implemented svc_getProcessInfo(), and added comment to CSND.h. Implemented OS_ConvertVaddr2Physaddr() which is now used by CSND.c, this includes support for the v8.0 LINEAR memory.
2014-07-23 01:23:20 -04:00
smea
c4382042d6
HTTPC : added support for a handful of http:C commands. example will follow.
2014-07-22 21:13:40 -07:00
Dave Murphy
a18cc37dfa
add network headers, remove libnds dependencies
2014-06-04 13:23:50 +01:00
smea
4beea43184
Merge branch 'master' of github.com:smealum/ctrulib
...
Conflicts:
libctru/include/ctr/GSP.h
libctru/source/GSP.c
2014-05-27 20:49:50 +02:00
smea
2aae159782
minifix test.vsh
2014-05-27 20:47:53 +02:00
yellows8
4260edd6c9
Adjusted sleep-mode code so that the APP_STATUS on leaving sleep-mode, would be set to the status which was set when the prepare sleep-mode signal was triggered(and other minor changes).
2014-05-22 13:56:16 -04:00
yellows8
ce92c8b20d
Implemented APT_GetAppletManInfo. Implemented loading the menu AppID with APT_GetAppletManInfo, instead of using a hard-coded AppID.
2014-05-22 00:22:56 -04:00
yellows8
8c656065a4
Implemented more APT and GSPGPU commands. Improved return-to-menu handling, screenshots for the suspended application are now handled as well. Implemented power-button handling, and implemented sleep-mode handling. Updated the example apps for the APT changes, and fixed other issues with the examples.
2014-05-20 15:49:03 -04:00
ichfly
624775d80e
added prototype
2014-05-20 17:21:48 +02:00
Dave Murphy
e20c97a050
remove dodgy wchar type, use UINT64_MAX from stdint.h for U64_MAX
2014-05-07 17:19:33 +01:00
yellows8
4a1619f7c7
Added svc_signalEvent, svc_getSystemTick, and svc_getProcessId. Enabled using SOC cmd8/cmda, and other minor changes.
2014-04-27 21:28:48 -04:00
yellows8
c69bc04dff
Added GSPGPU code for SetBufferSwap and InvalidateDataCache.
2014-04-22 20:18:21 -04:00
yellows8
c5250ab567
Added code for the cfg:nor service.
2014-04-22 16:13:18 -04:00
yellows8
06dfc9aace
Added code for using the ir:u service.
2014-04-22 15:15:46 -04:00
yellows8
a3be8c58b3
Added code for using the ac:u service.
2014-04-21 22:58:05 -04:00
yellows8
9fcca821fe
Added code for using the CSND service.
2014-04-21 19:12:56 -04:00
smea
e9c912d757
GPU : GPU_SetTexEnv
2014-03-20 15:15:35 +01:00
smea
dbe4d95801
Merge branch 'master' of github.com:smealum/ctrulib
2014-03-20 14:41:10 +01:00
smea
a23ddb5bea
GPU : GPU_SetAttributeBuffers, GPU_SetStencilTest, GPU_SetFaceCulling
2014-03-20 14:40:57 +01:00
Jean Baptiste Noblot
782372b27c
risk to be platform dependent
...
I know. it's a feature
2014-03-20 09:27:12 +01:00
smea
1c2d235c64
GSP : critical fix in GSPGPU_submitGxCommand
...
GX : updated GX_SetMemoryFill
GPU : various crap
2014-03-19 23:23:53 +01:00
smea
9d68fa3d7a
APT && HID && GSP : don't ignore errors yo
2014-03-17 18:38:20 +01:00
smea
791e7ed4db
SHDR : updated DVLE_SendOutmap
2014-03-15 21:00:37 +01:00
smea
f3eb629d49
GPU : GPU_SetDepthTest
2014-03-14 21:29:42 +01:00
smea
8606893584
GPU : GPU_DepthRange && GPU_SetTexture
2014-03-13 19:54:52 +01:00
Jordan Rabet
7c7d25f911
SHDR : SHDR_GetUniformRegister (untested)
2014-03-13 15:50:43 +01:00
Jordan Rabet
1a01acbd8e
SHDR : uniform table (untested)
2014-03-13 15:34:01 +01:00
smea
bffbc975e2
GPU : added buffer setup commands to GPU_SetViewport
2014-03-12 20:11:34 +01:00
smea
21dbf5aa75
GPU : GPU_SetViewport
2014-03-12 18:28:25 +01:00
smea
fc708bddb6
GPU : GPU_Reset
2014-03-12 15:59:26 +01:00
smea
9bd8f1079a
SHDR : DVLE_SendConstants && SHDR_UseProgram
2014-03-11 22:50:07 +01:00
smea
cd5fb3ac6e
GPU : DVLE_SendOutmap fix
2014-03-11 20:18:57 +01:00
smea
0b44c62cc3
GX : GX_SetTextureCopy
2014-03-11 19:08:45 +01:00
smea
0761e6db1e
GPU : GPU_SetUniform
2014-03-09 16:38:55 +01:00
smea
5683e006d0
SHDR : untested
2014-03-08 12:43:16 +01:00
smea
df0d3f5114
GPU : cleanup
2014-03-02 18:05:04 +01:00
smea
69613a3914
GPU : command buffer stuff
2014-03-02 16:55:05 +01:00
smea
04b1425f86
GPU : initial code (untested)
2014-03-02 16:01:57 +01:00
smea
43844aa282
GX : implemented some GX commands
2014-03-02 14:53:51 +01:00
smea
a8d15ce5ae
HID : moved hidInit and hidExit into ctrulib
2014-02-03 18:21:17 +01:00
smea
2a518a9ae3
APT && misc : better app exiting code, fixed APPLICATION and BASE mem leak
2014-02-03 18:06:58 +01:00
smea
7c28d9acce
APT : added ability to specify APPID to aptInit
2014-02-01 19:56:36 +01:00
smea
30e765f52c
APT : preliminary support for exiting app
2014-02-01 13:27:52 +01:00
smea
4250f91d55
APT : preliminary/experimental return to menu support
2014-02-01 00:23:59 +01:00
smea
08afa38c10
misc : volatile types
2014-01-30 00:16:45 +01:00
smea
b974ac0775
Merge branch 'master' of github.com:smealum/ctrulib
2014-01-29 23:17:14 +01:00
smea
021911976f
APT : glanceparameter/receiveparameter
2014-01-29 23:17:02 +01:00
yellows8
4f5c8bba3c
Added code for using the socket service.
2014-01-28 19:35:40 -05:00
smea
d09a8f2e83
misc : libnds includes, Result => s32
2014-01-29 00:18:43 +01:00
smea
fca68b0d4e
svc : svc_createMemoryBlock
2014-01-28 23:50:51 +01:00
smea
9b9bbba181
srv : default srv handle
...
APT, GSP, HID : proper return values
2014-01-28 23:43:59 +01:00
smea
a8e5cb01f9
FS : FSUSER_OpenDirectory, FSUSER_OpenFile, FSDIR_Read
2014-01-28 18:36:54 +01:00
smea
fce1a24dbf
FS : renamed FSUSER_OpenFile to FSUSER_OpenFileDirectly; added FSUSER_OpenArchive
...
SDMC : added fs:USER example for loading from SDMC; requires proper exheader
2014-01-24 23:33:46 +01:00
smea
8dcc7e5cce
srv : mini-fix
...
FS : FSFILE_Write
2014-01-23 18:30:36 +01:00
smea
dd36d587eb
FS : started implementing FS services (thanks yellows8)
2014-01-22 22:35:46 +01:00
smea
f2d577a3e9
misc : renamed svc_getData to getThreadCommandBuffer and srv_10002 to srv_Initialize
2014-01-22 22:04:12 +01:00
smea
5d7e2c389f
APT : NS_APPID
2014-01-20 22:10:09 +01:00
smea
80b647d65e
APT : added some stuff, plus proper lock handle use in arm11u example.
2014-01-20 20:57:54 +01:00
smea
cced2fff79
various fixes
2014-01-19 21:49:01 +01:00
smea
345b7208cd
basic HID implementation
2014-01-19 13:33:28 +01:00
smea
0a6669dc01
initial commit
2014-01-18 23:18:03 +01:00