Commit Graph

319 Commits

Author SHA1 Message Date
James Benton
e65cb2304b Reformat vpad/input.h 2018-06-18 10:20:48 +01:00
James Benton
83583aa80b Reformat wpad.h 2018-06-18 10:20:48 +01:00
James Benton
75038273b5 Reformat kpad.h 2018-06-18 10:20:48 +01:00
James Benton
71c6521a38 Reformat hid.h 2018-06-18 10:20:48 +01:00
James Benton
55edba512f Fix circular dependency between systeminfo.h and time.h 2018-06-18 10:04:27 +01:00
James Benton
9cc6aead84 coreinit: Add remaining IM* functions. 2018-06-17 21:02:35 +01:00
Maschell
9dfb7d5344 Add missing VPAD rumble functions to the vpad/input.h 2018-06-17 20:55:28 +01:00
Maschell
c3c8ce30fe Modifed the kpad and wpad struct to be more like the VPADStatus struct. 2018-06-17 20:55:28 +01:00
Maschell
ea64525812 Add missing "systeminfo.h" include to the "thread.h" 2018-06-17 20:55:28 +01:00
Maschell
9fe98f8abe Add more button defines to the VPAD input.h 2018-06-17 20:55:28 +01:00
Maschell
f5aa0a6523 Add include of head "sys/select.h" which declares missing "fd_set" 2018-06-17 20:55:28 +01:00
Maschell
53c1a5f6c4 Add header files for some kpad and wpad functions 2018-06-17 20:55:28 +01:00
Maschell
da21125e15 Add header for the nsyshid.rpl 2018-06-17 20:55:28 +01:00
Maschell
c1c30a5c73 Add energy saving header. 2018-06-17 20:55:28 +01:00
James Benton
08fdf44541 1.0.0-alpha release. 2018-06-15 10:50:25 +01:00
James Benton
26af965373 Update some doxygen related headers. 2018-06-14 14:11:22 +01:00
James Benton
b48055dcb5 Fix some doxygen header groups. 2018-06-14 13:34:39 +01:00
James Benton
c4214cef35 sysapp: Change unknown structure to a struct typedef. 2018-06-13 17:36:12 +01:00
James Benton
adfd1c4e91 Fix nn/ac.h including removed header. 2018-06-13 13:39:42 +01:00
James Benton
c2a993a4dd samples: Add swkbd sample. 2018-06-13 12:14:11 +01:00
James Benton
75784dbb52 Add nn::swkbd library. 2018-06-13 12:12:22 +01:00
James Benton
9beff5dd0b Add padscore/kpad.h for a stubbed KPADStatus typedef. 2018-06-13 12:11:00 +01:00
James Benton
dc29e49a13 Fix nn/ac.h includes. 2018-06-13 12:10:15 +01:00
James Benton
2770867c97 nn_ac: Move to nn/ac and start the C++ API. 2018-06-11 17:34:05 +01:00
James Benton
f11112ca0f Change LATTE_SQ_SEL to GX2_SQ_SEL.
latte is private stuff yo.
2018-05-31 11:19:39 +01:00
James Benton
f281be50ab Add support for generating RPL files.
RPL files are shared libraries (like a .dll file), as opposed to the RPX
files which are executables (like a .exe file).

