]> Chaos Git - corbenik/ctrulib.git/log
corbenik/ctrulib.git
9 years agoAdd lightweight synchronization primitives
fincs [Tue, 29 Sep 2015 22:07:42 +0000 (00:07 +0200)]
Add lightweight synchronization primitives

9 years agoMerge branch 'master' into great-refactor
fincs [Tue, 29 Sep 2015 21:21:45 +0000 (23:21 +0200)]
Merge branch 'master' into great-refactor

Conflicts:
libctru/include/3ds/services/apt.h
libctru/source/services/apt.c

9 years agoMerge pull request #170 from Lectem/patch-2
fincs [Tue, 29 Sep 2015 21:18:21 +0000 (23:18 +0200)]
Merge pull request #170 from Lectem/patch-2

document ArbitrateAddress + update ArbitrationType

9 years agoUpdate apt.h
smea [Mon, 28 Sep 2015 04:35:55 +0000 (21:35 -0700)]
Update apt.h

9 years agoMerge pull request #174 from Megazig/master
smea [Mon, 28 Sep 2015 04:32:58 +0000 (21:32 -0700)]
Merge pull request #174 from Megazig/master

implement APT_GetAppletInfo

9 years agoimplement APT_GetAppletInfo
megazig [Mon, 28 Sep 2015 04:30:16 +0000 (23:30 -0500)]
implement APT_GetAppletInfo

9 years agoMerge branch 'master' of github.com:smealum/ctrulib
smea [Sun, 27 Sep 2015 00:03:46 +0000 (17:03 -0700)]
Merge branch 'master' of github.com:smealum/ctrulib

9 years agoadded CFG_Region and CFG_Language enums
smea [Sun, 27 Sep 2015 00:03:42 +0000 (17:03 -0700)]
added CFG_Region and CFG_Language enums

9 years agoDSP code format cleanup
fincs [Fri, 25 Sep 2015 20:06:51 +0000 (22:06 +0200)]
DSP code format cleanup

9 years agoMerge branch 'master' into great-refactor
fincs [Fri, 25 Sep 2015 14:16:10 +0000 (16:16 +0200)]
Merge branch 'master' into great-refactor

Conflicts:
libctru/include/3ds/services/apt.h
libctru/source/services/apt.c

9 years agoImplemented http service-cmd code for GetResponseHeader.
yellows8 [Thu, 24 Sep 2015 17:04:18 +0000 (13:04 -0400)]
Implemented http service-cmd code for GetResponseHeader.

9 years agoAdded APT_GetAppletProgramInfo.
yellows8 [Thu, 24 Sep 2015 08:26:48 +0000 (04:26 -0400)]
Added APT_GetAppletProgramInfo.

9 years agoMerge pull request #172 from Steveice10/master
fincs [Wed, 23 Sep 2015 08:14:55 +0000 (10:14 +0200)]
Merge pull request #172 from Steveice10/master

Fix reading accelerometer and gyroscope entries.

9 years agoFix reading accelerometer and gyroscope entries.
Steven Smith [Wed, 23 Sep 2015 02:12:52 +0000 (19:12 -0700)]
Fix reading accelerometer and gyroscope entries.

9 years agodocument ArbitrateAddress + update ArbitrationType
Lectem [Sat, 19 Sep 2015 03:04:20 +0000 (23:04 -0400)]
document ArbitrateAddress + update ArbitrationType

This has been tested on n3ds 9.9.

9 years agoMerge branch 'master' into great-refactor
fincs [Fri, 18 Sep 2015 21:17:28 +0000 (23:17 +0200)]
Merge branch 'master' into great-refactor

9 years agoAdd romfsInitFromFile()
fincs [Fri, 18 Sep 2015 21:17:12 +0000 (23:17 +0200)]
Add romfsInitFromFile()

9 years agoRestore service session parameter in FSUSER_Initialize()
fincs [Wed, 16 Sep 2015 21:58:12 +0000 (23:58 +0200)]
Restore service session parameter in FSUSER_Initialize()

9 years agoAdd srvGetServiceHandleDirect()
fincs [Wed, 16 Sep 2015 21:57:28 +0000 (23:57 +0200)]
Add srvGetServiceHandleDirect()

9 years agoMerge branch 'master' into great-refactor
fincs [Tue, 15 Sep 2015 09:47:55 +0000 (11:47 +0200)]
Merge branch 'master' into great-refactor

