Commit Graph

959 Commits

Author SHA1 Message Date
fincs
8e052004d5 Merge branch 'master' into great-refactor
Conflicts:
	libctru/include/3ds/services/gsp.h
	libctru/source/services/gsp.c
2015-10-03 18:46:04 +02:00
fincs
5c7273ef3b Merge pull request #176 from thedax/gspLcd
Implement some services from gsp::Lcd.
2015-10-03 18:42:50 +02:00
profi200
b9f7f74b58 Renamed TitleList to AM_TitleEntry. 2015-10-03 18:37:47 +02:00
fincs
5788134dc5 Fix broken srv code 2015-10-03 13:41:08 +02:00
Lectem
a117a287fd Use IPC helpers for srv 2015-10-03 07:23:33 -04:00
Lectem
123d8c6d6e Use IPC helpers for y2r 2015-10-03 06:59:19 -04:00
Lectem
deb7518153 Use IPC helpers for soc 2015-10-03 06:59:17 -04:00
Lectem
fa06930406 Use IPC helpers for qtm 2015-10-03 06:59:15 -04:00
Lectem
362a3fce41 Use IPC helpers for ptm 2015-10-03 06:59:13 -04:00
Lectem
64b32816cf Use IPC helpers for ps 2015-10-03 06:59:11 -04:00
Lectem
8dd1bbb0ce Use IPC helpers for pm 2015-10-03 06:59:10 -04:00
Lectem
d97d5f26a4 Use IPC helpers for ns 2015-10-03 06:59:08 -04:00
Lectem
04dd31220c Use IPC helpers for news 2015-10-03 06:59:06 -04:00
Lectem
63f7918868 Use IPC helpers for mvd 2015-10-03 06:59:04 -04:00
Lectem
1863bc2e35 Use IPC helpers for mic 2015-10-03 06:59:02 -04:00
Lectem
a65ae90b36 Use IPC helpers for irrst 2015-10-03 06:59:00 -04:00
Lectem
8f00d34099 Use IPC helpers for ir 2015-10-03 06:58:58 -04:00
Lectem
8975e848d7 Use IPC helpers for httpc 2015-10-03 06:58:56 -04:00
Lectem
44d9f0e940 Use IPC helpers for hid 2015-10-03 06:58:54 -04:00
Lectem
db9d0a69eb Use IPC helpers for hb 2015-10-03 06:58:52 -04:00
Lectem
5e6440b9b7 Use IPC helpers for fs 2015-10-03 06:58:43 -04:00
Lectem
d074d819ff Use IPC helpers for csnd 2015-10-03 06:56:26 -04:00
Lectem
375f5e497d Use IPC helpers for cfgu 2015-10-03 06:56:24 -04:00
Lectem
383acf6575 Use IPC helpers for cfgnor 2015-10-03 06:56:22 -04:00
Lectem
bc3ef580b2 Use IPC helpers for apt, and update some commands 2015-10-03 06:56:11 -04:00
Lectem
b9d51cbd87 Use IPC helpers for am 2015-10-03 06:43:47 -04:00
Lectem
1c002fc034 Use IPC helpers for ac 2015-10-03 06:43:45 -04:00
fincs
8912773f21 Merge branch 'master' into great-refactor
Conflicts:
	libctru/include/3ds/services/apt.h
	libctru/include/3ds/services/fs.h
	libctru/source/services/apt.c
