diff --git a/include/coreinit/foreground.h b/include/coreinit/foreground.h new file mode 100644 index 0000000..88eb1b0 --- /dev/null +++ b/include/coreinit/foreground.h @@ -0,0 +1,27 @@ +#pragma once +#include + +/** + * \defgroup coreinit_foreground Foreground Management + * \ingroup coreinit + * @{ + */ + +#ifdef __cplusplus +extern "C" { +#endif + +void +OSEnableForegroundExit(); + +void +OSReleaseForeground(); + +void +OSSavesDone_ReadyToRelease(); + +#ifdef __cplusplus +} +#endif + +/** @} */ diff --git a/rpl/libcoreinit/exports.h b/rpl/libcoreinit/exports.h index 9b782f4..474b727 100644 --- a/rpl/libcoreinit/exports.h +++ b/rpl/libcoreinit/exports.h @@ -152,6 +152,11 @@ EXPORT(FSSetPosFileAsync); EXPORT(FSGetVolumeState); EXPORT(FSGetLastErrorCodeForViewer); +// coreinit/foreground.h +EXPORT(OSEnableForegroundExit); +EXPORT(OSReleaseForeground); +EXPORT(OSSavesDone_ReadyToRelease); + // coreinit/frameheap.h EXPORT(MEMCreateFrmHeapEx); EXPORT(MEMDestroyFrmHeap);