Added ability to read a startup program from wine.ini file.
Put it in section [programs] key Startup.
This commit is contained in:
parent
6c1b3e74b8
commit
3a30013b1b
1 changed files with 7 additions and 1 deletions
|
@ -47,7 +47,7 @@ BOOL32 MAIN_EmulatorInit(void)
|
||||||
int main( int argc, char *argv[] )
|
int main( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
extern char * DEBUG_argv0;
|
extern char * DEBUG_argv0;
|
||||||
|
char startProg[256];
|
||||||
int i,loaded;
|
int i,loaded;
|
||||||
HINSTANCE32 handle;
|
HINSTANCE32 handle;
|
||||||
|
|
||||||
|
@ -86,6 +86,12 @@ int main( int argc, char *argv[] )
|
||||||
/* This needs to be done just before task-switching starts */
|
/* This needs to be done just before task-switching starts */
|
||||||
|
|
||||||
loaded=0;
|
loaded=0;
|
||||||
|
|
||||||
|
/* Add the Startup Program to the run list */
|
||||||
|
PROFILE_GetWineIniString( "programs", "Startup", "",
|
||||||
|
startProg, sizeof(startProg) );
|
||||||
|
if (startProg[0]) argv[argc++] = startProg;
|
||||||
|
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
{
|
{
|
||||||
if ((handle = WinExec32( argv[i], SW_SHOWNORMAL )) < 32)
|
if ((handle = WinExec32( argv[i], SW_SHOWNORMAL )) < 32)
|
||||||
|
|
Loading…
Add table
Reference in a new issue