mirror of
https://github.com/devkitPro/wut.git
synced 2026-09-30 13:58:04 -05:00
Add various functions used in root.rpx
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
20
include/coreinit/transition.h
Normal file
20
include/coreinit/transition.h
Normal 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
|
||||
Reference in New Issue
Block a user