#include <cafe.h>

int OSRestartGame(u32 argc, char *argv[ ]);


argc A count of the number of parameters provided in argv for the application.
argv The arguments to provide as input to the application. Each argv field cannot point to NULL or empty strings.

Return Values

Returns error code, or 0 for success.


This function is deprecated. Use SYSRelaunchTitle instead.

This API requests a relaunch of the currently running game. If no arguments are provided, the default arguments for the application are used. Otherwise, the provided string arguments override the default arguments. NULL or empty strings are not allowed. The system adds the name of the RPX application at argv[0], so the application's main function will receive argc+1 arguments with the provided arguments starting at argv[1].

The maximum number of arguments that can be provided is 15 (OS_MAX_NUM_ARGS). The maximum length the buffer can be up to 4095 bytes (OS_ARGS_SIZE-1), including string terminators.

Do Not Call From

Deprecated Do not call this function in new code.
Multiple threads This function is not thread-safe.

Revision History

2014/03/31 Added alt function.
2013/05/08 Automated cleanup pass.
2013/03/08 Deprecated function
2012/07/10 Initial version.