2015-10-03 12:39:09 +02:00
smea
c765e3b559 Update fs.c 2015-10-02 23:10:38 -07:00
smea
8e43355620 Merge branch 'patch-1' of github.com:smealum/ctrulib 2015-10-02 23:07:46 -07:00
smea
87b9d1302a Added FSUSER_GetMediaType 2015-10-02 23:05:30 -07:00
thedax
04ddaff8cd Return the svcSendSyncRquest value if not equal to zero.
Otherwise, return cmdbuf[1].
2015-10-02 21:01:19 -04:00
fincs
89e0bcd8cc NDSP: add mechanism to load the component from an external source 2015-10-02 23:58:02 +02:00
fincs
f1ce480ed9 Add a work-in-progress API for using Nintendo's default DSP component 2015-10-02 21:54:18 +02:00
thedax
861c0a10b5 Change the enum to use BIT and replace u32 with the enum type. 2015-10-01 13:04:21 -04:00
suloku
b6817008ac Update apt.c 2015-10-01 19:01:31 +02:00
suloku
76e3cb0721 Implement APT_GetProgramID 2015-10-01 17:19:13 +02:00
suloku
2dc74a81ab Update apt.h 2015-10-01 17:18:17 +02:00
thedax
5426fba742 Add an enum to make using the gsp::Lcd service a little nicer. 2015-09-30 20:14:10 -04:00
thedax
7bad79e8b4 Implement some services from gsp::Lcd.
http://www.3dbrew.org/wiki/GSP_Services
2015-09-30 18:21:49 -04:00
fincs
9e43411a0e LightLock: avoid the svcArbitrateAddress() call if no thread is waiting 2015-09-30 22:39:57 +02:00
fincs
abd104fae7 Initialize light primitive system if needed 2015-09-30 00:35:01 +02:00
fincs
72ea825b2d Move __clrex/__ldrex/__strex to synchronization.h 2015-09-30 00:20:05 +02:00
fincs
95f63f280d Add lightweight synchronization primitives 2015-09-30 00:07:42 +02:00
fincs
4603b972fa Merge branch 'master' into great-refactor
Conflicts:
	libctru/include/3ds/services/apt.h
	libctru/source/services/apt.c
2015-09-29 23:21:45 +02:00
fincs
6590ed3fad Merge pull request #170 from Lectem/patch-2
document ArbitrateAddress + update ArbitrationType
2015-09-29 23:18:21 +02:00
smea
56b56955c0 Update apt.h 2015-09-27 21:35:55 -07:00
smea
520332e49e Update apt.h 2015-09-27 21:34:47 -07:00
megazig
27b5a49c59 implement APT_GetAppletInfo 2015-09-27 23:30:16 -05:00
smea
c6192c331b Merge branch 'master' of github.com:smealum/ctrulib 2015-09-26 17:03:46 -07:00
smea
066d8873d3 added CFG_Region and CFG_Language enums 2015-09-26 17:03:42 -07:00
fincs
c9a75d6a18 DSP code format cleanup 2015-09-25 22:06:51 +02:00
fincs
649e95cd39 Merge branch 'master' into great-refactor
Conflicts:
	libctru/include/3ds/services/apt.h
	libctru/source/services/apt.c
