#define UUID_CHARS (UUID_BYTES * 2)
#define UUID_LENGTH (UUID_CHARS + 4)
-static char *getUUID(void)
+char *getUUID(void)
{
static char uuid[UUID_LENGTH + 1];
int data[UUID_BYTES];
return uuid;
}
-char *GetPlayerUUID(void)
-{
- return getUUID();
-}
-
-char *GetSystemUUID(void)
-{
- if (program.system_uuid != NULL)
- return program.system_uuid;
-
- return getUUID();
-}
-
-void SetSystemUUID(char *uuid)
-{
- if (program.system_uuid != NULL)
- checked_free(program.system_uuid);
-
- program.system_uuid = getStringCopy(uuid);
-}
-
// ----------------------------------------------------------------------------
// counter functions
options.tape_log_filename = NULL;
options.special_flags = NULL;
options.debug_mode = NULL;
+ options.player_name = NULL;
options.mytapes = FALSE;
options.serveronly = FALSE;
if (option_arg != next_option)
options.debug_mode = getStringCopy(option_arg);
}
+ else if (strncmp(option, "-player-name", option_len) == 0)
+ {
+ if (option_arg == NULL)
+ FailWithHelp("option '%s' requires an argument", option_str);
+
+ options.player_name = getStringCopy(option_arg);
+ if (option_arg == next_option)
+ options_left++;
+ }
else if (strncmp(option, "-verbose", option_len) == 0)
{
options.verbose = TRUE;