Skip to content

Commit

Permalink
Detect environment cube map shotgun approach
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Feb 7, 2025
1 parent 53cd553 commit d5558f6
Show file tree
Hide file tree
Showing 8 changed files with 352 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7502
#define BUILD_NUMBER 7503
1 change: 1 addition & 0 deletions Settings/AllSettings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ DdrawMaintainAspectRatio = 0
AnisotropicFiltering = 0
AntiAliasing = 0
CacheClipPlane = 0
EnvironmentMapCubeFix = 0
EnableVSync = 0
ForceVsyncMode = 0
OverrideRefreshRate = 0
Expand Down
2 changes: 2 additions & 0 deletions Settings/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ void Settings::SetDefaultConfigSettings()
Config.DsoundHookSystem32 = NOT_EXIST;
Config.DdrawResolutionHack = NOT_EXIST;
Config.CacheClipPlane = NOT_EXIST;
Config.EnvironmentMapCubeFix = NOT_EXIST;

// Other values that may not exist in ini file
Config.DisableMaxWindowedModeNotSet = true;
Expand Down Expand Up @@ -771,4 +772,5 @@ void CONFIG::SetConfig()
// Set unset options
DdrawResolutionHack = (DdrawResolutionHack != 0);
CacheClipPlane = (CacheClipPlane != 0);
EnvironmentMapCubeFix = (EnvironmentMapCubeFix != 0);
}
2 changes: 2 additions & 0 deletions Settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
visit(DisableLogging) \
visit(DirectShowEmulation) \
visit(CacheClipPlane) \
visit(EnvironmentMapCubeFix) \
visit(ConvertToDirectDraw7) \
visit(ConvertToDirect3D7) \
visit(EnableDdrawWrapper) \
Expand Down Expand Up @@ -258,6 +259,7 @@ struct CONFIG
bool DisableLogging = false; // Disables the logging file
DWORD SetSwapEffectShim = 0; // Disables the call to d3d9.dll 'Direct3D9SetSwapEffectUpgradeShim' to switch present mode
DWORD CacheClipPlane = 0; // Caches the ClipPlane for Direct3D9 to fix an issue in d3d9 on Windows 8 and newer
DWORD EnvironmentMapCubeFix = 0; // Fixes environment cube maps when no texture is applied, issue exists in d3d8
bool ConvertToDirectDraw7 = false; // Converts DirectDraw 1-6 to DirectDraw 7
bool ConvertToDirect3D7 = false; // Converts Direct3D 1-6 to Direct3D 7
bool EnableDdrawWrapper = false; // Enables the ddraw wrapper
Expand Down
Loading

0 comments on commit d5558f6

Please sign in to comment.