mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 11:29:59 +00:00
Backface cull. in INI, mouse sensitivity fix, aspect ratio auto as default
This commit is contained in:
parent
99a3fe0a13
commit
57098a77ec
|
@ -472,7 +472,11 @@ CMenuManager::CMenuManager()
|
||||||
m_PrefsMP3BoostVolume = 0;
|
m_PrefsMP3BoostVolume = 0;
|
||||||
m_PrefsShowSubtitles = 0;
|
m_PrefsShowSubtitles = 0;
|
||||||
m_PrefsShowLegends = 1;
|
m_PrefsShowLegends = 1;
|
||||||
|
#ifdef ASPECT_RATIO_SCALE
|
||||||
|
m_PrefsUseWideScreen = AR_AUTO;
|
||||||
|
#else
|
||||||
m_PrefsUseWideScreen = 0;
|
m_PrefsUseWideScreen = 0;
|
||||||
|
#endif
|
||||||
m_PrefsVsync = 0;
|
m_PrefsVsync = 0;
|
||||||
m_PrefsVsyncDisp = 1;
|
m_PrefsVsyncDisp = 1;
|
||||||
m_PrefsFrameLimiter = 1;
|
m_PrefsFrameLimiter = 1;
|
||||||
|
@ -703,6 +707,9 @@ CMenuManager::CheckSliderMovement(int value)
|
||||||
case MENUACTION_MOUSESENS:
|
case MENUACTION_MOUSESENS:
|
||||||
TheCamera.m_fMouseAccelHorzntl += value * 1.0f/200.0f/15.0f; // ???
|
TheCamera.m_fMouseAccelHorzntl += value * 1.0f/200.0f/15.0f; // ???
|
||||||
TheCamera.m_fMouseAccelHorzntl = clamp(TheCamera.m_fMouseAccelHorzntl, 1.0f/3200.0f, 1.0f/200.0f);
|
TheCamera.m_fMouseAccelHorzntl = clamp(TheCamera.m_fMouseAccelHorzntl, 1.0f/3200.0f, 1.0f/200.0f);
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
TheCamera.m_fMouseAccelVertical = TheCamera.m_fMouseAccelHorzntl + 0.0005f;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
|
@ -3023,6 +3030,9 @@ CMenuManager::LoadSettings()
|
||||||
CFileMgr::CloseFile(fileHandle);
|
CFileMgr::CloseFile(fileHandle);
|
||||||
CFileMgr::SetDir("");
|
CFileMgr::SetDir("");
|
||||||
|
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
TheCamera.m_fMouseAccelVertical = TheCamera.m_fMouseAccelHorzntl + 0.0005f;
|
||||||
|
#endif
|
||||||
#ifdef PC_PLAYER_CONTROLS
|
#ifdef PC_PLAYER_CONTROLS
|
||||||
CCamera::m_bUseMouse3rdPerson = m_ControlMethod == CONTROL_STANDARD;
|
CCamera::m_bUseMouse3rdPerson = m_ControlMethod == CONTROL_STANDARD;
|
||||||
#endif
|
#endif
|
||||||
|
@ -4721,7 +4731,11 @@ CMenuManager::ProcessUserInput(uint8 goDown, uint8 goUp, uint8 optionSelected, u
|
||||||
#endif
|
#endif
|
||||||
CRenderer::ms_lodDistScale = m_PrefsLOD;
|
CRenderer::ms_lodDistScale = m_PrefsLOD;
|
||||||
m_PrefsShowSubtitles = false;
|
m_PrefsShowSubtitles = false;
|
||||||
|
#ifdef ASPECT_RATIO_SCALE
|
||||||
|
m_PrefsUseWideScreen = AR_AUTO;
|
||||||
|
#else
|
||||||
m_PrefsUseWideScreen = false;
|
m_PrefsUseWideScreen = false;
|
||||||
|
#endif
|
||||||
m_PrefsShowLegends = true;
|
m_PrefsShowLegends = true;
|
||||||
m_PrefsVsyncDisp = true;
|
m_PrefsVsyncDisp = true;
|
||||||
m_PrefsFrameLimiter = true;
|
m_PrefsFrameLimiter = true;
|
||||||
|
@ -4757,6 +4771,9 @@ CMenuManager::ProcessUserInput(uint8 goDown, uint8 goUp, uint8 optionSelected, u
|
||||||
#endif
|
#endif
|
||||||
MousePointerStateHelper.bInvertVertically = true;
|
MousePointerStateHelper.bInvertVertically = true;
|
||||||
TheCamera.m_bHeadBob = false;
|
TheCamera.m_bHeadBob = false;
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
TheCamera.m_fMouseAccelVertical = 0.003f;
|
||||||
|
#endif
|
||||||
TheCamera.m_fMouseAccelHorzntl = 0.0025f;
|
TheCamera.m_fMouseAccelHorzntl = 0.0025f;
|
||||||
CVehicle::m_bDisableMouseSteering = true;
|
CVehicle::m_bDisableMouseSteering = true;
|
||||||
m_ControlMethod = CONTROL_STANDARD;
|
m_ControlMethod = CONTROL_STANDARD;
|
||||||
|
|
|
@ -578,7 +578,7 @@ public:
|
||||||
int32 field_54;
|
int32 field_54;
|
||||||
int8 m_bLanguageLoaded;
|
int8 m_bLanguageLoaded;
|
||||||
uint8 m_PrefsAllowNastyGame;
|
uint8 m_PrefsAllowNastyGame;
|
||||||
uint8 m_PrefsMP3BoostVolume;
|
int8 m_PrefsMP3BoostVolume;
|
||||||
uint8 m_ControlMethod;
|
uint8 m_ControlMethod;
|
||||||
int32 m_nPrefsVideoMode;
|
int32 m_nPrefsVideoMode;
|
||||||
int32 m_nDisplayVideoMode;
|
int32 m_nDisplayVideoMode;
|
||||||
|
|
|
@ -195,6 +195,7 @@ void LoadINISettings()
|
||||||
CustomPipes::LightmapMult = CheckAndReadIniFloat("CustomPipesValues", "LightmapMult", CustomPipes::LightmapMult);
|
CustomPipes::LightmapMult = CheckAndReadIniFloat("CustomPipesValues", "LightmapMult", CustomPipes::LightmapMult);
|
||||||
CustomPipes::GlossMult = CheckAndReadIniFloat("CustomPipesValues", "GlossMult", CustomPipes::GlossMult);
|
CustomPipes::GlossMult = CheckAndReadIniFloat("CustomPipesValues", "GlossMult", CustomPipes::GlossMult);
|
||||||
#endif
|
#endif
|
||||||
|
gBackfaceCulling = CheckAndReadIniInt("Rendering", "BackfaceCulling", gBackfaceCulling);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SaveINISettings()
|
void SaveINISettings()
|
||||||
|
@ -233,6 +234,7 @@ void SaveINISettings()
|
||||||
CheckAndSaveIniFloat("CustomPipesValues", "LightmapMult", CustomPipes::LightmapMult, changed);
|
CheckAndSaveIniFloat("CustomPipesValues", "LightmapMult", CustomPipes::LightmapMult, changed);
|
||||||
CheckAndSaveIniFloat("CustomPipesValues", "GlossMult", CustomPipes::GlossMult, changed);
|
CheckAndSaveIniFloat("CustomPipesValues", "GlossMult", CustomPipes::GlossMult, changed);
|
||||||
#endif
|
#endif
|
||||||
|
CheckAndSaveIniInt("Rendering", "BackfaceCulling", gBackfaceCulling, changed);
|
||||||
|
|
||||||
if (changed)
|
if (changed)
|
||||||
cfg.write_file("reVC.ini");
|
cfg.write_file("reVC.ini");
|
||||||
|
|
|
@ -18,7 +18,7 @@ bool gPS2alphaTest = true;
|
||||||
#else
|
#else
|
||||||
bool gPS2alphaTest = false;
|
bool gPS2alphaTest = false;
|
||||||
#endif
|
#endif
|
||||||
bool gBackfaceCulling;
|
bool gBackfaceCulling = true;
|
||||||
|
|
||||||
#if !defined(FINAL) || defined(DEBUGMENU)
|
#if !defined(FINAL) || defined(DEBUGMENU)
|
||||||
static bool charsetOpen;
|
static bool charsetOpen;
|
||||||
|
|
Loading…
Reference in a new issue