Commit Graph

350 Commits

Author SHA1 Message Date
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