9 years agoMerge pull request #169 from yuriks/gsp-racecond
smea [Tue, 15 Sep 2015 05:52:08 +0000 (22:52 -0700)]
Merge pull request #169 from yuriks/gsp-racecond

GSP: Use atomics in interrupt reading loop

9 years agoGSP: Use atomics in interrupt reading loop
Yuri Kunde Schlesner [Mon, 14 Sep 2015 22:26:37 +0000 (19:26 -0300)]
GSP: Use atomics in interrupt reading loop

9 years agoMerge branch 'great-refactor' of github.com:smealum/ctrulib into great-refactor
fincs [Sun, 13 Sep 2015 16:41:18 +0000 (18:41 +0200)]
Merge branch 'great-refactor' of github.com:smealum/ctrulib into great-refactor

9 years agoAdd fragment lighting register names, enumerations, etc
fincs [Sun, 13 Sep 2015 16:40:37 +0000 (18:40 +0200)]
Add fragment lighting register names, enumerations, etc

9 years agoMerge pull request #167 from Lectem/fixIPCdoc
fincs [Wed, 9 Sep 2015 21:34:10 +0000 (23:34 +0200)]
Merge pull request #167 from Lectem/fixIPCdoc

Fix IPC_MakeHeader documentation

9 years agoFixed and enhanced IPC_MakeHeader documentation
Lectem [Wed, 9 Sep 2015 21:30:12 +0000 (17:30 -0400)]
Fixed and enhanced IPC_MakeHeader documentation

9 years agoMerge pull request #165 from Lectem/dsp
fincs [Wed, 9 Sep 2015 13:56:21 +0000 (15:56 +0200)]
Merge pull request #165 from Lectem/dsp

Dsp fixes

9 years agoFormatting and fixes for DSP
Lectem [Wed, 9 Sep 2015 13:48:40 +0000 (09:48 -0400)]
Formatting and fixes for DSP

9 years agoBetter enum IPC_BufferRights
Lectem [Wed, 9 Sep 2015 13:11:15 +0000 (09:11 -0400)]
Better enum IPC_BufferRights

9 years ago() -> (void), again
fincs [Tue, 8 Sep 2015 23:47:30 +0000 (01:47 +0200)]
() -> (void), again

9 years agoMerge branch 'master' into great-refactor
fincs [Tue, 8 Sep 2015 23:46:00 +0000 (01:46 +0200)]
Merge branch 'master' into great-refactor

9 years agoMerge pull request #161 from Steveice10/master
fincs [Tue, 8 Sep 2015 23:45:32 +0000 (01:45 +0200)]
Merge pull request #161 from Steveice10/master

Add cam:u support and basic documentation.

9 years agoAdd cam:u support and basic documentation.
Steven Smith [Thu, 3 Sep 2015 06:22:45 +0000 (23:22 -0700)]
Add cam:u support and basic documentation.

9 years agoAdd some more GPU enum values from the 3dbrew wiki
fincs [Tue, 8 Sep 2015 18:55:43 +0000 (20:55 +0200)]
Add some more GPU enum values from the 3dbrew wiki

9 years agoMerge branch 'master' into great-refactor
fincs [Tue, 8 Sep 2015 18:54:37 +0000 (20:54 +0200)]
Merge branch 'master' into great-refactor

9 years agoMerge pull request #163 from Megazig/master
fincs [Tue, 8 Sep 2015 18:54:08 +0000 (20:54 +0200)]
Merge pull request #163 from Megazig/master

added new NS_APPID values for latest apt module

9 years agoMerge pull request #164 from Lectem/dsp
fincs [Tue, 8 Sep 2015 18:53:29 +0000 (20:53 +0200)]
Merge pull request #164 from Lectem/dsp

IPC stuff and DSP service commands

9 years agoAdded DSP service commands
Lectem [Tue, 8 Sep 2015 18:07:59 +0000 (14:07 -0400)]
Added DSP service commands

9 years agoAdded IPC helpers
Lectem [Tue, 8 Sep 2015 18:07:03 +0000 (14:07 -0400)]
Added IPC helpers

9 years agoadded new NS_APPID values for latest apt module
megazig [Tue, 8 Sep 2015 17:02:45 +0000 (12:02 -0500)]
added new NS_APPID values for latest apt module

