Commit Graph

172 Commits

Author SHA1 Message Date
yellows8
4f8dfc52c6 Fixed bss handling in elf2nro. 2017-12-11 21:54:59 -05:00
yellows8
a0ebe68f54 Implemented actual args handling in __system_initArgv(). 2017-12-11 19:18:45 -05:00
yellows8
79e573472e Added __argdata__ to switch.ld. 2017-12-10 23:27:16 -05:00
yellows8
817fec6859 Fixed bss handling in tools. 2017-12-10 23:12:15 -05:00
yellows8
ebf81ab6ff Imported *MainLoop() from libctru. 2017-12-07 18:54:07 -05:00
plutoo
cddec5c754 More pm 2017-12-05 12:30:33 +01:00
plutoo
e5d0821678 Implement pm:dmnt 2017-12-05 12:30:21 +01:00
plutoo
12410fc44a
Merge pull request #22 from shinyquagsire23/hid-sharedmem-impl
HID Shared Memory - Structures + key held/down/up implementation
2017-12-02 23:21:10 +01:00
yellows8
d24671b306 Implemented applet initialization for application-type which was missing. Added svcResetSignal. 2017-12-01 23:15:40 -05:00
yellows8
7da25ba40f Updated fs_dev.h comments, etc. Fixed _fsdevUnmountDeviceStruct(). Added fsdevCommitDevice(). Check whether sdmc is already mounted in fsdevInit(). 2017-11-30 13:00:47 -05:00
yellows8
0c5efe5f9c Added a comment in fs_dev.h. Adjusted fs.h formatting, etc. Added support for mounting SaveData. 2017-11-30 01:58:21 -05:00
yellows8
a405bc4827 Added account. Added u128 type to types.h. 2017-11-29 23:31:18 -05:00
yellows8
cb123dd579 Imported initArgv from libctru. Load __system_argc/__system_argv in crt0. Enabled the __system_argc/__system_argv code in fsdev. 2017-11-29 21:30:40 -05:00
yellows8
99e4a61492 Moved fsdev_dir_t/*MAGIC into the .h. Removed fsdevWriteSafe(). Added fsdevMountDevice/fsdevUnmountDevice to the .h. Moved the code for fsdevUpdateDevices() into fsdevInit(). Changed _fsdevMountDevice() to static. Added fsdev_read_safe(). Automatically calll fsdev_{read/write}_safe() when required, instead of using fsdevWriteSafe(). 2017-11-29 19:40:21 -05:00
yellows8
49959e4e37 FS adjustments + fixed fsFsGetFreeSpace/fsFsGetTotalSpace. In fs_dev: fixed cwd handling, unmounting adjustments, use fsFsGetEntryType(), updated fsdev_dirnext(), and properly handle fsdev_statvfs(). 2017-11-29 01:47:11 -05:00
yellows8
4f2a16ec34 Added SWITCH define. 2017-11-28 12:42:53 -05:00
yellows8
02526c920e Updated comments for fsdevWriteSafe(). 2017-11-27 18:43:02 -05:00
yellows8
59880e9488 Removed output bytes_written for fsFileWrite() since the command doesn't actually return that. In fsdev_open(), set the FS_OPEN_APPEND flag when opening for writing. Adjusted file-creation handling in fsdev_open(). 2017-11-27 17:40:49 -05:00
plutoo
40dd1adc23 Mutex fix 2017-11-26 20:45:55 +01:00
plutoo
de52de8e88 Fixes for 1.0.0 2017-11-26 20:44:42 +01:00
yellows8
96010d3c75 Use a global field for default fsdev device. Added 'id' to fsdev_fsdevice struct. Adjusted fsdev mounting handling, and verify that the specified device name isn't already used. In _fsdevUnmountDeviceStruct(), call RemoveDevice() with ':' appended to name. Adjusted fsdevInit(). Adjusted comments for fsdevWriteSafe(). In fsdev_rename(), throw an error if the two paths don't use the same device. 2017-11-26 00:55:10 -05:00
yellows8
9703ddbf3e Fixed the stack_sz used for stack_top in threadCreate(). t->stack_sz is uninitialized at the time stack_top is set, hence this was causing memory corruption in some cases. 2017-11-25 12:54:42 -05:00
yellows8
cca73c47fa __thread fix by fincs. 2017-11-25 12:02:25 -05:00
yellows8
d7e611f9f4 fs_dev adjustments: disabled broken __thread, handle default device in fsdevFindDevice(), and check for fsdevFindDevice() failure in fsdev_fixpath(). Added a comment in _fsdevUnmountDeviceStruct(). Removed the return at the start of fsdev_open(). 2017-11-24 22:30:44 -05:00
yellows8
25f2839c75 Imported util/utf from libctru. Updated appInit/appExit. Fs adjustments + implemented IDirectory. Imported a modified version of sdmc_dev from libctru as fs_dev, this currently isn't usable. 2017-11-23 15:00:56 -05:00
yellows8
0bc5be0708 Fixed session-close error when using APPLET_TYPE_LibraryApplet. 2017-11-23 01:53:45 -05:00
shinyquagsire23
63f91dd215 Add hidTouchCount, hidTouchRead, KEY_TOUCH. Header tweaks. 2017-11-22 17:09:37 -07:00
shinyquagsire23
aa458e59f9 Add hidGetControllerLayout 2017-11-22 17:09:32 -07:00
yellows8
94083114ba Added NRO building to buildscripts/. Added elf2nro install to tools/Makefile. 2017-11-21 15:58:58 -05:00
yellows8
9c5afe8302 Added svcOutputDebugString. 2017-11-21 00:35:08 -05:00
shinyquagsire23
ffd10708ac Variable name adjustment, fixes, clarifications 2017-11-20 12:07:50 -07:00
shinyquagsire23
0f24d05077 Brace consistency 2017-11-20 02:53:09 -07:00
shinyquagsire23
472c408288 Add HIDMousebutton 2017-11-20 02:27:21 -07:00
shinyquagsire23
fc71b06161 Implement HID keys held/down/up 2017-11-20 02:17:30 -07:00
shinyquagsire23
11ee3c188e Add HID shared memory structures and enums 2017-11-20 02:17:26 -07:00
plutoo
3626b07879
Merge pull request #21 from shinyquagsire23/bsd-sendto-setsockopt
Add bsdSendTo and bsdSetSockOpt
2017-11-19 09:57:01 +01:00
shinyquagsire23
3db154a8f0 Add bsdSendTo and bsdSetSockOpt 2017-11-19 01:45:15 -07:00
plutoo
c252b0a9d3 Until newlib gets updated 2017-11-18 01:29:08 +01:00
plutoo
69ce83479a Mutex bringup 2017-11-17 16:15:28 +01:00
yellows8
42fbabe9d1 Added nvQueryEvent(). 2017-11-15 22:34:07 -05:00
plutoo
61ff5bd9a1
Merge pull request #18 from devkitPro/dka64-a5-updates
devkitA64 alpha 5 updates (locks, TLS, etc) {TEST BEFORE MERGE}
2017-11-16 01:36:39 +01:00
fincs
00b5758912 Fix whitespace in fatal.c 2017-11-14 19:33:29 +01:00
yellows8
567e8ed6e1 Imported more defines from linux ioctl.h. In nvIoctl(), only set the addr/size for send/recv buffers when the associated direction bit is set. 2017-11-14 12:15:23 -05:00
plutoo
e6fee70ee4
Merge pull request #20 from shinyquagsire23/nro-edge
elf2nro tweaks
2017-11-14 01:47:30 +01:00
shinyquagsire23
14b56cd3de Adjust crt0 for NROs 2017-11-13 17:44:25 -07:00
shinyquagsire23
116da355bb Fix NRO section addresses 2017-11-13 17:14:51 -07:00
fincs
5e0b10db70 Page-align stack size in threadCreate 2017-11-14 01:14:36 +01:00
fincs
508a87ea5d Mark fatalSimple with __attribute__((noreturn)) 2017-11-14 01:14:23 +01:00
fincs
e836ee7bb9 Implement TLS/newlib reent support (untested) 2017-11-14 00:31:47 +01:00
fincs
03674bba85 Implement lock_init{_recursive} newlib syscalls 2017-11-14 00:31:47 +01:00