17 #include <pia/common/common_definitions.h> 22 #define NN_PIA_SDK_VER NN_CURRENT_VERSION_NUMBER 24 #define NN_PIA_SDK_VER CAFE_OS_SDK_VERSION 25 #elif NN_PIA_WIN || NN_PIA_NIN_WIN 26 #define NN_PIA_SDK_VER 0xffffffff 28 #error "Invalid platform." 45 #define NN_PIA_COMMON_SET_PROGRAM_INFORMATION() \ 46 nn::pia::common::SetProgramInformation( \ 162 void SetProgramInformation(u32 sdkVer, u8 nexMajorVer, u8 nexMinorVer, u8 nexMicroVer);
170 bool IsInSetupMode(
void);
178 void PrintDebugInfo(
void);
186 void PrintEnvironmentInfo(
void);
208 #if NN_PIA_EXPERIMENT_USE_PRINT_HOOK 216 void VPrintf(
const char* cpFormat, va_list varg);
227 void Printf(
const char* cpFormat, ...);
229 #endif // end of NN_PIA_EXPERIMENT_USE_PRINT_HOOK void Finalize(void)
Finalizes the common module.
nn::Result EndSetup(void)
Declares the end of setup.
bool IsInitialized(void)
Indicates whether the common module is initialized.
InternalPrintCallback RegisterInternalPrintCallback(InternalPrintCallback pCallback)
Sets the callback that hooks the Pia console output.
void(* InternalPrintCallback)(const char *pStr, s32 len)
The callback type passed to RegisterInternalPrintCallback.
Definition: common_Api.h:195
nn::Result Initialize(void *pMem, u32 size)
Initializes the common module.
nn::Result BeginSetup(void)
Declares the start of setup.
size_t GetMemoryUsage(void)
Gets the amount of memory being used by the Pia library at the point this function is called...