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 )
|
BOOL MAIN_MainInit( int argc, char *argv[], BOOL win32 )
|
||||||
{
|
{
|
||||||
|
char szGraphicsDriver[MAX_PATH];
|
||||||
|
|
||||||
/* store the program name */
|
/* store the program name */
|
||||||
argv0 = argv[0];
|
argv0 = argv[0];
|
||||||
|
|
||||||
@ -95,7 +97,11 @@ BOOL MAIN_MainInit( int argc, char *argv[], BOOL win32 )
|
|||||||
/* Initialize KERNEL */
|
/* Initialize KERNEL */
|
||||||
if (!LoadLibraryA( "KERNEL32" )) return FALSE;
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
1
wine.ini
1
wine.ini
@ -55,6 +55,7 @@ System=c:\windows\system
|
|||||||
Temp=e:\
|
Temp=e:\
|
||||||
Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
|
Path=c:\windows;c:\windows\system;e:\;e:\test;f:\
|
||||||
Profile=c:\windows\Profiles\Administrator
|
Profile=c:\windows\Profiles\Administrator
|
||||||
|
GraphicsDriver=x11drv
|
||||||
|
|
||||||
# <wineconf>
|
# <wineconf>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user