Add various functions used in root.rpx

This commit is contained in:
Maschell
2022-02-25 21:36:26 +01:00
committed by James
parent e16dc8725d
commit 6112345285
5 changed files with 60 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ extern "C" {
#endif
typedef void (*DisassemblyPrintFn)(const char *fmt, ...);
typedef uint32_t (*DisassemblyFindSymbolFn)(uint32_t addr, char *symbolNameBuf, uint32_t symbolNameBufSize);
typedef enum DisassemblePPCFlags
@@ -72,6 +73,12 @@ OSIsECOBoot();
BOOL
OSIsECOMode();
void
__OSSetCrashRecovery(uint32_t crashRecovery);
uint32_t
__OSGetCrashRecovery();
BOOL
DisassemblePPCOpcode(uint32_t *opcode,
char *buffer,

View File

@@ -33,6 +33,12 @@ OSGetSharedData(OSSharedDataType type,
void **outPtr,
uint32_t *outSize);
/*
* Can only be called from Root (process)
*/
void
__OSRootLoadShared();
/**
* Moves chunks of memory around, similarly to memmove. Overlapping source and
* destination regions are supported.

View File

@@ -0,0 +1,20 @@
#pragma once
#include <wut.h>
#ifdef __cplusplus
extern "C" {
#endif
int
__OSGetSavedAudioFlags();
int __OSGetTransitionAudioBuffer(void **buffer,
uint32_t *size);
void
__OSSetTransitionAudioSize(uint32_t size);
#ifdef __cplusplus
}
#endif