Commit Graph

212 Commits

Author SHA1 Message Date
capitalistspz
1da14020ee
coreinit: add stopwatch.h and stopwatchatomic.h (#370)
* coreinit: add stopwatch.h and stopwatchatomic.h

* Formatting

* correct function name
2024-06-08 20:19:28 +02:00
Maschell
ef057f145b coreinit: Add __FSAShimDecodeIosErrorToFsaStatus 2024-06-08 17:55:44 +02:00
Maschell
35aa8b7e80 coreinit: Add "SavedFrame" related functions 2024-06-08 17:46:42 +02:00
Maschell
382a3b2c81 coreinit: Add __OSPhysicalToEffectiveCached and __OSPhysicalToEffectiveUncached 2024-06-06 21:10:30 +02:00
Maschell
0f33ec2121 coreinit: Add MCP_ChangeEcoSettings 2024-04-27 13:47:37 +02:00
Andrew
e9abab7cd4 coreinit/mcp: Add MCP_TriggerCrashLogCollection 2024-04-21 15:27:09 +02:00
Maschell
08cfb34e0b
coreinit: Add MEMCheckExpHeap and MEMCheckHeap (#358)
* coreinit: Add MEMCheckExpHeap and MEMCheckHeap

* coreinit: Fix MEMCheckExpHeap and MEMCheckHeap functions
2024-04-20 19:25:24 +02:00
GaryOderNichts
4edae90d8b coreinit/mcp: Fix MCPAppType for DRC and DRH 2024-03-28 11:13:41 +01:00
GaryOderNichts
f1019f63a0 coreinit/im: Add missing IMEvents 2024-01-12 12:09:55 +01:00
GaryOderNichts
430e0c700a coreinit/im: Add IM_SetDeviceState 2024-01-12 12:09:55 +01:00
GaryOderNichts
cb9046e776 Add system time update functions 2023-10-07 10:58:26 +02:00
Maschell
5f42c2c34a
coreinit: Add some missing field to the OSThread struct (#319) 2023-06-04 11:05:14 +01:00
GaryOderNichts
3ae38b15c7
Implement __syscall_getreent (#318) 2023-05-21 14:03:48 +01:00
Maschell
c3491e278c coreinit: Add KernelInfo0/KernelInfo6 structs 2023-04-01 17:04:40 +02:00
Exzap
53a076b4b4 coreinit: Fix OSDynLoad_EntryReason values 2023-04-01 17:04:18 +02:00
GaryOderNichts
8c22896e4f coreinit/mcp: Add MCP_GetSystemVersion 2023-04-01 17:03:58 +02:00
Maschell
d2e9e595c4 coreinit: Add missing MCP functions/enums 2023-04-01 17:03:41 +02:00
GaryOderNichts
451a1828f7 Add MCP_CompatLoadAVFile 2023-03-25 16:05:35 +01: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
GaryOderNichts
09b2ccda26 coreinit: Add smd 2023-02-17 18:15:19 +01:00
Maschell
8b68eebeaf coreinit: Add __OSSuspendThreadNolock 2023-02-10 00:56:58 +01:00
Maschell
73bb4dcbcc coreinit: Add missing fields and enum definitions to OSThread and OSContext 2023-02-10 00:56:58 +01:00
Maschell
55b1cd7f2c coreinit: Add some kernel related functions 2023-02-09 18:16:49 +01:00
Maschell
fe4bdafb92 coreinit: Add __OSConsoleWrite 2023-02-09 18:16:27 +01:00
Maschell
6e58348a04 coreinit: add OSGetCodegenVirtAddrRange 2023-02-09 18:15:55 +01:00
Maschell
ffebb519c4 coreinit: Add missing functions for setting the context 2023-02-09 18:15:40 +01:00
Maschell
65620ceab2 coreinit: Fix missing import in rendevouz.h 2023-02-09 18:15:18 +01:00
Maschell
ccca248af4 coreinit: Add missing (internal) structs 2023-02-09 18:14:56 +01:00
GaryOderNichts
a53d2bda6e coreinit/launch: Add OSLaunchTitle* functions 2023-02-04 16:48:52 +01:00
Xpl0itU
7530dd5818 Fix FSARequest padding 2023-01-22 14:48:27 +01:00
Xpl0itU
e0f8b378de Add FSARequestChangeOwner 2023-01-22 13:42:11 +01:00
GaryOderNichts
4ccc879aa9 coreinit: Add CopyData functions 2022-10-29 19:28:43 +02:00
miku-666
8cae5c050d Update FSStateChangeParams and add offset checks 2022-10-29 18:44:31 +02:00
Maschell
b417b8fbd4 coreinit: Add missing coreinit/context.h include in coreinit/interrupts.h 2022-09-22 17:32:16 +02:00
Maschell
80de7e3aac Add missing FSARequest/FSAResponse structs 2022-09-17 21:45:13 +02:00
GaryOderNichts
0edd2e9c5c Add missing IM_* functions from coreinit 2022-08-28 00:52:10 +02:00
Xpl0itU
88bf29a766 Add const to paths in coreinit/filesystem.h 2022-08-28 00:51:54 +02:00
Maschell
f26ef1a7a4 coreinit: Fix order of arguments for FSOpenFileExAsync 2022-08-05 23:28:18 +02:00
Maschell
1ebadb1169 coreinit: Update FSCmdBlockBody struct to include asyncResult 2022-07-24 20:08:26 +02:00
Maschell
107105e757 coreinit: Add OSShutdown function declaration 2022-07-23 19:26:35 +02:00
Maschell
7418f20eca coreinit: Add OSRestartGame function declaration 2022-07-23 19:26:35 +02:00
Maschell
d290bc8a8a coreinit: Add missing bsp functions 2022-07-23 16:24:44 +02:00
Crementif
d621766b2f
devoptab: Implement various functions and fixes (#223)
- Improved error codes for unlink and rmdir regarding non-empty directories.
- Return ENOENT on empty strings since it softlocks the Wii U. Since the devoptab relies on the cwd it's pretty easy to run into with stuff like recursive path creation for example.
- Clean up open_r mode_t->string conversion
- Improved FSStat->mode_t conversion
- Add FSOpenFileEx and flags
2022-07-23 12:03:07 +02:00
Maschell
318c3a72b9
Fix FSACommandEnum (#236) 2022-07-22 09:25:09 +01:00
Xpl0itU
ed13ea3f19
MCP: Use const for paths (#231) 2022-06-24 22:33:38 +01:00
Maschell
38eaa155cc
Add FSA structs and function declarations (#228) 2022-06-18 12:47:27 +02:00
Maschell
0b196e8abc coreinit: Fix FSError enum 2022-05-21 21:09:25 +02:00
Miku-666
6e547c154f
Add functions used in SCI lib (#211)
* Add functions used in SCI lib

* fix for older code using FSStateChangeInfo
just a typedef `typedef struct FSStateChangeParams FSStateChangeInfo`
2022-05-07 11:29:53 +01:00
Crementif
7831bb20a1 Add more FSStatFlags and add FSTimeToCalendarTime
This pull request adds:
 - Missing flags to FSStatFlags so that it's possible to recognize these (sym)links or encrypted files.
 - Adds the FSTimeToCalendarTime function which is used to convert the created and modified time of the FSStat entry.

These additions don't change anything and are only additive, so it won't break/change existing projects.

Credits to @koolkdev for figuring out the FSStat flags. I double-checked them and did some minor changes (unencrypted -> encrypted).
2022-04-15 16:49:44 +01:00