Commit Graph

22 Commits

Author SHA1 Message Date
GaryOderNichts
2c98cc91aa Run clang-format
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
2025-06-05 11:06:04 +01:00
Exzap
53a076b4b4 coreinit: Fix OSDynLoad_EntryReason values 2023-04-01 17:04:18 +02:00
Maschell
de8d37db42 coreinit: Fix OSDynLoad_Error to be a 32bit value 2023-02-19 16:17:41 +01:00
Nathan Strong
d830b51667 A little fleshing out of the dynamic library header
== 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);
   ```
2023-02-17 18:15:35 +01:00
Maschell
ccca248af4 coreinit: Add missing (internal) structs 2023-02-09 18:14:56 +01:00
miku-666
a6dba64a15 Fixed typo 2022-02-11 22:24:28 +00:00
miku-666
ab5b0fee4b Add OSDynLoad_GetLoaderHeapStatistics 2022-02-11 22:24:28 +00:00
Maschell
81d689ed76 coreinit: fix the description of OSDynLoad_AddNotifyCallback/OSDynLoad_DelNotifyCallback, create OSDynLoad_NotifyReason 2020-12-31 11:08:37 +00:00
Maschell
de3c7ad683 coreinit: add OSDynLoad_IsModuleLoaded 2020-12-31 11:08:37 +00:00
Maschell
3cb31a4cec coreinit: add OSDynLoad_AddNotifyCallback and OSDynLoad_DelNotifyCallback 2020-12-31 11:08:37 +00:00
James Benton
8e4ffb2fc6 coreinit: Add OSDynLoad_GetNumberOfRPLs and OSDynLoad_GetRPLInfo. 2020-05-12 07:46:54 +01:00
James Benton
400318c3d1 Rename rpl_main to rpl_entry. 2018-09-30 08:40:38 +01:00
Maschell
531dfaee7f Add OSDynLoad_GetModuleName 2018-06-30 21:13:16 +02: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
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
f403512d5b coreinit: Fix OSDynLoad_FindExport isData to be a BOOL. 2017-05-10 17:22:37 +01:00
James Benton
1145044517 Start doxygen documentation. 2016-01-07 16:04:01 +00:00
James Benton
4bebe2242d Remove WUT_LIB_HEADER_START. 2016-01-07 14:09:43 +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
d58b264cab Remove some internal decaf functions that snuck in. 2016-01-07 04:46:55 -08:00
James Benton
9f42cfa12e Add a bunch of coreinit functions. 2016-01-07 12:07:13 +00:00