2015-09-25 16:16:10 +02:00
yellows8
2b467b48b8 Implemented http service-cmd code for GetResponseHeader. 2015-09-24 13:04:18 -04:00
yellows8
31b724a431 Added APT_GetAppletProgramInfo. 2015-09-24 04:26:48 -04:00
Steven Smith
2836b696bd Fix reading accelerometer and gyroscope entries. 2015-09-22 19:12:52 -07:00
Lectem
0a66043e56 document ArbitrateAddress + update ArbitrationType
This has been tested on n3ds 9.9.
2015-09-18 23:04:20 -04:00
fincs
cd05ca0887 Merge branch 'master' into great-refactor 2015-09-18 23:17:28 +02:00
fincs
bf1f162549 Add romfsInitFromFile() 2015-09-18 23:17:12 +02:00
fincs
6892a71eec Restore service session parameter in FSUSER_Initialize() 2015-09-16 23:58:12 +02:00
fincs
e409f1ea1d Add srvGetServiceHandleDirect() 2015-09-16 23:57:28 +02:00
fincs
04ed53659a Merge branch 'master' into great-refactor 2015-09-15 11:47:55 +02:00
Yuri Kunde Schlesner
d08707e3ca GSP: Use atomics in interrupt reading loop 2015-09-15 02:44:40 -03:00
fincs
aa2153700e Merge branch 'great-refactor' of github.com:smealum/ctrulib into great-refactor 2015-09-13 18:41:18 +02:00
fincs
c99707ada4 Add fragment lighting register names, enumerations, etc 2015-09-13 18:40:37 +02:00
Lectem
0f89778297 Fixed and enhanced IPC_MakeHeader documentation 2015-09-09 17:30:12 -04:00
fincs
730899bee6 Merge pull request #165 from Lectem/dsp
Dsp fixes
2015-09-09 15:56:21 +02:00
Lectem
a68ee14632 Formatting and fixes for DSP 2015-09-09 09:48:40 -04:00
Lectem
77c843f898 Better enum IPC_BufferRights 2015-09-09 09:11:15 -04:00
fincs
9bf546da45 () -> (void), again 2015-09-09 01:47:30 +02:00
fincs
62aa4d8ab0 Merge branch 'master' into great-refactor 2015-09-09 01:46:00 +02:00
fincs
ce59e60193 Merge pull request #161 from Steveice10/master
Add cam:u support and basic documentation.
2015-09-09 01:45:32 +02:00
Steven Smith
9d3b139255 Add cam:u support and basic documentation. 2015-09-08 16:26:56 -07:00
fincs
0ace45a746 Add some more GPU enum values from the 3dbrew wiki 2015-09-08 20:55:43 +02:00
fincs
428a837224 Merge branch 'master' into great-refactor 2015-09-08 20:54:37 +02:00
fincs
c9ad04f70a Merge pull request #164 from Lectem/dsp
IPC stuff and DSP service commands
2015-09-08 20:53:29 +02:00
Lectem
d227918edc Added DSP service commands 2015-09-08 14:25:51 -04:00
Lectem
0d7072ecd2 Added IPC helpers 2015-09-08 14:25:39 -04:00
megazig
6d1f409dfd added new NS_APPID values for latest apt module 2015-09-08 12:02:45 -05:00
fincs
fded98b9ed Sync register names with 3dbrew wiki 2015-09-07 19:31:02 +02:00
fincs
c594170fca Rename GX commands 2015-09-07 12:53:37 +02:00
fincs
530849a4b0 Merge branch 'master' into great-refactor 2015-09-07 12:38:09 +02:00
fincs
e352f3befd Change default linear/VRAM mem alignment to 0x80 (for GPU textures) 2015-09-07 12:37:55 +02:00
fincs
0d7a7f4d7d Add missing (void) to functions without arguments 2015-09-06 18:13:31 +02:00
fincs
1817f90c6d Remove service handle parameter from GSPGPU IPC wrappers 2015-09-06 18:04:03 +02:00
fincs
053c71ad08 Remove service handle parameter from FSUSER IPC wrappers 2015-09-06 17:54:36 +02:00
fincs
9b1e6bfc39 Remove service handle parameter from APT IPC wrappers 2015-09-06 17:41:47 +02:00
fincs
15af3eff30 Merge branch 'master' into great-refactor
Conflicts:
	libctru/source/gpu/gpu.c