9 years agoSync register names with 3dbrew wiki
fincs [Mon, 7 Sep 2015 17:31:02 +0000 (19:31 +0200)]
Sync register names with 3dbrew wiki

9 years agoRename GX commands
fincs [Mon, 7 Sep 2015 10:53:37 +0000 (12:53 +0200)]
Rename GX commands

9 years agoMerge branch 'master' into great-refactor
fincs [Mon, 7 Sep 2015 10:38:09 +0000 (12:38 +0200)]
Merge branch 'master' into great-refactor

9 years agoChange default linear/VRAM mem alignment to 0x80 (for GPU textures)
fincs [Mon, 7 Sep 2015 10:37:55 +0000 (12:37 +0200)]
Change default linear/VRAM mem alignment to 0x80 (for GPU textures)

9 years agoFix examples
fincs [Sun, 6 Sep 2015 16:22:12 +0000 (18:22 +0200)]
Fix examples

9 years agoAdd missing (void) to functions without arguments
fincs [Sun, 6 Sep 2015 16:13:31 +0000 (18:13 +0200)]
Add missing (void) to functions without arguments

9 years agoRemove service handle parameter from GSPGPU IPC wrappers
fincs [Sun, 6 Sep 2015 16:04:03 +0000 (18:04 +0200)]
Remove service handle parameter from GSPGPU IPC wrappers

9 years agoRemove service handle parameter from FSUSER IPC wrappers
fincs [Sun, 6 Sep 2015 15:54:36 +0000 (17:54 +0200)]
Remove service handle parameter from FSUSER IPC wrappers

9 years agoRemove service handle parameter from APT IPC wrappers
fincs [Sun, 6 Sep 2015 15:41:47 +0000 (17:41 +0200)]
Remove service handle parameter from APT IPC wrappers

9 years agoMerge branch 'master' into great-refactor
fincs [Sat, 5 Sep 2015 20:14:34 +0000 (22:14 +0200)]
Merge branch 'master' into great-refactor

Conflicts:
libctru/source/gpu/gpu.c

9 years agoMerge pull request #162 from yuriks/float-conversions
fincs [Sat, 5 Sep 2015 20:09:33 +0000 (22:09 +0200)]
Merge pull request #162 from yuriks/float-conversions

GPU: Clean up float conversion functions

9 years agoGPU: Clean up float conversion functions
Yuri Kunde Schlesner [Sat, 5 Sep 2015 19:55:45 +0000 (16:55 -0300)]
GPU: Clean up float conversion functions

9 years agoRemove the broken GPU reset sequence which is never executed
fincs [Sat, 5 Sep 2015 19:31:16 +0000 (21:31 +0200)]
Remove the broken GPU reset sequence which is never executed

9 years agoMake some internal shader loading helper functions private/static
fincs [Sat, 5 Sep 2015 18:30:24 +0000 (20:30 +0200)]
Make some internal shader loading helper functions private/static

9 years agoRemove u32* gxbuf parameter in GX/GPU functions
fincs [Sat, 5 Sep 2015 18:24:55 +0000 (20:24 +0200)]
Remove u32* gxbuf parameter in GX/GPU functions

9 years agoStart the Great Refactor with some GPU refactoring/deprecating
fincs [Sat, 5 Sep 2015 18:16:47 +0000 (20:16 +0200)]
Start the Great Refactor with some GPU refactoring/deprecating

9 years agoCorrect GPU_DrawArray() parameter order, fix GPU examples
fincs [Sat, 5 Sep 2015 16:02:06 +0000 (18:02 +0200)]
Correct GPU_DrawArray() parameter order, fix GPU examples

9 years agoMerge pull request #155 from Subv/vertex_offset
fincs [Sat, 5 Sep 2015 15:59:37 +0000 (17:59 +0200)]
Merge pull request #155 from Subv/vertex_offset

Use register 0x22A (GPUREG_DRAW_VERTEX_OFFSET) when using GPU_DrawArrays

9 years agoMerge pull request #157 from endrift/master
fincs [Sat, 5 Sep 2015 15:50:12 +0000 (17:50 +0200)]
Merge pull request #157 from endrift/master

Fix building on FreeBSD

9 years agoMerge pull request #159 from Lectem/documentation
fincs [Sat, 5 Sep 2015 15:46:49 +0000 (17:46 +0200)]
Merge pull request #159 from Lectem/documentation

