@@ -809,15 +809,9 @@ BOOL setLineQemu(char *buf, size_t bufs)
809809BOOL setLineSvgaReg (char * buf , size_t bufs )
810810{
811811 (void )bufs ;
812-
813- strcpy (buf , "AddReg=VMSvga.AddReg,VM.AddReg" );
814-
815- if (isSettingSet (CHBX_WINE ) && version_compare (& sysver , & WINVERME ) >= 0 )
816- {
817- /* these entries is only relevant to system, that cannot replace ddraw.dll */
818- strcat (buf , ",DX.addReg" );
819- }
820-
812+
813+ strcpy (buf , "AddReg=VMSvga.AddReg,VM.AddReg,DX.addReg" );
814+
821815 if (isSettingSet (CHBX_QXGA ))
822816 strcat (buf , ",VM.QXGA" );
823817
@@ -838,17 +832,12 @@ BOOL setLineSvgaReg(char *buf, size_t bufs)
838832BOOL setLineVboxReg (char * buf , size_t bufs )
839833{
840834 (void )bufs ;
841-
842- strcpy (buf , "AddReg=VBox.AddReg,VM.AddReg" );
843-
844- if (isSettingSet (CHBX_WINE ) && version_compare (& sysver , & WINVERME ) >= 0 )
845- {
846- strcat (buf , ",DX.addReg" );
847- }
848-
835+
836+ strcpy (buf , "AddReg=VBox.AddReg,VM.AddReg,DX.addReg" );
837+
849838 if (isSettingSet (CHBX_QXGA ))
850839 strcat (buf , ",VM.QXGA" );
851-
840+
852841 if (isSettingSet (CHBX_1440 ))
853842 strcat (buf , ",VM.WQHD" );
854843
@@ -857,8 +846,7 @@ BOOL setLineVboxReg(char *buf, size_t bufs)
857846
858847 if (isSettingSet (CHBX_5K ))
859848 strcat (buf , ",VM.R5K" );
860-
861-
849+
862850 strcat (buf , ",VM.regextra" );
863851
864852 return TRUE;
@@ -867,14 +855,9 @@ BOOL setLineVboxReg(char *buf, size_t bufs)
867855BOOL setLineQemuReg (char * buf , size_t bufs )
868856{
869857 (void )bufs ;
870-
871- strcpy (buf , "AddReg=Qemu.AddReg,VM.AddReg" );
872-
873- if (isSettingSet (CHBX_WINE ) && version_compare (& sysver , & WINVERME ) >= 0 )
874- {
875- strcat (buf , ",DX.addReg" );
876- }
877-
858+
859+ strcpy (buf , "AddReg=Qemu.AddReg,VM.AddReg,DX.addReg" );
860+
878861 if (isSettingSet (CHBX_QXGA ))
879862 strcat (buf , ",VM.QXGA" );
880863
@@ -1149,36 +1132,38 @@ BOOL set_inf_regs(HWND hwnd)
11491132 strcat (dstfile , iniValue ("[softgpu]" , "drvfile" ));
11501133
11511134 if (isSettingSet (RAD_DD_WINE ))
1152- registryWriteInf ("HKLM\\Software\\vmdisp9x\\global \\global\\ddraw" , "wine" , WINREG_STR , dstfile );
1135+ registryWriteInf ("HKLM\\Software\\vmdisp9x\\apps \\global\\ddraw" , "wine" , WINREG_STR , dstfile );
11531136 else
1154- registryWriteInf ("HKLM\\Software\\vmdisp9x\\global \\global\\ddraw" , "system" , WINREG_STR , dstfile );
1137+ registryWriteInf ("HKLM\\Software\\vmdisp9x\\apps \\global\\ddraw" , "system" , WINREG_STR , dstfile );
11551138
11561139 if (isSettingSet (RAD_D8_NINE ))
1157- registryWriteInf ("HKLM\\Software\\vmdisp9x\\global \\global\\d3d8" , "nine" , WINREG_STR , dstfile );
1158- else if (isSettingSet (RAD_D8_NINE ))
1159- registryWriteInf ("HKLM\\Software\\vmdisp9x\\global \\global\\d3d8" , "wine" , WINREG_STR , dstfile );
1140+ registryWriteInf ("HKLM\\Software\\vmdisp9x\\apps \\global\\d3d8" , "nine" , WINREG_STR , dstfile );
1141+ else if (isSettingSet (RAD_D8_WINE ))
1142+ registryWriteInf ("HKLM\\Software\\vmdisp9x\\apps \\global\\d3d8" , "wine" , WINREG_STR , dstfile );
11601143 else
1161- registryWriteInf ("HKLM\\Software\\vmdisp9x\\global \\global\\d3d8" , "system" , WINREG_STR , dstfile );
1144+ registryWriteInf ("HKLM\\Software\\vmdisp9x\\apps \\global\\d3d8" , "system" , WINREG_STR , dstfile );
11621145
11631146 if (isSettingSet (RAD_D9_NINE ))
1164- registryWriteInf ("HKLM\\Software\\vmdisp9x\\global \\global\\d3d9" , "nine" , WINREG_STR , dstfile );
1165- else if (isSettingSet (RAD_D8_NINE ))
1166- registryWriteInf ("HKLM\\Software\\vmdisp9x\\global \\global\\d3d9" , "wine" , WINREG_STR , dstfile );
1147+ registryWriteInf ("HKLM\\Software\\vmdisp9x\\apps \\global\\d3d9" , "nine" , WINREG_STR , dstfile );
1148+ else if (isSettingSet (RAD_D8_WINE ))
1149+ registryWriteInf ("HKLM\\Software\\vmdisp9x\\apps \\global\\d3d9" , "wine" , WINREG_STR , dstfile );
11671150 else
1168- registryWriteInf ("HKLM\\Software\\vmdisp9x\\global \\global\\d3d9" , "system" , WINREG_STR , dstfile );
1151+ registryWriteInf ("HKLM\\Software\\vmdisp9x\\apps \\global\\d3d9" , "system" , WINREG_STR , dstfile );
11691152
11701153 registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\svga\\NoMultisample" , settingReadDW (CHBX_NO_MULTISAMPLE ), dstfile );
11711154 registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\svga\\AsyncMOBs" , settingReadDW (INP_ASYNCMOBS ), dstfile );
11721155
1173- registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\global\\mesa\\SVGA_GMR_CACHE_ENABLED" , settingReadDW (CHBX_GMR_CACHE ), dstfile );
1174-
1156+ registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\apps\\global\\mesa\\SVGA_GMR_CACHE_ENABLED" , settingReadDW (CHBX_GMR_CACHE ), dstfile );
1157+
1158+ #if 0
11751159 if (settingReadDW (IMP_SVGA_MEM_MAX ) != 400 )
11761160 {
1177- registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\global\\mesa\\SVGA_MEM_MAX" , settingReadDW (IMP_SVGA_MEM_MAX ), dstfile );
1161+ registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\apps\\ global\\mesa\\SVGA_MEM_MAX" , settingReadDW (IMP_SVGA_MEM_MAX ), dstfile );
11781162 }
1163+ #endif
11791164
1180- registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\global\\mesa\\MESA_SW_GAMMA_ENABLED" , settingReadDW (CHBX_SW_GAMMA ), dstfile );
1181- registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\global\\mesa\\SVGA_DMA_TO_FB" , settingReadDW (CHBX_DMA_TO_FB ), dstfile );
1165+ registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\apps\\ global\\mesa\\MESA_SW_GAMMA_ENABLED" , settingReadDW (CHBX_SW_GAMMA ), dstfile );
1166+ registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\apps\\ global\\mesa\\SVGA_DMA_TO_FB" , settingReadDW (CHBX_DMA_TO_FB ), dstfile );
11821167
11831168 registryWriteInfDWORD ("HKLM\\Software\\vmdisp9x\\svga\\HWCursor" , settingReadDW (CHBX_HWCURSOR ), dstfile );
11841169
0 commit comments