Added new configuration file option for selecting graphics driver.

This commit is contained in:
Patrik Stridvall 2000-04-25 20:12:55 +00:00 committed by Alexandre Julliard
parent 906465f5a7
commit a4ecb41e49
2 changed files with 8 additions and 1 deletions

View File

@ -62,6 +62,8 @@ DEFAULT_DEBUG_CHANNEL(server);
*/
BOOL MAIN_MainInit( int argc, char *argv[], BOOL win32 )
{
char szGraphicsDriver[MAX_PATH];
/* store the program name */
argv0 = argv[0];
@ -95,7 +97,11 @@ BOOL MAIN_MainInit( int argc, char *argv[], BOOL win32 )
/* Initialize KERNEL */
if (!LoadLibraryA( "KERNEL32" )) return FALSE;
if (!LoadLibraryA( "x11drv" )) return FALSE;
if (PROFILE_GetWineIniString( "Wine", "GraphicsDriver",
"x11drv", szGraphicsDriver, sizeof(szGraphicsDriver)))
{
if (!LoadLibraryA( szGraphicsDriver )) return FALSE;
}
return TRUE;
}

View File

@ -55,6 +55,7 @@ System=c:\windows\system
Temp=e:\
Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
Profile=c:\windows\Profiles\Administrator
GraphicsDriver=x11drv
# <wineconf>