2015-09-05 22:14:34 +02:00
Yuri Kunde Schlesner
407dcd141d GPU: Clean up float conversion functions 2015-09-05 16:55:45 -03:00
fincs
2707bfad93 Remove the broken GPU reset sequence which is never executed 2015-09-05 21:31:16 +02:00
fincs
604b1f4b43 Make some internal shader loading helper functions private/static 2015-09-05 20:30:24 +02:00
fincs
696ac996d1 Remove u32* gxbuf parameter in GX/GPU functions 2015-09-05 20:24:55 +02:00
fincs
5fd4a726ff Start the Great Refactor with some GPU refactoring/deprecating 2015-09-05 20:16:47 +02:00
fincs
11a5001f33 Correct GPU_DrawArray() parameter order, fix GPU examples 2015-09-05 18:02:06 +02:00
fincs
2e43fd1a40 Merge pull request #155 from Subv/vertex_offset
Use register 0x22A (GPUREG_DRAW_VERTEX_OFFSET) when using GPU_DrawArrays
2015-09-05 17:59:37 +02:00
fincs
6b45f5a01c Merge pull request #157 from endrift/master
Fix building on FreeBSD
2015-09-05 17:50:12 +02:00
fincs
e7e21fa9d5 Merge pull request #159 from Lectem/documentation
documentation for the soc service and svcCreateMemoryBlock
2015-09-05 17:46:49 +02:00
fincs
2a0e9655a6 Merge pull request #156 from Dazzozo/yay-svcs
svc: add a few more SVC bindings
2015-09-05 17:45:37 +02:00
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
a046b5a19f romfs_dev.c: use correct file closing function 2015-08-27 21:16:27 +02:00
fincs
570ea2ebd2 Add work in progress RomFS driver/devoptab 2015-08-27 20:53:08 +02:00
Jeffrey Pfau
0eac970aa1 Fix building on FreeBSD 2015-08-27 01:04:32 -07: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
fincs
8ec9b514b0 Merge pull request #152 from Subv/stencil
Added the rest of the stencil operations and corrected their names.
2015-08-22 21:20:31 +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
fincs
35a36b1885 Revert g_srv_handle change because srvGetSessionHandle() already existed 2015-08-19 13:29:24 +02: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
smea
c49d5f49c2 Merge branch 'master' of github.com:smealum/ctrulib 2015-08-17 21:31:04 -07:00
smea
91c98308e2 am:sys stuff, g_serv_handle non static and qtm example label 2015-08-17 21:31:00 -07:00
Lectem
8d36f3f03b Fixed transfer unit and gap type and added a warning 2015-08-10 00:44:55 +02:00
fincs
40d972d5ba Revert 73e0267a because it breaks all existing GPU code 2015-08-04 19:31:46 +02:00
aroulin
73e0267ae4 Fix GPU_Reset having wrong GSP command buffer 2015-07-24 21:49:49 +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
smea
096bbdf401 added ac:i support 2015-07-15 23:40:11 -07:00
smea
acdb6e5c72 added support for qtm:s and qtm:sp 2015-07-13 23:01:50 -07:00
smea
00eb8c38dc added hid:SPVR support 2015-07-13 23:00:52 -07:00
smea
e539c83d58 Merge branch 'master' of github.com:smealum/ctrulib 2015-07-12 15:31:57 -07:00
smea
ea88f92464 fixed SOC device madness 2015-07-12 15:19:36 -07:00
Lectem
d0dd07d8f4 Fixed command code for Y2RU_SetConversionParams 2015-07-11 15:51:06 +02:00
smea
9fac0a0ea1 socMemhandle should be closed even if shutdown command fails 2015-07-07 19:52:18 -07: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
yellows8
8e620c269d Fixed socket() error handling when cmdbuf[2] is actually an error-code, not a handle. In socket(), write SYNC_ERROR to errno when an error occurs due to cmdbuf[1]. 2015-07-02 18:53:16 -04:00
fincs
a7e9a858dd Merge pull request #132 from Lectem/documentation
Documentation
2015-06-28 19:01:46 +02:00
Lectem
63472635ff added examples to documentation 2015-06-28 14:13:57 +02:00
Lectem
c62d54d831 fix arning types not matching 2015-06-28 13:33:26 +02:00
fincs
68fbd06375 Do not signal APTHOOK_ONRESTORE when the app is being closed 2015-06-28 11:30: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
fincs
de18776fac Clean up and simplify APT_CheckNew3DS 2015-06-20 18:17:44 +02:00
fincs
4ebb95cc2f Run initialization/shutdown code in irrstInit/irrstExit when needed 2015-06-20 17:07:06 +02:00
fincs
7706270720 Some minor APT fixes (capture typo, race condition fix, etc) 2015-06-20 17:06:32 +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
0ec23dc90a In APT_CheckNew3DS_*, properly load+check the retval from the cmdbuf when svcSendSyncRequest was successful. In APT_CheckNew3DS(), added code to check for out nullptr, and code to clear out. 2015-05-29 17:15:55 -04:00
Lectem
6ca5285d10 better svcGet*Info 2015-05-28 21:04:52 +02: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
8ac3549abf Fix APT applet launch code [regression caused by c75ed65] 2015-05-23 18:46:56 +02: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
fincs
e2b1da4d80 Minor APT behaviour change 2015-05-13 14:10:25 +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
plutoo
1b1c2a0cea Whitespace fix 2015-05-06 23:12:32 +02:00
plutoo
bf4364af0e Fix svcCreateAddressArbiter 2015-05-06 23:10:44 +02: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
plutoo
7d940da23a Merge pull request #106 from profi200/master
Replaced AM_installFIRM() with AM_installNativeFirm().
2015-03-28 22:24:53 +01:00
profi200
4ab2b1a363 Replaced AM_installFIRM() with AM_installNativeFirm(). 2015-03-28 22:02:46 +01:00
Steven Smith
c70fb0feb1 Reset GPUCMD buffer after running GPU_Reset commands. 2015-03-24 20:27:24 -07:00
smea
d22d0a9345 fix bug when alignment value too big 2015-03-19 12:29:47 -07:00
mtheall
b30f553dd0 Stricter checks in MemPool::Allocate(). 2015-03-17 13:49:47 -05:00
Dave Murphy
7a71787670 include data folder in source release, 0.5.0 is next release 2015-03-17 10:48:53 +00:00
yellows8
5b5bdb1bd1 Fixed security failure /w alignment in MemPool::Allocate(). 2015-03-16 20:59:59 -04:00
Dave Murphy
2fed2f4241 Merge branch 'gpu_revamp' 2015-03-11 17:06:49 +00:00
Dave Murphy
a6831d177c get rid of strict aliasing 2015-03-11 17:06:34 +00:00
Dave Murphy
5c0a6ceda6 Merge branch 'master' into gpu_revamp 2015-03-11 16:46:49 +00:00
Dave Murphy
85261971db use correct flags 2015-03-11 16:46:24 +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
b085943d4d Correct shaderProgramFree() and DVLB_Free() 2015-03-07 20:39:28 +01:00
fincs
624dc1c1b3 GPU_DepthRange() -> GPU_DepthMap() 2015-03-07 16:59:52 +01:00
fincs
44d2606039 Minor correction in GPU_SendShaderCode/SendOperandDescriptors 2015-03-06 16:32:57 +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
Dave Murphy
e5edb0fa28 Merge pull request #100 from profi200/master
Added AM_ListTitles(), replace bitwise ands with u32 casts, replaced snprint() ...
2015-03-02 21:56:27 +00:00
fincs
54473e5487 Merge branch 'master' into gpu_revamp 2015-03-02 17:03:58 +01:00
Dave Murphy
1f52ac344d adjust stack before appInit 2015-03-02 10:41:52 +00:00
fincs
b175fdbca5 Correct error in GPU_SetFloatUniform 2015-03-01 23:19:29 +01: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
02b68eb1ae Change it back to snprintf(). 2015-03-01 20:28:22 +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
8e031b1080 ensure mode changes 2015-02-27 20:50:03 +00:00
Dave Murphy
992b23040c implement gettimeofday 2015-02-23 17:41:10 +00:00
Dave Murphy
d9552e95dc bump version 2015-02-19 18:51:05 +00:00
Dave Murphy
8ac08bad4e default loop mode is one shot 2015-02-19 18:48:31 +00:00
Dave Murphy
b40d605660 Merge branch 'master' into gpu_revamp 2015-02-19 18:35:10 +00:00
Dave Murphy
2a500c2d8f bump version for release 2015-02-15 13:34:39 +00:00
Dave Murphy
727d5d4767 Merge branch 'utf'
Conflicts:
	libctru/source/sdmc_dev.c
2015-02-15 13:28:34 +00:00
Dave Murphy
2c0ae0784d flush buffers on newline & screen clear 2015-02-15 13:24:05 +00:00
Dave Murphy
7e24c7766f switch to hard float 2015-02-15 01:26:16 +00:00
Dave Murphy
0b6d51bcca config files for cppcheck from Lioncash 2015-02-14 01:23:00 +00:00
Dave Murphy
71a59a1da3 Merge branch 'master' into devop_socket
Conflicts:
	libctru/source/services/soc/soc_ioctl.c
2015-02-12 15:52:15 +00:00
Dave Murphy
dc7ef6fd28 correct aptEventHandler signature 2015-02-11 22:15:13 +00:00
mtheall
2cf2b7f1e9 Fix soc_read/soc_write. 2015-02-11 22:15:12 +00:00
Dave Murphy
e4b636ed41 correct alloc_handle prototype 2015-02-11 22:15:12 +00:00
mtheall
e75fd8b648 Refactor soc to use errno. 2015-02-11 22:15:11 +00:00
mtheall
67f991e452 Fix poll() to only update revents. 2015-02-11 22:15:09 +00:00
mtheall
4fa477c039 First attempt at hooking sockets into a devoptab. 2015-02-11 22:15:09 +00:00
Dave Murphy
9fec42f38f fix gspEventThreadMain signature 2015-02-03 09:18:22 +00:00
Dave Murphy
91d5a79e6a Merge pull request #93 from LunarCookies/patch-1
HTTPC_AddRequestHeaderField Fix
2015-02-02 20:24:41 +00:00
LunarCookies
f993eac8a2 Update httpc.c 2015-02-02 19:51:20 +00:00
Dave Murphy
3f19e7920c threads take void * not u32 2015-02-02 19:30:08 +00:00
LunarCookies
8cab1f28d4 HTTPC_AddRequestHeaderField Fix 2015-02-02 13:46:58 +00:00
Dave Murphy
aa8ffe925e Merge pull request #69 from Slashmolder/master
Fix for issue #66
2015-02-01 15:35:57 +00:00
Dave Murphy
8af5a9946f fix handle leak in sdmc_stat 2015-02-01 15:19:22 +00:00
Lioncash
20431deb4e Guard against potential null pointer dereferences 2015-02-01 07:47:18 -05:00
mtheall
4573212176 Fix handle leak in sdmc_stat. 2015-01-27 23:28:06 -06:00
mtheall
d08168b7d5 Fix soc_read/soc_write. 2015-01-27 17:06:30 -06:00
Dave Murphy
b015bd312c correct alloc_handle prototype 2015-01-26 02:04:19 +00:00
mtheall
1cd7cfdab5 Refactor soc to use errno. 2015-01-24 14:14:06 -06:00
mtheall
f87d35042c Fix poll() to only update revents. 2015-01-24 11:48:50 -06:00
mtheall
7e58d84a37 Merge branch 'master' into utf 2015-01-23 15:07:44 -06:00
mtheall
8d9fefdc9b First attempt at hooking sockets into a devoptab. 2015-01-23 14:23:59 -06:00
fincs
92fe263569 Fix typo 2015-01-20 18:19:02 +01: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
ce902bd6d1 It's always a missing 4 that makes it b0rk 2015-01-20 17:54:34 +01:00
fincs
bc085b5eb1 Clean the CSND code a bit more 2015-01-20 17:54:34 +01:00
fincs
59009d531d Partially fix csndChnGetState() and csndChnIsPlaying() 2015-01-20 17:54:33 +01:00
fincs
c042ff5a6c csndSharedMem should be volatile, disable PA->VA conv in csndChnGetState 2015-01-20 17:53:53 +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
a2ce1e13ca explicitly set screen modes, get flushbuffer size from mode 2015-01-07 15:09:21 +00:00
Dave Murphy
8087dc8aea roll a new libctru release 2015-01-06 12:47:47 +00:00
Dave Murphy
0a3bb7bcad allow for extenstion beyond 256 characters 2015-01-06 12:28:16 +00:00
Dave Murphy
93de4971bd full 256 character font 2015-01-06 12:27:37 +00:00
Dave Murphy
168d967743 __libc_init_array needs run after stack adjustment, __libc_fini_array before original stack is restored 2015-01-04 15:00:11 +00:00
smea
ed72f9474b fixed linear/vram mem align 2015-01-04 12:45:30 +01:00
smea
8d274afd13 fixed shaderProgramUse so that programs without geoshaders will play nice with those with 2015-01-03 18:06:22 -08:00
smea
100f72c193 fixed linear/vram mem align 2015-01-03 18:00:55 -08: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
a1830973c7 minifix 2015-01-02 19:29:02 -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
74c37b4e87 and protect from double exit 2015-01-03 00:45:31 +00:00
Dave Murphy
d6e0e5b198 free screens from where they were allocated 2015-01-03 00:43:21 +00:00
smea
28fee06006 minifix 2015-01-02 16:41:07 -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
profi200
42d96bf184 Fixed CFGU_GenHashConsoleUnique() header code. 2015-01-01 13:39:23 +01: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
Slashmolder
71ae462ba9 Fix for issue #66 2014-12-30 15:39:26 -08:00
Dave Murphy
2712498d2d oops 2014-12-30 23:00:31 +00:00
Dave Murphy
192b88b6a2 allow user configurable stack 2014-12-30 22:45:55 +00:00
Dave Murphy
c68afb5f31 check for directory in stat too and set st_mode appropriately 2014-12-30 20:39:49 +00:00
yellows8
c1d8df8b68 Implemented actual code for sdmc_stat(). 2014-12-30 01:04:55 -05:00
Dave Murphy
da496b6a89 revert stack changes, broken on hardware :( 2014-12-30 04:05:12 +00:00
Dave Murphy
02011660d5 add literal pool 2014-12-30 03:19:06 +00:00
Dave Murphy
5f95d314cb or bss might be better 2014-12-30 00:04:34 +00:00
Dave Murphy
7e51b3888e oops, forgot these need to be in data section 2014-12-30 00:02:55 +00:00
Dave Murphy
2ed782f5f3 Set default stack to 32K, allow user adjustment 2014-12-29 23:52:51 +00: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
5524e700b4 Merge branch 'master' of github.com:smealum/ctrulib 2014-12-27 02:35:33 +01:00
smea
800cb7b566 Update apt.c 2014-12-26 12:51:01 -08:00
smea
8e6056f1a0 Update fs.c 2014-12-26 12:50:34 -08:00
smea
dac642f613 Update sdmc_dev.c 2014-12-26 12:49:19 -08:00
smea
805e757b49 Update hid.c 2014-12-26 12:46:01 -08:00
smea
95fe42b294 Update hid.c 2014-12-26 12:45:25 -08:00
profi200
eb0f771409 Replaced spaces in cfgu.c. 2014-12-26 02:46:38 +01:00
profi200
54f2afcb19 Added CFGU_GetConfigInfoBlk2() and an example. 2014-12-26 02:31:59 +01:00
Dave Murphy
78b94b4eea auto initialise commonly used services, prevent double initialisation 2014-12-25 23:27:36 +00:00
Dave Murphy
f6ec685086 give function the right name 2014-12-25 11:01:08 +00:00
Dave Murphy
b5cd5e10c8 include header for memcpy 2014-12-25 10:52:52 +00:00
Dave Murphy
766ee2c703 split up sysyem initialisation and allow overriding 2014-12-25 10:50:38 +00: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
Dave Murphy
a58f2def09 set errno for file too big 2014-12-21 03:13:15 +00:00
mtheall
edf2c1c139 Add gfxGetScreenFormat(). 2014-12-19 23:38:30 -06:00
fincs
6aa30b4c3e Fix osGetTime(), this time for real (also: race condition fix by mtheall) 2014-12-19 19:47:10 +01:00
smea
e3017fa304 made small adjustments to shdr.c 2014-12-18 22:35:13 -08: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
Dave Murphy
60edc69d73 sdmc_open: implement O_EXCL and O_TRUNC 2014-12-15 23:23:04 +00:00
Dave Murphy
93dbdfd74a stop svcOutputDebugString trashing string 2014-12-15 02:40:11 +00: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
plutoo
a720cb6e49 Reverting previous commit, fixing more resource leaks 2014-12-15 01:43:18 +01:00
plutoo
a3febb5fe1 Proposed fix for issue #66 2014-12-15 01:36:25 +01:00
plutoo
2d22fcd5e5 Fixed handle leak in httpc 2014-12-15 01:33:37 +01:00
mtheall
d93524b393 Fix inet_aton. 2014-12-14 14:56:20 -06:00
fincs
99186f4258 Add a VRAM allocator 2014-12-14 17:47:34 +01:00
profi200
e99b0def40 Fixed weird blackscreen issue 2014-12-14 00:21:29 +01:00
fincs
60d7d571e6 Fix linear.cpp 2014-12-13 20:05:48 +01:00
Dave Murphy
c76ea75ae2 stop building everything when any header changes 2014-12-13 16:36:54 +00: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
478d11f468 render strikethrough & underline 2014-12-13 03:19:57 +00:00
Dave Murphy
7bcd9b2270 make it build 2014-12-13 03:11:21 +00:00
Dave Murphy
b05f574889 fix formatting 2014-12-13 03:07:41 +00:00
Dave Murphy
5c64201fa5 unneeded default case 2014-12-13 03:07:00 +00:00
Dave Murphy
94591dc5f7 better parameter checking 2014-12-13 02:58:07 +00:00
Dave Murphy
2de946890d support more codes 2014-12-13 02:51:57 +00:00
Dave Murphy
28ef35f4a6 intialise parameter, ignore unsupported escapes 2014-12-13 02:40:25 +00:00
Dave Murphy
e8df59be59 check parameters are valid as we parse 2014-12-13 02:32:21 +00:00