documentation for the soc service and svcCreateMemoryBlock

9 years agoMerge pull request #156 from Dazzozo/yay-svcs
fincs [Sat, 5 Sep 2015 15:45:37 +0000 (17:45 +0200)]
Merge pull request #156 from Dazzozo/yay-svcs

svc: add a few more SVC bindings

9 years agoMerge pull request #150 from Megazig/master
fincs [Sat, 5 Sep 2015 15:44:26 +0000 (17:44 +0200)]
Merge pull request #150 from Megazig/master

PS service key type and socket functionality

9 years agoAdded getThreadStaticBuffers for IPC
Lectem [Tue, 1 Sep 2015 19:28:52 +0000 (15:28 -0400)]
Added getThreadStaticBuffers for IPC

9 years agoAdded pseudo handles for current proc and thread
Lectem [Mon, 31 Aug 2015 03:30:53 +0000 (23:30 -0400)]
Added pseudo handles for current proc and thread

9 years agodocumentation for svcCreateMemoryBlock
Lectem [Thu, 27 Aug 2015 21:36:27 +0000 (17:36 -0400)]
documentation for svcCreateMemoryBlock

9 years agodocumentation for the soc service
Lectem [Thu, 27 Aug 2015 20:55:15 +0000 (16:55 -0400)]
documentation for the soc service

9 years agoAdd RomFS example
fincs [Thu, 27 Aug 2015 23:19:19 +0000 (01:19 +0200)]
Add RomFS example

9 years agoromfs_dev.c: use correct file closing function
fincs [Thu, 27 Aug 2015 19:16:27 +0000 (21:16 +0200)]
romfs_dev.c: use correct file closing function

9 years agoAdd work in progress RomFS driver/devoptab
fincs [Thu, 27 Aug 2015 18:53:08 +0000 (20:53 +0200)]
Add work in progress RomFS driver/devoptab

9 years agoFix building on FreeBSD
Jeffrey Pfau [Thu, 27 Aug 2015 08:04:28 +0000 (01:04 -0700)]
Fix building on FreeBSD

9 years agosvc: add a few more SVC bindings
Daz Jones [Sun, 23 Aug 2015 19:27:31 +0000 (20:27 +0100)]
svc: add a few more SVC bindings

Mostly debug and IPC related.

9 years agoUse register 0x22A (GPUREG_DRAW_VERTEX_OFFSET) when using GPU_DrawArrays.
Subv [Sun, 23 Aug 2015 03:15:27 +0000 (22:15 -0500)]
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.

9 years agoGPU_KEEP -> GPU_STENCIL_KEEP in GPU examples
fincs [Sat, 22 Aug 2015 21:14:38 +0000 (23:14 +0200)]
GPU_KEEP -> GPU_STENCIL_KEEP in GPU examples

9 years agoMerge remote-tracking branch 'pr149/master'
fincs [Sat, 22 Aug 2015 21:12:32 +0000 (23:12 +0200)]
Merge remote-tracking branch 'pr149/master'

9 years agoMerge pull request #154 from Subv/tev_buffer_color
fincs [Sat, 22 Aug 2015 19:20:37 +0000 (21:20 +0200)]
Merge pull request #154 from Subv/tev_buffer_color

GPU: Added code to manipulate the combiner buffer.

9 years agoMerge pull request #152 from Subv/stencil
fincs [Sat, 22 Aug 2015 19:20:31 +0000 (21:20 +0200)]
Merge pull request #152 from Subv/stencil

Added the rest of the stencil operations and corrected their names.

9 years agoGPU: Added code to manipulate the combiner buffer.
Subv [Sat, 22 Aug 2015 15:53:52 +0000 (10:53 -0500)]
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.

9 years agoAdded the rest of the stencil operations and corrected their names.
Subv [Fri, 21 Aug 2015 20:07:30 +0000 (15:07 -0500)]
Added the rest of the stencil operations and corrected their names.

9 years agoRevert g_srv_handle change because srvGetSessionHandle() already existed
fincs [Wed, 19 Aug 2015 11:29:24 +0000 (13:29 +0200)]
Revert g_srv_handle change because srvGetSessionHandle() already existed

9 years agoupdate definition of gethostbyaddr
megazig [Tue, 18 Aug 2015 22:15:21 +0000 (17:15 -0500)]
update definition of gethostbyaddr

