* - Added all missing IM_*() functions.
- Added details for the "args" field of IMRequest.
* Flag enums should always be unsigned because the mask type is unsigned. This avoids "narrowing
conversion" warnings.
* Use a macro to correct Nintendo's typo.
---------
Co-authored-by: Daniel K. O. (dkosmari) <none@none>
* Add and apply some allocation-related attributes
`WUT_ALLOC_SIZE` was left off `MEMAllocFromExpHeapEx` because the allocated region may be resized via `MEMResizeForMBlockExpHeap`, but is always accessed via the same pointer.
Some functions had to have the free and allocate function order swapped because the two-parameter `malloc` attribute relies on declaration order
* Add attrs to `MEMAllocFromDefaultHeapFn` and `MEMAllocFromDefaultHeapExFn`
* Add attrs to `MEMAllocFromBlockHeapEx`, `MEMAllocFromBlockHeapAt` and `MEMAllocFromFrmHeapEx`
* whoops
* Add attrs to `MEMAllocFromUnitHeap`
* Formatting
* Fix doxygen expansion
* coreinit/debug: Add documentation to the functions that kill the console
* Add `WUT_NORETURN` and apply to relevant functions
* Add `OSSetPanicCallback`
* Remove `WUT_NORETURN`
* add OSGetConsoleType, and MCP_GetSystemMode
this adds in two functions that were an exported symbol in the system
libraries, but not included in any headers. these are useful for doing
two things:
- determine what kind of console you're running on (for users who want
to know if they're running a CAT-DEV, CAT-R, Kiosk Unit, Retail
Wii-U's, etc.)
- determine if the wii-u is currently running in production/development
mode. this shouldn't be too useful for many users, as not too much
changes besides certain extra libraries/etc. are loaded in memory.
however, users may want to lock things behind development mode as dev
mode can only be normally enabled when there's extra memory.
* add new comment to mask
* properly label PCFS mount type
now that we've got an open-source way of booting a cat-dev, and using
PCFS, we can confirm that this second mount source is indeed PCFS.
* fix one space
* pcfs -> hfio
== DETAILS
This commit provides two tweaks:
1. Add the "library not found" error, value of -6, to the
`OSDynLoad_Error` enums
2. Define an `OSDynLoad_ExportType` enum and use it in place of the
`isData` boolean parameter to avoid raw `true`/`false` values in the
code and make usages easier to read:
```c
// before - unclear what "false" means in this context
last_error = OSDynLoad_FindExport((OSDynLoad_Module)lib, false, proc, &ptr_sym);
```
vs:
```c
// after - aha, we're looking up a function symbol
last_error = OSDynLoad_FindExport((OSDynLoad_Module)lib, OS_DYNLOAD_EXPORT_FUNC, proc, &ptr_sym);
```