Use rpl_main as defined in dynload.h like one would DllMain on Windows.
2018-05-30 21:56:18 +01:00
James Benton
1489adeb37 coreinit: Add MEMVisitAllocatedForExpHeap 2018-05-30 19:05:54 +01:00
James Benton
d350e2e28a coreinit: Add a prototype for __preinit_user.
Also throw in CoreInitDefaultHeap whilst we are there, it's the default
implementation of __preinit_user.
2018-05-30 18:56:10 +01:00
James Benton
d5effaaf88 coreinit: Cleanup memory heap functions.
Move files to mem*heap.h.
Use MEMHeapHandle everywhere to reduce need for unecessary casts.
Rename types to match the function names better (e.g. Frame -> Frm).
2018-05-30 13:13:37 +01:00
James Benton
42ac732b2e coreinit: Add some memory functions.
Adds OSGetForegroundBucket, OSGetForegroundBucketFreeArea, OSGetMemBound.
2018-05-30 13:11:57 +01:00
James Benton
3e117fe667 coreinit: Merge baseheap.h into memheap.h 2018-05-30 13:11:20 +01:00
James Benton
3c763b7a08 coreinit: Add OSDynLoad_{Get,Set}TLSAllocator. 2018-05-30 13:10:57 +01:00
James Benton
65f03c5e62 coreinit: Add OSDynLoad_Error. 2018-05-30 13:10:38 +01:00
James Benton
524fd9143a coreinit: Add virtual memory mapping functions. 2018-05-29 13:55:10 +01:00
James Benton
766e832363 coreinit: Add default heap data exports. 2018-05-29 10:52:40 +01:00
James Benton
2b165bf887 Improve time conversion macros. 2018-05-28 11:39:36 +01:00
James Benton
479e9ad677 Add devoptab support for sdcard. 2018-05-27 12:11:45 +01:00
James Benton
33bff6ccb9 whb: Fix exception handlers to be globally registered.
Was previously only registered for current thread.
2018-05-25 18:59:29 +01:00
James Benton
b4e5bf4106 Change OS{Get,Set}ThreadSpecific to use void *. 2018-05-25 18:06:25 +01:00
James Benton
76844067dd Add OSSeconds to time.h 2018-05-25 17:13:40 +01:00
James Benton
d0f43d24b7 Fix size of OSThread structure 2017-11-01 11:00:18 +00:00
James Benton
d28f2f0a7a Fix formatting. 2017-06-02 11:50:57 +01:00
James Benton
0239462847 nsysnet: Add defines for UDP broadcast. 2017-06-02 11:50:43 +01:00
James Benton
ee9bd49c34 whb: Handle GPU hangs by resetting the GPU on shutdown.
So your application will exit cleanly even when you break the GPU.
2017-06-02 11:50:12 +01:00
James Benton
2100cea176 coreinit: Add OSGetSymbolName, OSGetUPID. 2017-06-02 11:42:42 +01:00
James Benton
5a07bf6c1d coreinit: Add DisassemblePPCRange. 2017-06-02 11:42:24 +01:00
James Benton
46b3c9c7e0 coreinit: Add OSEnableHomeButtonMenuhome button menu and OSIsHomeButtonMenuEnabled. 2017-06-02 11:41:54 +01:00
James Benton
a2cf3837a3 coreinit: Fix type from uint8_t * to void * in MEMExpHeap functions. 2017-06-02 11:41:03 +01:00
James Benton
c83ff22780 coreinit: Move OSContext to context.h 2017-06-02 11:40:41 +01:00
James Benton
bb05542e60 gx2r: Fix GX2R allocated memory flag. 2017-05-28 12:01:06 +01:00
James Benton
bd59620c56 gx2: Add GX2RResourceFlags to GX2Surface. 2017-05-28 12:01:06 +01:00
James Benton
576ab3fe4d coreinit: Fix missing threadqueue.h include in messagequeue.h 2017-05-26 18:24:14 +01:00
James Benton
c4aebac137 coreinit: Fix OSMessageFlags enum name. 2017-05-26 17:46:57 +01:00
James Benton
24c57e28c0 Add missing latte_enum_sq.h header required by libwhb. 2017-05-10 17:48:48 +01:00
James Benton
f177555ca3 gx2: Add some alignment values to gx2/enum.h 2017-05-10 17:28:09 +01:00
James Benton
5c9cc47e1c gx2: Add GX2TempGetGPUVersion. 2017-05-10 17:24:01 +01:00
James Benton
753226cff3 gx2: Add missing typedef enum names. 2017-05-10 17:23:44 +01:00
James Benton
f403512d5b coreinit: Fix OSDynLoad_FindExport isData to be a BOOL. 2017-05-10 17:22:37 +01:00
James Benton
5a91b91476 gx2: Fix return type of GX2GetSystemDRCScanMode. 2017-05-10 17:22:18 +01:00
James Benton
8c93d5b3c8 proc_ui: Add ProcUIRegisterCallback{Core}. 2017-05-10 17:21:57 +01:00
James Benton
d0dab12160 Add GX2_SHADER_PROGRAM_ALIGNMENT 2017-05-07 01:37:48 +01:00
James Benton
00a3d9d554 Change GX2 shader program pointers to void*. 2017-05-07 01:37:41 +01:00
James Benton
cdc07cac23 nsysnet: Update socket.h to use sys/time.h and sys/types.h 2017-04-10 23:19:21 +01:00
James Benton
840d91c62e coreinit: Add 32 bit atomic exports. 2017-04-10 23:19:21 +01:00
James Benton
604b18faf0 coreinit: Add missing fields to OSCalendarTime. 2017-04-10 23:19:21 +01:00
James Benton
9acc679c6f coreinit: Add missing argument to _Exit. 2017-04-10 23:19:21 +01:00
James Benton
6d5bb75cb3 coreinit: Update atomic64 to use pointer to volatile value. 2017-04-10 23:19:21 +01:00
James Benton
b7a4cba5c3 coreinit: Add OSScreenShutdown. 2017-04-07 01:24:37 +01:00
James Benton
45257957d0 coreinit: Add some IOS functions. 2017-04-07 01:24:37 +01:00
James Benton
6f51e6c76e Add nn_ac library. 2017-04-07 01:24:36 +01:00
James Benton
4dfe8d5ea6 nsysnet: Add some missing stuff. 2017-04-07 01:23:29 +01:00
James Benton
eb74acf209 vpad: Add VPADShutdown. 2017-04-07 01:23:07 +01:00
James Benton
9161baaee3 nsysnet: Do not rely on sys/socket.h or sys/time.h 2017-04-05 18:16:20 +01:00
James Benton
5405bca57e Add missing include to expandedheap.h 2017-03-23 12:17:47 +00:00
James Benton
bb7d180e40 Fix wut_structsize.h for compilers which do not have static_assert (pre C11) 2017-02-21 20:06:18 +00:00
dimok789
1a1a87a948 - keep .lib.rplLibs section. this allows use of --gc-sections and reduce RPX size - added a few memory functions 2016-11-06 21:11:14 -08:00
CreeperMario Games
d7a2af2a0b Added ICInvalidateRange to coreinit and modified Makefiles 2016-11-06 09:48:30 +10:30
James
48d2fcc314 Merge pull request #46 from dimok789/master
Link fixes for C++ applications and some additional enums and function declarations
2016-10-11 21:42:38 +01:00
James Benton
8aaa4de345 gx2: Remove internal function GX2RIsGX2RSurface. 2016-10-11 21:35:13 +01:00
dimok789
37330b5046 - added gx2 aa 2x and 4 and some additional primitive and surface enums
- added some gx2 logical ORed enums as typdef enum does not allow OR operations without a cast in C++
- added AXQuit in sndcore2
- added OSGetTitleID in coreinit
- removed not existing functions from nsysnet and added inet_ntoa
2016-10-11 19:17:18 +02:00
James Benton
8f38b15a72 Add missing .dox module files. 2016-10-09 21:25:33 +01:00
James Benton
d9bd766b4c coreinit: Cleanup formatting in coreinit/mcp.h 2016-10-09 21:16:56 +01:00
James Benton
4a595fba93 coreinit: Fill out MEMUnitHeap structure. 2016-10-09 21:16:40 +01:00
James Benton
0a34d5b7a2 coreinit: Fill out MEMExpandedHeap structure. 2016-10-09 21:16:26 +01:00
James Benton
f72cd983d3 gx2r: Fix GX2RBuffer->buffer member declaration. 2016-10-09 21:02:07 +01:00
James Benton
3f03e84d45 gx2: Remove duplicated GX2RResourceFlags enum. 2016-10-09 21:01:52 +01:00
James Benton
cf00f97167 gx2r: Add gx2r surface functions. 2016-10-09 20:58:15 +01:00
James Benton
467fb4e8ca gx2r: Add some gx2r memory functions. 2016-10-09 20:58:02 +01:00
James Benton
41cee3bd14 gx2r: Add some gx2r draw functions. 2016-10-09 20:57:50 +01:00
James Benton
bb3543b626 gx2r: Add gx2r display list functions. 2016-10-09 20:57:33 +01:00
James Benton
c70b7be365 gx2r: Add uniform block GX2RBuffer functions. 2016-10-09 20:57:17 +01:00
James Benton
b85e35dc7d gx2: Add some tessellation functions. 2016-10-09 20:56:30 +01:00
James Benton
29d6e56963 gx2: Add some more draw functions. 2016-10-09 20:56:16 +01:00
James Benton
a7b9e58c09 gx2: Add missing CHECK_OFFSET for GX2ShadowState. 2016-10-09 20:56:01 +01:00
James Benton
623661a39c coreinit: Move time macros from systeminfo.h to time.h 2016-10-09 20:36:33 +01:00
James Benton
9871c06e67 gx2: Add gx2r buffer functions. 2016-10-09 15:57:23 +01:00
shinyquagsire23
629465f33b GX2CalcColorBufferAuxInfo takes GX2ColorBuffer argument, not GX2Surface 2016-10-07 11:56:31 -06:00
James
1f30d4b785 Merge pull request #40 from shinyquagsire23/gx2-additions
Additional GX2 definitions from decaf-emu
2016-08-28 00:19:17 +01:00
shinyquagsire23
98966f020f Add FSBindMount and FSBindUnmount 2016-08-26 16:25:05 -07:00
shinyquagsire23
6affe2ff29 Add FSChangeMode and FSGetFreeSpaceSize 2016-08-26 16:25:05 -07:00
shinyquagsire23
e89da7a216 Additional GX2 definitions from decaf-emu 2016-08-25 22:01:44 -07:00
shinyquagsire23
5601fa2dda Remove GX2 functions which don't exist in target system version 2016-08-24 15:46:02 -07:00
James Benton
49c9a2950a Add libsndcore2. 2016-08-19 00:35:46 +01:00
xhp-creations
28f8b1655f Fixed C++ defines and procui.h declarations
Fixed C++ defines and procui.h declarations
2016-08-15 00:33:58 -04:00
James Benton
f2e4e04805 coreinit: Add block heap definitions. 2016-08-10 18:27:20 +01:00
James
ae9fa0a8ab Merge pull request #28 from shinyquagsire23/mcp
Add basic MCP coreinit imports
2016-08-08 21:06:16 +01:00
shinyquagsire23
7e3b1445eb Add MCP_DeviceList and MCP_FullDeviceList 2016-08-06 22:03:30 -07:00
shinyquagsire23
c0148133db Fix ordering in mcp.h 2016-08-01 15:22:44 -07:00
shinyquagsire23
e43e86aeda Add basic MCP coreinit imports 2016-08-01 15:16:36 -07:00
shinyquagsire23
0d4fe1f052 Add FSMountSource struct, use filesystem structs in devoptab 2016-07-31 22:28:28 -07:00
shinyquagsire23
0aa7a3e021 Add devoptab support to crt 2016-07-30 22:28:58 -07:00
shinyquagsire23
f4151dd9c1 Add foreground management imports to coreinit 2016-07-27 00:39:25 -07:00
shinyquagsire23
8faf7c7f38 Add basic ProcUI RPL imports 2016-07-27 00:39:03 -07:00
James Benton
cc50c182cf Cleanup OSScreen function declarations. 2016-07-25 23:01:55 +01:00
shinyquagsire23
2631388a9b Add additional type shorthands to wut_types.h 2016-07-25 14:01:20 -07:00
James
fc4a834d8d Merge pull request #19 from shinyquagsire23/rpl-sysapp
Add basic sysapp RPL imports
2016-07-25 11:17:53 +01:00
shinyquagsire23
cdb90a39a7 Add basic sysapp RPL imports 2016-07-24 19:06:36 -07:00
James Benton
a1d023af16 Add some comments to vpad/input.h 2016-07-25 02:03:46 +01:00
James
60e3575f59 Merge pull request #17 from shinyquagsire23/rpl-vpad
Add basic vpad RPL imports
2016-07-25 01:16:27 +01:00
shinyquagsire23
5f109cbfea Add basic vpad RPL imports 2016-07-24 17:04:27 -07:00
James Benton
67cc02c52b Remove trailing whitespace in socket.h 2016-07-24 23:41:21 +01:00
shinyquagsire23
cc0c50a8d5 Add nsysnet RPL imports 2016-07-24 15:13:06 -07:00
shinyquagsire23
6f88094f1d Add OSScreen functions to coreinit 2016-07-24 14:03:22 -07:00
James Benton
d02bdf6e35 Use enums instead of defines in memheap.h 2016-07-23 11:09:58 +01:00
James Benton
29b6d586e6 Update frameheap to have correct structure. 2016-07-23 11:09:58 +01:00
James Benton
8e9425f7d4 Add some comments to coreinit/baseheap.h 2016-07-23 11:09:58 +01:00
shinyquagsire23
9173f0f6c3 Adjustments for linking, rpx/rpl generation 2016-07-22 20:35:20 -07:00
shinyquagsire23
631d88a4c3 Remove imports which don't exist in elf2rpl's target coreinit.rpl version 2016-07-16 17:32:13 -07:00
James Benton
64bb52c552 Add OSBlockMove and OSBlockSet. 2016-07-06 20:48:54 +01:00
James Benton
075d80aec8 Add coreinit coroutine API. 2016-07-06 18:46:05 +01:00
James Benton
4bfbb7abf7 Add missing include to sampler.h in gx2/shaders.h 2016-06-08 00:59:48 +01:00
James Benton
b778a54203 Add GX2 shader functions. 2016-06-08 00:21:11 +01:00
James Benton
95c2610b04 Add coreinit OSGetSystemInfo. 2016-06-08 00:20:34 +01:00
James Benton
e831f3c399 Add gx2/enum.h and move all GX2 enums to it. 2016-06-08 00:15:43 +01:00
James Benton
fd069526ab filesystem: Remove unnecessary include. 2016-01-11 01:19:08 +00:00
James Benton
369b2cb6b1 Add FSError, FSVolumeState enum values. 2016-01-11 01:13:14 +00:00
James Benton
4779dea85a Fix filesystem.h 2016-01-10 17:10:38 -08:00
James Benton
74cbc8f3ff Add filesystem functions. 2016-01-11 01:04:58 +00:00
James Benton
f9123fa460 Fix compile errors. 2016-01-08 08:52:12 -08:00
James Benton
05149e41ad Add lots of GX2 functions. 2016-01-08 16:38:38 +00:00
James Benton
fddf6f2532 Fix naughty enum typedefs. 2016-01-08 07:28:52 -08:00
James Benton
33247b5034 More documentation. 2016-01-07 19:25:07 +00:00
James Benton
d84d765e59 Add module .dox 2016-01-07 16:13:50 +00:00
James Benton
1145044517 Start doxygen documentation. 2016-01-07 16:04:01 +00:00
James Benton
c6de879cbc Add pragma pack 1 byte alignment for OSThread.
Struct size seems to be rounded up to 8 byte alignment.
2016-01-07 06:21:02 -08:00
James Benton
4bebe2242d Remove WUT_LIB_HEADER_START. 2016-01-07 14:09:43 +00:00
James Benton
e8b6b9b308 Add taskqueue functions. 2016-01-07 13:42:22 +00:00
James Benton
297a0d7068 Add messagequeue functions 2016-01-07 13:32:55 +00:00
James Benton
512fee7d94 Add unit heap functions. 2016-01-07 13:21:00 +00:00
James Benton
0aa7d4b2c4 Add memlist functions. 2016-01-07 13:20:45 +00:00
James Benton
b3da4d60c1 Add frameheap functions. 2016-01-07 13:20:32 +00:00
James Benton
948f03758a Add baseheap functions. 2016-01-07 13:20:05 +00:00
James Benton
2f89fed96c Move memexpandedheap.h to expandedheap.h 2016-01-07 13:19:50 +00:00
James Benton
2e776838ff Use a macro WUT_LIB_HEADER_{START,END}...
So we don't have to extern C and pragma pack in every header file.
2016-01-07 05:02:17 -08:00
James Benton
7669e4b4ee Simple formatting changes. 2016-01-07 04:48:11 -08:00
James Benton
7219164f4b Add missing OSMutexQueue typedef. 2016-01-07 04:47:58 -08:00
James Benton
7fb39a71bd Fix unknown size in OSThread 2016-01-07 04:47:45 -08:00
James Benton
92511be884 Fix thread entry point to use int as return and argc type. 2016-01-07 04:47:36 -08:00
James Benton
35dd3f23e1 Remove second OSCondition definition in mutex.h 2016-01-07 04:47:16 -08:00
James Benton
ca212889b4 Move OSFastCondition to it's own header file. 2016-01-07 04:47:08 -08:00
James Benton
d58b264cab Remove some internal decaf functions that snuck in. 2016-01-07 04:46:55 -08:00
James Benton
fcf59a8dd8 Add missing OSInitAlarmQueueEx function 2016-01-07 04:46:02 -08:00
James Benton
e123ba272f Fix enum typedefs so we now define storage type. 2016-01-07 04:45:44 -08:00
James Benton
04fd92f05f Fix struct forward declarations. 2016-01-07 04:45:18 -08:00
James Benton
acfffa6d85 Apparently static const struct members don't exist in C.
Let's use #defines, that's much better ... C is nice language Kappa
2016-01-07 04:44:44 -08:00
James Benton
9f42cfa12e Add a bunch of coreinit functions. 2016-01-07 12:07:13 +00:00
James Benton
300c0e45ba Update include layout. 2016-01-05 15:25:22 -08:00
James Benton
44225e4c28 Fix LIBRARY_NAME 2016-01-04 05:20:36 -08:00
James Benton
8a9dfb1835 Basic start of a Wii U Toolchain. 2015-12-26 18:10:38 -08:00