Commit Graph

823 Commits

Author SHA1 Message Date
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
Dave Murphy
49200b8b96 use switch for 'm' parameters 2014-12-13 02:24:24 +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
Dave Murphy
d6a58d4a2f fix scroll size 2014-12-12 13:40:54 +00:00
Dave Murphy
35307ad5f2 use word copy for extra speed in console scroll 2014-12-12 12:18:00 +00:00
Dave Murphy
c0a0ec1fb2 fix console scrolling 2014-12-12 12:05:45 +00:00
Dave Murphy
382f1320ce lighten up half bright green 2014-12-12 10:58:16 +00:00
Dave Murphy
5fe960fda0 fix color code scanning 2014-12-12 09:58:14 +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
bc980fb34d use correct doubleBuf variable 2014-12-12 00:16:23 +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
mtheall
20d4e95dfd Make soc_fcntl.c more sane. 2014-12-11 08:33:26 -06:00
fincs
d486a0ffc6 Correct SHDR_GetUniformRegister [WARNING: aemstro_as **doesn't** output this field correctly] 2014-12-11 00:01:34 +01:00
fincs
1844295bfd Minor correction 2014-12-10 11:00:40 +01: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
Jeffrey Pfau
31a8beb120 Fix copy/paste error in FSFILE_Write documentation 2014-12-09 22:20:31 -08:00
smea
1322d44f22 Merge branch 'master' of github.com:smealum/ctrulib 2014-12-09 21:49:30 -08:00
smea
c282d4262e temporary solution for 0x10 byte gpucmd alignment
fixes A LOT of gpu related issues

(temporary solution because big gpu refactor is coming soon)
2014-12-09 21:49:18 -08:00
Dave Murphy
88bef35b8f set default device so relative paths work in 3dmoo 2014-12-08 23:21:46 +00:00
fincs
4b4b781ec3 Minor code formatting fix in svc.s 2014-12-09 00:15:04 +01:00
Subv
e0bf993fd9 Styling 2014-12-08 18:05:46 -05: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
Dave Murphy
6a195608aa bump version for release, add dist target 2014-12-05 13:57:50 +00:00
Dave Murphy
1aae1b2cd9 Revert "Switch to -mfloat-abi=hard, bump version to 0.2.0"
This reverts commit 3f9e0a630b.
2014-12-05 13:47:05 +00:00
fincs
377e753b7d Add getThreadLocalStorage(), major cleanup in svc.h/svc.s 2014-12-05 14:13:18 +01:00
fincs
3f9e0a630b Switch to -mfloat-abi=hard, bump version to 0.2.0 2014-12-05 14:13:16 +01:00
fincs
bacd6f09ca sdmc_dev.c: do not redefine __system_argc/argv 2014-12-04 11:23:40 +01:00
Dave Murphy
1bc0073bd3 implement chdir & relative path support 2014-12-04 00:29:35 +00: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
StapleButter
c75ed65d8b Fix HOME button shiz.
(apparently APP_APPLETSTARTED happens when pressing the HOME button and causes aptWaitStatusEvent() to end prematurely)
2014-11-29 21:04:03 +01:00
StapleButter
32f8e69b96 Sleep mode fixes. 2014-11-29 19:39:00 +01:00
yellows8
58192c8683 Fixed broken MIC shutdown code. Use a tmp field for svcControlMemory when not allocating linearmem, in initSystem.c. 2014-11-28 19:28:59 -05:00
fincs
a8e08d4138 osGetTime(): avoid using u64<->double conversions (not supported by VFP) 2014-11-28 23:54:32 +01:00
Dave Murphy
ea97e7a529 stop polluting 3ds headers with extra system headers 2014-11-28 13:13:34 +00:00
yellows8
8dbe9d9128 Added more code to aptAppletUtility_Exit_RetToApp() for when a library applet is closing, but this still doesn't fix the broken applet process termination. 2014-11-28 02:12:49 -05: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
49ab752427 Merge branch 'master' of https://github.com/smealum/ctrulib 2014-11-26 01:33:03 +01:00
plutoo
c5aa5ebbbc added gfxSetScreenFormat 2014-11-26 01:32:47 +01:00
yellows8
300a0ed125 Fixed word-index that the handle is loaded from in the cmdreply, for MIC_GetEventHandle(). 2014-11-24 23:22:24 -05:00
yellows8
c91921616e Fixed svcWaitSynchronizationN, previously this didn't save/restore r4 on the stack. 2014-11-24 22:58:07 -05:00
Lioncash
15cd3bd2c3 soc_ioctl: Add a missing va_end call 2014-11-24 08:31:41 -05:00
yellows8
165e50091c Removed debug code(exception triggers on failure) in httpc.c. 2014-11-23 22:10:16 -05:00
Lectem
3a47113dab added svcCloseHandle to FSDIR_Close()
FSDIR_Close() and FSFILE_Close() should have the same behavior
2014-11-23 22:58:11 +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
Yuri Kunde Schlesner
78f381095c Fix documentation mistakes 2014-11-23 00:18:36 -02: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
Xeatheran Minexew
3ee89602fa Fix previous half-baked commit 2014-11-22 15:26:56 +01: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
fincs
4219a23ebd linear heap allocator: use rbtree to store allocation size information 2014-11-21 23:44:57 +01:00
Xeatheran Minexew
e7c3b7c8a1 Make SHDR_GetUniformRegister name argument const 2014-11-21 22:42:25 +01:00
mtheall
550f690c8d Add errno to error cases for FIONBIO. 2014-11-21 11:06:32 -06:00
Lioncash
0a0276dd20 soc_ioctl: Add missing va_end call 2014-11-21 07:47:24 -05: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
Dave Murphy
8cb3fad657 ignore generated archives 2014-11-20 22:47:34 +00:00
Dave Murphy
52d1347466 add versioning, install and dist targets 2014-11-20 22:47:08 +00: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
yellows8
c60bdb3670 With RUNFLAG_APTWORKAROUND enabled, at the start of aptReturnToMenu just set the status to APP_EXITING then return(this func won't actually get executed with RUNFLAG_APTWORKAROUND atm). Updated __handle_notification() to check for errors from APT_InquireNotification. In aptExit only call the applet-utility code when RUNFLAG_APTWORKAROUND is not set. Minor other changes. Fixed APT_CheckNew3DS code so that it properly only uses one of the APT cmds. 2014-11-18 23:48:50 -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
yellows8
bd9c33e139 Fixed broken path code in sdmc_dev.c. Disabled attributes code in sdmc_open() for now, since that was causing file truncation(even with read-only file opening). 2014-11-16 21:12:24 -05:00
smea
b30a8d4d3d gpu stuffs 2014-11-15 14:08:45 -08:00
smea
3dfe1f6d04 Merge branch 'master' of github.com:smealum/ctrulib 2014-11-12 22:08:40 -08:00
smea
b6b25b0163 fixed initArgv 2014-11-12 22:08:31 -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
bcd91a9e81 Oops that should not be included 2014-11-10 17:38:50 +01:00
profi200
ffe682941f Added example for launching apps/applets 2014-11-10 17:34:11 +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
cf60fb7d0b Make GX_* functions accept NULL in order to use default GX cmdbuf 2014-11-08 23:28:51 +01:00
fincs
abc3530f57 Add gxCmdBuf to headers 2014-11-08 23:21:41 +01:00
fincs
fab8bc25eb Minor Makefile correction 2014-11-08 13:49:39 +01:00
fincs
f62297a438 Add 3DS application template 2014-11-07 19:12:43 +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
e460e6a673 aptMainLoop(): Add handling for APP_PREPARE_SLEEPMODE 2014-11-05 00:24:24 +01:00
fincs
e4aeaba747 Attempt to fix APT hang during startup due to bad event handling 2014-11-04 21:41:31 +01: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
4e90fbb905 Updated CheckNew3DS code. Now the out value is cleared first, then the out value is only set to the cmdreply data when ret is zero. 2014-11-01 22:11:19 -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
plutoo
4982d1042a Merge pull request #21 from profi200/master
Fixed cmds
2014-10-30 23:39:17 +01:00
mtheall
0d6365aa2f use ARCH_SDMC for archive id 2014-10-30 15:40:19 -05:00
mtheall
c8a3207c42 fix typo 2014-10-30 13:52:30 -05:00
mtheall
498bc24808 return offset in sdmc_seek 2014-10-30 13:49:00 -05:00
mtheall
cdd066a4ba Merge branch 'refactor' 2014-10-30 13:39:47 -05:00
mtheall
a9d2f7b97f start sdmc devoptab 2014-10-30 13:34:13 -05:00
profi200
0570a8c02c Fixed cmds 2014-10-30 19:09:09 +01:00
smea
58a1f0c68e plugged a bunch of handle leaks ! 2014-10-29 21:26:58 -07:00
smea
08f8caf924 Merge pull request #20 from idunoe/master
Defined FS archive ids
2014-10-27 09:31:10 -07:00
fincs
76d55fc97a Fix APT initialization code when RUNFLAG_APTWORKAROUND is set 2014-10-27 17:30:55 +01: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
smea
a62ae8c225 SOC : close shared mem handle when shutting down 2014-10-26 18:34:58 -07:00
Lioncash
567b1ae4f7 os: Fix switch fallthrough in osGetTime. 2014-10-26 19:21:37 -04:00