yossarianuk
2010-Jul-15 14:15 UTC
[Wine] Is it possible to enable a register setting via command line
Hi. God damn Wine has come a long way! Most games I have played seem faster than real windows now... I am wondering if there is a way to add a reg key/string on the command line - so that the reg key/string doesn't exist all the time just whilst playing a game / wine session? The reason I ask is because some games work even faster with DirectDrawRenderer = opengl in HKEY_CURRENT_USER\Software\Wine\Direct 3d But some don't . Right now I manually add/remove the reg string when I play a certain game/app. Is there a way to launch wine and enable the reg setting cia command line ? p.s : Isn't the windows registery a complete joke (as an idea), you could easily but wrong values that could mess up Windows - there is no verification at all....
Martin Gregorie
2010-Jul-15 15:08 UTC
[Wine] Is it possible to enable a register setting via command line
On Thu, 2010-07-15 at 09:15 -0500, yossarianuk wrote:> I am wondering if there is a way to add a reg key/string on the > command line - so that the reg key/string doesn't exist all the time > just whilst playing a game / wine session? > > The reason I ask is because some games work even faster with > > DirectDrawRenderer = opengl in > > HKEY_CURRENT_USER\Software\Wine\Direct 3d > > But some don't . > > Right now I manually add/remove the reg string when I play a certain > game/app. >You could also use a separate prefix for each game - the disk space overheads aren't all that big. This way you can permanently add the registry entry permanently for the programs that use it and not for those it harms. As an added bonus you'll no longer run the risk of screwing one game up while patching/upgrading another. IMO with separate prefixes its easiest to use a wrapper script to run each app/game. The script sets the correct prefix, changes to the appropriate directory, runs the app and exist. You make the script executable and have the app's menu entry run the script rather than running the app directly - the latter assumes that all apps are in the default .wine prefix.. Martin
vitamin
2010-Jul-16 05:38 UTC
[Wine] Re: Is it possible to enable a register setting via command line
yossarianuk wrote:> I am wondering if there is a way to add a reg key/string on the command line - so that the reg key/string doesn't exist all the time just whilst playing a game / wine session? > > Code: > [HKEY_CURRENT_USER\Software\Wine\Direct 3d] > DirectDrawRenderer = opengl > > >There is, but you should add that for the app specific key instead of global. Eg: Code: [HKEY_CURRENT_USER\Software\Wine\AppDefaults\game.exe\Direct 3d] DirectDrawRenderer = opengl Where 'game.exe' is the executable name of your game you want this setting apply to.
DaVince
2010-Jul-19 20:18 UTC
[Wine] Re: Is it possible to enable a register setting via command line
vitamin wrote:> > yossarianuk wrote: > > HKEY_CURRENT_USER\Software\Wine\AppDefaults\MaxPayne2.exe\Direct3D > > Wrong, you missing space between "Direct" and "3D".Why do Wine registry keys need a space between Direct and 3D? The original Direct3D from MS doesn't have this space, so is it a typo in the Wine code to check the registry for a "Direct 3D"?