mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 09:01:59 +00:00
Added a default program option in wine.conf in section [programs] key
Default.
This commit is contained in:
parent
fb074c44ec
commit
edda6875ff
@ -47,7 +47,7 @@ BOOL32 MAIN_EmulatorInit(void)
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
extern char * DEBUG_argv0;
|
||||
char startProg[256];
|
||||
char startProg[256], defProg[256];
|
||||
int i,loaded;
|
||||
HINSTANCE32 handle;
|
||||
|
||||
@ -87,6 +87,14 @@ int main( int argc, char *argv[] )
|
||||
|
||||
loaded=0;
|
||||
|
||||
/* Add the Default Program if no program on the command line */
|
||||
if (!argv[1])
|
||||
{
|
||||
PROFILE_GetWineIniString( "programs", "Default", "",
|
||||
defProg, sizeof(defProg) );
|
||||
if (defProg[0]) argv[argc++] = defProg;
|
||||
}
|
||||
|
||||
/* Add the Startup Program to the run list */
|
||||
PROFILE_GetWineIniString( "programs", "Startup", "",
|
||||
startProg, sizeof(startProg) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user