mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 22:19:54 +00:00
Added new configuration file option for selecting graphics driver.
This commit is contained in:
parent
906465f5a7
commit
a4ecb41e49
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue