OSIsTitleInstalled

Syntax

#include <revolution/discnand.h>
#define OSTITLE_STACK_SIZE  2048
BOOL OSIsTitleInstalled(OSTitleId titleId);

Arguments

titleId Title ID of the NAND application you want to check.

Return Values

Returns TRUE if the NAND application has been installed in an executable state.

Description

Checks to see whether the specified NAND application has been installed in an executable state. The function prepares a buffer of sufficient size in the stack for a normal NAND application (as defined by the macro constant OSTITLE_STACK_SIZE) and then executes OSGetTitleStatus. The function will return TRUE only if OSGetTitleStatus returns OSTITLE_RESULT_OK and the application state is OSTITLE_STATUS_INSTALLED. If the function returns FALSE, it may be because the process has failed, so be aware that the return of FALSE does not necessarily mean that the NAND application is not installed.

A large buffer is secured from the stack, so if this is difficult to work, use the OSGetTitleStatus function to pass memory secured by the application.

See Also

OSGetTitleStatus

Revision History

2009/10/16 Changed the include file.
2007/07/18 Changed Description and added OSGetTitleStatus.
2007/04/20 Initial version.


CONFIDENTIAL