mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-22 02:29:17 +01:00
Load user options which override the default ones
This commit is contained in:
parent
68981ad0e1
commit
645b7eb172
20
src/main.c
20
src/main.c
@ -433,6 +433,26 @@ static void parse_cmdline_and_init_file (int argc, char **argv)
|
||||
fix_options ();
|
||||
|
||||
parse_cmdline (argc, argv);
|
||||
/* FIXME! ska: This is temporary, and will be removed when you can
|
||||
* pass command line options in meta.xml for the homebrew channel */
|
||||
{
|
||||
char user_options[255];
|
||||
char *user_argv[] = {"program", "-f", user_options};
|
||||
#ifdef OPTIONS_IN_HOME
|
||||
char *home = getenv ("HOME");
|
||||
if (home != NULL && strlen (home) < 240)
|
||||
{
|
||||
strcpy (user_options, home);
|
||||
strcat (user_options, "/");
|
||||
}
|
||||
#endif
|
||||
strcat(user_options, OPTIONSFILENAME);
|
||||
strcat(user_options, ".user");
|
||||
|
||||
/* Allow the user uaerc to override the default one */
|
||||
parse_cmdline (3, user_argv);
|
||||
}
|
||||
/* Until here */
|
||||
|
||||
fix_options ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user