9 years agomove h_errno definition to soc_common
megazig [Tue, 18 Aug 2015 21:55:50 +0000 (16:55 -0500)]
move h_errno definition to soc_common
add h_addr member to hostent structure
implement gethostbyaddr

9 years agoadd key type 9 (NFC) for ps service
megazig [Tue, 18 Aug 2015 21:54:22 +0000 (16:54 -0500)]
add key type 9 (NFC) for ps service

9 years agoMerge branch 'master' of github.com:smealum/ctrulib
smea [Tue, 18 Aug 2015 04:31:04 +0000 (21:31 -0700)]
Merge branch 'master' of github.com:smealum/ctrulib

9 years agoam:sys stuff, g_serv_handle non static and qtm example label
smea [Tue, 18 Aug 2015 04:31:00 +0000 (21:31 -0700)]
am:sys stuff, g_serv_handle non static and qtm example label

9 years agoFix gpu example Makefiles for latest picasso
Luke Street [Mon, 17 Aug 2015 16:00:28 +0000 (12:00 -0400)]
Fix gpu example Makefiles for latest picasso

9 years agoMerge pull request #146 from Lectem/fixy2r
fincs [Sun, 9 Aug 2015 22:58:54 +0000 (00:58 +0200)]
Merge pull request #146 from Lectem/fixy2r

Fixed transfer unit and gap type and added a warning

9 years agoFixed transfer unit and gap type and added a warning
Lectem [Sun, 9 Aug 2015 22:32:41 +0000 (00:32 +0200)]
Fixed transfer unit and gap type and added a warning

9 years agoRevert 73e0267a because it breaks all existing GPU code
fincs [Tue, 4 Aug 2015 17:31:46 +0000 (19:31 +0200)]
Revert 73e0267a because it breaks all existing GPU code

9 years agoMerge pull request #143 from aroulin/fix-gpu-reset
smea [Fri, 24 Jul 2015 20:15:58 +0000 (13:15 -0700)]
Merge pull request #143 from aroulin/fix-gpu-reset

Fix GPU_Reset having wrong GSP command buffer

9 years agoFix GPU_Reset having wrong GSP command buffer
aroulin [Fri, 24 Jul 2015 19:49:49 +0000 (21:49 +0200)]
Fix GPU_Reset having wrong GSP command buffer

9 years agoMerge pull request #142 from Lectem/documentation
fincs [Thu, 23 Jul 2015 20:55:24 +0000 (22:55 +0200)]
Merge pull request #142 from Lectem/documentation

Some documentation

9 years agoadded gpu examples to doc
Lectem [Thu, 23 Jul 2015 20:41:13 +0000 (22:41 +0200)]
added gpu examples to doc

9 years agoDocumented GX TRANSFER_SCALE and FILL_CONTROL
Lectem [Thu, 23 Jul 2015 19:23:50 +0000 (21:23 +0200)]
Documented GX TRANSFER_SCALE and FILL_CONTROL

9 years agofixed y2r doc and added csnd pan/vol ranges
Lectem [Sat, 11 Jul 2015 18:37:31 +0000 (20:37 +0200)]
fixed y2r doc and added csnd pan/vol  ranges

9 years agoAdd new GPU examples
fincs [Wed, 22 Jul 2015 17:41:59 +0000 (19:41 +0200)]
Add new GPU examples

9 years agoMerge pull request #140 from Lectem/patch-3
fincs [Sun, 19 Jul 2015 22:52:10 +0000 (00:52 +0200)]
Merge pull request #140 from Lectem/patch-3

Fixed wrap_s and wrap_t

9 years agoFixed wrap_s and wrap_t
Lectem [Sun, 19 Jul 2015 22:20:35 +0000 (00:20 +0200)]
Fixed wrap_s and wrap_t

Those were swapped.

9 years agoadded ac:i support
smea [Thu, 16 Jul 2015 06:40:11 +0000 (23:40 -0700)]
added ac:i support

9 years agoadded support for qtm:s and qtm:sp
smea [Tue, 14 Jul 2015 06:01:50 +0000 (23:01 -0700)]
added support for qtm:s and qtm:sp

9 years agoadded hid:SPVR support
smea [Tue, 14 Jul 2015 06:00:52 +0000 (23:00 -0700)]
added hid:SPVR support