Commit Graph

122 Commits

Author SHA1 Message Date
Crayon2000
22f1f6b5c3 Fill all "unused" sections in KPADData structure 2017-09-24 01:20:10 -04:00
Crayon2000
9eca181bde Add more vpad functions 2017-09-20 09:15:19 -04:00
Maschell
fee3b26c33 Merge pull request #15 from rw-r-r-0644/master
Added __OSPhysicalToEffectiveUncached
2017-09-17 15:52:09 +02:00
rw-r-r_0644
75d31c66a7 Added __OSPhysicalToEffectiveUncached 2017-09-17 15:48:59 +02:00
admin
90c40a36c6 unify types in os_functions 2017-09-17 00:04:01 +02:00
admin
a227744f73 unify types in fs_functions 2017-09-17 00:02:54 +02:00
admin
18f241d53c use u8, u32, u64 in fs_defs.h 2017-09-17 00:02:00 +02:00
admin
501fa6a404 use s32 in sys_functions.h 2017-09-17 00:01:28 +02:00
admin
9d75f910f1 add OSScreenShutdown 2017-09-16 23:47:01 +02:00
admin
e2482f9e32 add _SYSLaunchMenuWithCheckingAccount and SYSLaunchSettings 2017-09-16 23:45:37 +02:00
admin
ac995a77c0 add nn_act_GetDefaultAccount 2017-09-16 23:44:26 +02:00
Maschell
c3a91ebe96 added missed functions. OSGetCoreId and OSForceFulLRelaunch 2017-09-11 18:32:59 +02:00
Maschell
451c406012 Merge pull request #11 from Crayon2000/vpad
Add vpad functions and fill VPADData struct
2017-09-04 12:47:21 +02:00
Maschell
c0971cb52b Merge pull request #13 from Crayon2000/KPADReadEx
Fix linking problem with KPADReadEx
2017-09-04 12:46:39 +02:00
Crayon2000
44177a3e5b Fix linking problem with KPADReadEx
The void* parameter from KPADRead was also changed to KPADData.
2017-08-29 22:12:36 -04:00
Maschell
f5041f5d7f add DCStoreRange 2017-08-28 18:10:22 +02:00
Maschell
13f5b5caa8 added a fs_defs define 2017-08-27 19:24:49 +02:00
Maschell
ee80a47e47 little changes in the fs_defs.h 2017-08-27 14:02:16 +02:00
Maschell
179ad3581e added some FS defines 2017-08-26 01:08:55 +02:00
Maschell
557ce334a4 Merge pull request #12 from Zarklord1/patch-1
Update socket_functions.h
2017-08-24 05:40:25 +02:00
Zarklord1
9bcd302288 Update socket_functions.h 2017-08-23 23:28:39 -04:00
Maschell
c5c73ce18e add IOS_IoctlAsync function 2017-08-23 19:36:18 +02:00
Maschell
3c71a14f10 added file/handle for nn_nim functions 2017-08-14 13:18:42 +02:00
Maschell
048a585d5e Added some more OS functions, added nn_save and nn_act acquire 2017-08-13 20:11:23 +02:00
Maschell
50ee5c62b7 Added handle for nfp and ntag functions 2017-07-21 12:06:30 +02:00
Maschell
7a31349744 Added ProcUI functions 2017-07-20 15:18:32 +02:00
Maschell
eb186a7795 Merge branch 'master' of https://github.com/Maschell/dynamic_libs 2017-07-20 13:41:53 +02:00
Maschell
90bf41bed8 added handle for the snd_core 2017-07-20 13:41:50 +02:00
Maschell
a9abaddf5c Added FSAsyncCallback 2017-05-10 20:52:34 +02:00
Crayon2000
c546e2b8ce Add VPADCalcTPCalibrationParam function 2017-05-07 23:36:18 -04:00
Crayon2000
bd0862328b Add vpad functions and fill VPADData struct
Added VPADSetTPCalibrationParam, VPADGetTPCalibrationParam, VPADGetTPCalibratedPoint and VPADGetTPCalibratedPointEx.
The VPADData struct is filled completely, no unknown sections are left.
2017-05-07 15:54:50 -04:00
Maschell
a2f4abdbeb [Caution] Renamed the sleep functions to resolve conflicts with the unistd.h 2017-05-07 14:23:06 +02:00
Maschell
d7b44109ac Merge pull request #10 from neuschaefer/dev
fs_functions: add FSAddClient and FSGetCurrentCmdBlock
2017-05-07 14:21:39 +02:00
Maschell
51b2a8ed7e Merge pull request #9 from Crayon2000/OSScreenPutPixelEx
Add OSScreenPutPixelEx function
2017-05-07 14:21:27 +02:00
Jonathan Neuschäfer
0a12a3b64d fs_functions: add FSAddClient and FSGetCurrentCmdBlock 2017-05-03 15:14:58 +02:00
Crayon2000
67cfaa568d Add OSScreenPutPixelEx function
OSScreenPutPixelEx will draw a pixel of a certain color to the specified coordinates. This just writes the input u32 to the target location in the framebuffer, nothing is done with the data already stored in the framebuffer.
2017-04-30 14:40:53 -04:00
Maschell
e56b20ce9b Added missing include gctypes and changed data types 2017-04-30 09:42:49 +02:00
Maschell
ef06a0e3f2 Merge pull request #8 from Crayon2000/changes
Fix compiler warnings
2017-04-30 09:29:09 +02:00
Crayon2000
d38ffbfda6 Use u8 instead of uint8_t in the VPADData struct
This is to be more consistent with other data in the VPADData struct.
2017-04-29 21:42:36 -04:00
Crayon2000
fa4a6872b5 Tab to spaces 2017-04-29 21:34:09 -04:00
Crayon2000
7151534641 Fix compiler warnings
These are the two warnings that I fixed:

/src/dynamic_libs/os_functions.c: In function '_os_find_export':
/src/dynamic_libs/os_functions.c:171:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof(a) - 1; i++)
                       ^
/src/dynamic_libs/os_functions.c:177:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof(b) - 1; i++)
                       ^
2017-04-29 21:28:05 -04:00
Maschell
d2f15cc9b6 Merge pull request #6 from neuschaefer/dev
Space savings, memory functions, .gitignore
2017-04-29 12:50:39 +02:00
Maschell
b64c23cc55 Merge pull request #7 from Crayon2000/gyro_and_angle
Add support for vpad gyro and angle
2017-04-29 12:43:40 +02:00
Crayon2000
628bff0145 Add support for vpad gyro and angle
gyro.x = Rotation speed around X (horizontal) axis
gyro.y = Rotation speed around Y (depth) axis
gyro.z = Rotation speed around Z (vertical) axis

angle.x = Rotation around X (horizontal) axis
angle.y = Rotation around Y (depth) axis
angle.z = Rotation around Z (vertical) axis
2017-04-27 23:56:23 -04:00
Jonathan Neuschäfer
b289fed3b7 os_functions: Add OSIsAddressValid
This functions checks whether a virtual address is mapped readable.
2017-04-24 05:41:14 +02:00
Jonathan Neuschäfer
1afc4b899e os_functions: Add OS{AllocFrom,FreeTo}System
OSAllocFromSystem allocates a physically contiguous area of memory, and
returns a pointer to it as a virtual address in the calling process's
address space. OSFreeToSystem is the corresponding free function.
2017-04-24 05:41:14 +02:00
Jonathan Neuschäfer
775993a09b Move most of OS_FIND_EXPORT{,_EX} into a function
This brought the file size of os_functions.o (compiled at -O2, not stripped)
from 15K to 9.7K. Section sizes changed in the following ways:

        .text  .rela.text  .data  .rodata.str1.4  .syntab  .strtab  .shstrtab
before   5660        2928    276            3111     1264     1255         89
after    2860        2376    276            1175     1296     1294         89

The most obvious win is due to not including two strings per imported function
("OSFoo" and "Function OSFoo is NULL") in the .rodata section anymore, but
outlining the error-handling code also reduced the size of .text significantly.
2017-04-24 05:41:13 +02:00
Jonathan Neuschäfer
81b1a92727 .gitignore: Ignore .o files 2017-04-24 05:41:13 +02:00
Maschell
64f225382a Added the wpad sampling callback 2017-04-23 15:21:51 +02:00
Maschell
ecc0823a5d Merge pull request #5 from Crayon2000/include_problem
Fix include problem
2017-04-22 09:47:36 +02:00