Global: Set many read-only params as const.

This makes what they do and which args to use clearer, if nothing else.
This commit is contained in:
Unknown W. Brackets committed 2022-12-10 21:13:36 -08:00
1 parent e3fdb183f6
commit a7b7bf7826
71 files changed
+113 -119

No files matched your search

+1 -1
View File
@@ -1466,7 +1466,7 @@ void __KernelSaveContext(PSPThreadContext *ctx, bool vfpuEnabled) {
}
// Loads a CPU context
void __KernelLoadContext(PSPThreadContext *ctx, bool vfpuEnabled) {
void __KernelLoadContext(const PSPThreadContext *ctx, bool vfpuEnabled) {
// r and f are immediately next to each other and must be.
memcpy((void *)currentMIPS->r, (void *)ctx->r, sizeof(ctx->r) + sizeof(ctx->f));