mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +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 New Issue
Block a user