fincs
8cd37c627c
Add ndspChnIsPaused/ndspChnSetPaused (untested)
2016-01-28 23:46:03 +01:00
fincs
27b6134bf2
Adapt AMPXI to use libctru naming conventions for plain service calls.
2016-01-28 23:44:51 +01:00
yellows8
173d258e30
Added ampxiInstallTitlesFinish.
2016-01-26 01:09:21 -05:00
Lectem
2b9dc3c82a
added SOCU_GetNetworkOpt
2016-01-25 01:14:09 -05:00
Dave Murphy
3a3ee64b64
Merge pull request #254 from Rinnegatamante/master
...
Added some missing news:s funcs and updated header.
2016-01-24 18:05:17 +00:00
Yifan Lu
cd054cbadf
Added svc calls for svcCreateCodeSet and svcCreateProcess
2016-01-23 14:32:36 -08:00
Rinnegatamante
62c05ea73b
Added some missing news:s funcs and updated header.
...
Added some missing news:s funcs and updated header.
2016-01-23 12:47:14 +01:00
Michael Theall
818254c55e
Add sdmc_getmtime
2016-01-22 16:40:28 -06:00
Michael Theall
5af3dd73de
Add SOCU_GetIPInfo
2016-01-21 19:21:43 -06:00
Dave Murphy
b8741b35e8
Merge pull request #247 from Lectem/more_soc
...
added gethostname
2016-01-21 00:16:26 +00:00
fincs
70f84f4950
Fix Doxygen oversight
2016-01-19 23:45:31 +01:00
Lectem
6beee4f9fe
added gethostname
2016-01-19 14:20:34 -05:00
fincs
8b5e753235
Add shared system font parsing code.
2016-01-19 19:23:58 +01:00
Lectem
464d6c6363
SOC:u added close/shutdown sockets
2016-01-16 21:14:09 -05:00
Michael Theall
0b40e7aa2f
Move sdmc_dir_t into 3ds/sdmc.h
2016-01-16 16:30:11 -06:00
Michael Theall
c5674b3126
Add sdmcWriteSafe
2016-01-12 16:22:30 -06:00
Dave Murphy
15897d0eab
add void function typedef
2016-01-12 21:12:11 +00:00
Dave Murphy
eba67d69ca
add macros for color codes
2016-01-12 21:12:11 +00:00
yellows8
d5931ee336
Added AMPXI for using ampxiWriteTWLSavedata.
2016-01-07 17:28:48 -05:00
yellows8
afae9ad607
Added NS_TerminateProcessTID.
2016-01-06 23:31:10 -05:00
fincs
9f98cefa3e
Revise/enhance GSPGPU/GFX code, see below:
...
- Screens can be buffer-swapped independently (gfxConfigScreen)
- Added gspSetEventCallback for running event code directly on the GSP thread
- Added gspWaitForAnyEvent for waiting for any GSP event
- Added gfxIs3D for retrieving 3D-enable status
2016-01-05 00:25:40 +01:00
TuxSH
29176f39ae
Implementing AM_InstallFirm
2016-01-03 19:38:41 +01:00
Dave Murphy
2741615b85
elaborate GX_BUFFER_DIM
2016-01-03 14:08:58 +00:00
Steven Smith
74a58330e8
Add __sync_get_arbiter.
2015-12-28 20:46:04 -08:00
fincs
51709c69e2
Document thread API
2015-12-07 11:44:36 +01:00
fincs
b1e97f2ca4
Add WIP thread wrapper API
2015-12-07 11:43:54 +01:00
fincs
05b8ce5b5d
Implement devkitARM/newlib lock support & dynamic reent
2015-12-07 11:43:54 +01:00
Thomas Edvalson
4eff425593
Make ndspWaveBuf's vaddr const
2015-12-05 18:39:46 -05:00
fincs
c048221f86
Add shaderProgramSetGshMode() for configuring geoshader mode
2015-12-05 13:28:41 +01:00
fincs
c14634f323
Synchronize GPU register names with the 3dbrew Wiki, again
2015-12-05 13:27:02 +01:00
fincs
3657571591
Add proctex GPU register names and enumerations from the 3dbrew Wiki
2015-12-02 12:04:13 +01:00
fincs
33ba77db4d
Revert "Revert "Dynamically determine heap sizes.""
...
This reverts commit cc8e0c29b6
.
The bug was fixed in Citra.
2015-12-01 13:25:09 +01:00
fincs
f052d22ceb
shaderProgram: manage GPUREG_SH_OUTATTR_MODE/CLOCK
2015-12-01 13:22:34 +01:00
fincs
f7798302ea
Add new GPU register names and enumerations from the 3dbrew Wiki
2015-12-01 12:58:57 +01:00
Daz Jones
5daecd8d24
AM: implement external title database IPC functions
...
Correct use of these functions allows applications that require
the external (SD) title database (e.g. title installers) to check
if it exists, and if not, have it created.
2015-12-01 02:09:50 +00:00
fincs
416cc38797
Add a few additional GPU enumerations
2015-11-25 21:49:26 +01:00
fincs
cc8e0c29b6
Revert "Dynamically determine heap sizes."
...
This reverts commit b96dd51d33
.
The change completely broke homebrew on the Citra emulator.
2015-11-22 01:13:41 +01:00
Steven Smith
b96dd51d33
Dynamically determine heap sizes.
2015-11-21 10:43:50 -08:00
Steven Smith
827bbba993
Add to and clean up Y2R documentation.
2015-11-21 09:26:50 -08:00
fincs
9b57720cee
Add LightLock_TryLock and RecursiveLock_TryLock
2015-11-21 11:48:20 +01:00
fincs
5923112082
Several improvements to shaderProgram, see details:
...
- shaderProgramSetGshInputPermutation() was added
- shaderInstanceGetUniformLocation() return type corrected
- shaderInstanceSetBool bug fixed (true/false were incorrectly mapped)
- shaderInstance now has bitmasks indicating which int/bool uniforms are
used by int/bool constants in the DVLE
- shaderProgramUse() was revamped:
- Shader unit setup/code/opdesc upload code was separated into a new
function called shaderProgramConfigure()
- shaderProgramUse() calls shaderProgramConfigure() and afterwards
uploads DVLE constants
- GPU wrappers that perform uniform management will want to use
shaderProgramConfigure() instead of shaderProgramUse() and later
read the shaderInstance uniform usage bitmasks to set the constants.
2015-11-21 00:49:33 +01:00
fincs
10c7711ce5
Correct osConvertVirtToPhys/osConvertOldLINEARMemToNew parameter type
2015-11-20 17:24:02 +01:00
fincs
f8dec9ec5c
Fix FS_ATTRIBUTE bitmask values
2015-11-20 16:43:32 +01:00
fincs
b21fa8a57f
Fix typo in documentation that broke generation for FS and CFGU
2015-11-19 23:08:18 +01:00
Michael Theall
c0f75ae42b
Robustify UTF translation
2015-11-19 13:49:31 -06:00
fincs
3714fa3810
Merge branch 'master' into great-refactor
...
# Conflicts:
# libctru/include/3ds/services/fs.h
# libctru/source/os.c
# libctru/source/romfs_dev.c
# libctru/source/services/fs.c
2015-11-19 11:44:59 +01:00
fincs
3fbea733c6
Add fsUseSession/fsEndUseSession
2015-11-19 11:35:02 +01:00
Steven Smith
13a5a225b3
Reference count srv, cleanup launcher code.
2015-11-15 13:02:06 -08:00
fincs
b96697f7a4
Bring back fsMakePath
2015-11-15 13:51:01 +01:00
Steven Smith
324fcff1dc
Bring FS up to date.
2015-11-14 17:36:07 -08:00
Steven Smith
375fbce98a
Service cleanup.
2015-11-11 08:57:54 -08:00
yellows8
e87ad0ad6c
Implemented code for getting the system-version from NAND NVer/CVer.
2015-11-08 21:28:39 -05:00
Steven Smith
65eaba5b2d
Add news:s support.
2015-11-08 13:26:29 -08:00
Steven Smith
891df76804
Fix #139
2015-11-08 12:00:33 -08:00
yellows8
fcb370a8c1
Implemented FSUSER_GetProductInfo.
2015-11-07 17:35:54 -05:00
Steven Smith
d2f772c960
Rewrite MIC service code, clean up microphone example.
2015-11-07 08:57:48 -08:00
fincs
2797540a3d
Revise most services to follow these guidelines:
...
- Each service must have xyzInit/xyzExit (with that name)
- xyzInit/xyzExit use reference counting
- xyzExit returns void
- The utilities in <3ds/result.h> are used instead of manual error checking
- The intrinsics in <3ds/synchronization.h> are used instead of inline asm
- Other miscellaneous changes
- APT now uses a lightweight lock instead of a mutex
- Initial handle parameters in PTMU were killed
- Explicit init'ion to 0 or NULL has been removed for global variables
since they end up on .bss anyway
- MIC hasn't been touched because it must be rewritten first
- CFGNOR needs a slight touch before converting
- SOC is still to be cleaned up
2015-11-07 01:25:31 +01:00
fincs
e01dfbc392
synchronization.h: Add DSB & several atomic operations
2015-11-07 01:07:11 +01:00
fincs
7b25a0d4d4
Add <3ds/result.h> header - 3DS result codes
2015-11-07 01:04:31 +01:00
fincs
b33b4eb2d0
Minor cleanup in os.h/os.c + add osGet3DSliderState()
2015-11-05 12:33:43 +01:00
fincs
2ce51cf3d8
Add more (void) and remove more service handle parameters
2015-11-05 11:48:23 +01:00
yellows8
27469de3c1
Removed an unused debug line in httpc.c. Set the httpc servhandle to zero in httpcExit(), this fixes using httpcInit() after httpcExit(). Fixed the use_defaultproxy comment in httpc.h.
2015-10-29 15:21:08 -04:00
fincs
ebad126fc0
Fix NDSP wavebuf synchronization issue (thanks to Lectem)
2015-10-24 00:54:57 +02:00
Lectem
15bca44322
Added the missing struct and functions
2015-10-21 22:12:38 -04:00
fincs
07d5367ed4
Some additions to NDSP code (thanks to Lectem)
2015-10-18 23:06:11 +02:00
fincs
e12c8ff6a6
Add code to manage New 3DS CPU speedup
...
# Conflicts:
# libctru/include/3ds/os.h
# libctru/include/3ds/services/ptm.h
2015-10-11 23:47:23 +02:00
fincs
942ec4af9b
Add code to manage New 3DS CPU speedup
2015-10-11 23:44:10 +02:00
Lectem
f14d5721eb
Document the loop behaviour of csndPlaySound
2015-10-09 19:41:29 -04:00
Antoine Vugliano
b46e0c6a15
Fix NDSP enums for C++.
2015-10-08 00:43:58 +02:00
Lectem
13adb6a1c2
fixed enums for c++
2015-10-07 16:00:19 -04:00
fincs
0e7755af01
Fix GPUCMD_AddSingleParam() C++ compatibility issue
2015-10-07 20:50:57 +02:00
fincs
56a2712501
Docufixes
2015-10-06 11:47:28 +02:00
Steven Smith
fa5f3783ce
Finish up basic documentation.
2015-10-05 18:35:15 -07:00
fincs
f4cef43033
Whoops
2015-10-05 11:40:20 +02:00
Steven Smith
173d386795
Document most of services.
2015-10-04 22:27:43 -07:00
Steven Smith
d6962f2122
Doc consistency.
2015-10-04 14:08:02 -07:00
Steven Smith
2656225392
Finish documentation in include/3ds and include/3ds/util.
2015-10-04 13:48:26 -07:00
Steven Smith
9a3baad7ed
Rewrite most documentation to be consistent in format.
2015-10-04 10:37:28 -07:00
fincs
b481e6a446
Merge branch 'master' into great-refactor
...
Conflicts:
libctru/include/3ds/services/hid.h
libctru/include/3ds/services/irrst.h
2015-10-04 17:37:19 +02:00
Steven Smith
9fe9493701
Dynamically allocate shared memory.
2015-10-04 08:03:23 -07:00
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
Lectem
bc3ef580b2
Use IPC helpers for apt, and update some commands
2015-10-03 06:56:11 -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
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
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
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
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
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
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
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
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
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
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