Commit Graph

196 Commits

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