Commit Graph

988 Commits

Author SHA1 Message Date
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
e554f11999 Update template Makefile with the following changes:
- Add RomFS embedding support
- Add proper rules for assembling GPU shaders
- Use -ffunction-sections and --gc-sections by default
- Remove -ffast-math
2015-11-21 01:12:33 +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
Michael Theall
699748da98 Merge branch 'great-refactor' of github.com:smealum/ctrulib into great-refactor 2015-11-20 09:45:26 -06:00
Michael Theall
a1157f7b8b Fix comparator for overflow check 2015-11-20 09:44:58 -06: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
fincs
f6ebc7f285 Merge pull request #221 from Steveice10/mic-fix
Fix order of memalign parameters in MIC example.
2015-11-19 01:12:50 +01:00
Steven Smith
d6dc1d52c5 Fix order of memalign parameters in MIC example. 2015-11-18 15:45:01 -08:00
fincs
6e3b2a4cd7 Merge pull request #219 from Steveice10/launcher
Reference count srv, cleanup launcher code.
2015-11-15 23:18:52 +01:00
Steven Smith
13a5a225b3 Reference count srv, cleanup launcher code. 2015-11-15 13:02:06 -08:00
fincs
651013d3d0 Fix PATH_UTF16 size miscalculation, yet again 2015-11-15 19:21:00 +01:00
fincs
b96697f7a4 Bring back fsMakePath 2015-11-15 13:51:01 +01:00
fincs
083e89628e Merge pull request #218 from Steveice10/fs
Bring FS up to date.
2015-11-15 13:27:17 +01:00
Steven Smith
324fcff1dc Bring FS up to date. 2015-11-14 17:36:07 -08:00
fincs
c49480f5d5 Fix examples after service refactor 2015-11-11 21:13:31 +01:00
fincs
9083a97014 Fix a typo that wreaked havoc 2015-11-11 19:43:27 +01:00
fincs
5d41effb6e Merge pull request #216 from Steveice10/service-cleanup
Service cleanup.
2015-11-11 19:32:20 +01:00
Steven Smith
375fbce98a Service cleanup. 2015-11-11 08:57:54 -08:00
fincs
6a7f13654d Fix #204 2015-11-09 17:32:17 -05:00
smea
9c98fe54b1 Merge pull request #214 from thedax/great-refactor-fix
Pretty sure it's not a good idea to decrement a handle.
2015-11-09 13:37:19 -08:00
thedax
67a1384564 Pretty sure it's not a good idea to decrement a handle. 2015-11-09 16:31:31 -05:00
yellows8
e87ad0ad6c Implemented code for getting the system-version from NAND NVer/CVer. 2015-11-08 21:28:39 -05:00
fincs
c12c0aace3 Merge pull request #212 from Steveice10/newss
Add news:s support.
2015-11-08 22:53:12 +01:00
Steven Smith
65eaba5b2d Add news:s support. 2015-11-08 13:26:29 -08:00
fincs
3d66e29a5d Merge pull request #211 from Steveice10/fix-139
Fix #139
2015-11-08 21:13:32 +01:00
Steven Smith
891df76804 Fix #139 2015-11-08 12:00:33 -08:00
fincs
c3da3c3057 Merge pull request #210 from Steveice10/mic-fix
Fix MIC cutting off a second of audio.
2015-11-08 20:29:31 +01:00
Steven Smith
abdfec701f Fix MIC cutting off a second of audio. 2015-11-08 11:24:04 -08:00
fincs
7440ca7901 Merge pull request #205 from Steveice10/great-refactor
Rewrite MIC service code, clean up microphone example.
2015-11-08 00:22:47 +01: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
3aa4bdf6e9 Fix #206 2015-11-07 12:46:24 +01:00
fincs
24a84a874f Fix some mistakes in 2797540a 2015-11-07 01:52:35 +01: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
2686b57c88 Fix #204 2015-11-06 20:39:41 +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
fincs
e4775572c2 Merge branch 'master' into great-refactor
# Conflicts:
#	libctru/include/3ds/services/httpc.h
2015-11-01 14:14:01 +01:00
fincs
6b40ea9d8e Roll out a new libctru build 2015-11-01 13:59:34 +01:00
yellows8
facb701ae9 Fixed the use_defaultproxy value used by the http example. 2015-10-29 15:27:39 -04: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
7914b41107 Merge branch 'master' into great-refactor 2015-10-28 13:34:17 +01:00