Sunshine latest
Self-hosted game stream host for Moonlight.
args Namespace Reference

Functions for handling command line arguments. More...

Functions

int creds (const char *name, int argc, char *argv[])
 Reset the user credentials.
 
int help (const char *name)
 Print help to stdout, then exit.
 
int restore_nvprefs_undo ()
 Restore global NVIDIA control panel settings. If Sunshine was improperly terminated, this function restores the global NVIDIA control panel settings to the undo file left by Sunshine. This function is typically called by the uninstaller.
 
int version ()
 Print the version to stdout, then exit.
 

Detailed Description

Functions for handling command line arguments.

Function Documentation

◆ creds()

int args::creds ( const char * name,
int argc,
char * argv[] )

Reset the user credentials.

Parameters
nameThe name of the program.
argcThe number of arguments.
argvThe arguments.

Examples

creds("sunshine", 2, {"new_username", "new_password"});
int creds(const char *name, int argc, char *argv[])
Reset the user credentials.
Definition entry_handler.cpp:40

◆ help()

int args::help ( const char * name)

Print help to stdout, then exit.

Parameters
nameThe name of the program.

Examples

help("sunshine");
int help(const char *name)
Print help to stdout, then exit.
Definition entry_handler.cpp:50

◆ restore_nvprefs_undo()

int args::restore_nvprefs_undo ( )

Restore global NVIDIA control panel settings. If Sunshine was improperly terminated, this function restores the global NVIDIA control panel settings to the undo file left by Sunshine. This function is typically called by the uninstaller.

Examples

int restore_nvprefs_undo()
Restore global NVIDIA control panel settings. If Sunshine was improperly terminated,...
Definition entry_handler.cpp:61

◆ version()

int args::version ( )

Print the version to stdout, then exit.

Examples

int version()
Print the version to stdout, then exit.
Definition entry_handler.cpp:55