Skip to content

Commit

Permalink
Add comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyall committed Sep 21, 2024
1 parent 53a7da8 commit 06d423d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ int iCurrentResX;
int iCurrentResY;
float fEikonCursorWidthOffset;
float fEikonCursorHeightOffset;
uintptr_t MovieStatusAddr;
bool bIsMoviePlaying = false;
LPCWSTR sWindowClassName = L"FAITHGame";

Expand Down Expand Up @@ -255,8 +254,7 @@ void Configuration()
}
spdlog::info("Config Parse: fGameplayCamDistMulti: {}", fGameplayCamDistMulti);
spdlog::info("Config Parse: bUncapFPS: {}", bUncapFPS);
if (fFPSCap < 10.00f) {
// Don't go lower than 10fps if someone messes up.
if (fFPSCap < 10.00f) { // Don't go lower than 10fps if someone messes up.
fFPSCap = 10.00f;
spdlog::warn("Config Parse: fFPSCap value invalid, set to {}", fFPSCap);
}
Expand Down Expand Up @@ -577,6 +575,7 @@ void HUD()
static SafetyHookMid MovieStatusMidHook{};
MovieStatusMidHook = safetyhook::create_mid(MovieStatusScanResult,
[](SafetyHookContext& ctx) {
// Check zero flag
if ((ctx.rflags & (1 << 6)) == 0)
{
bIsMoviePlaying = true;
Expand Down Expand Up @@ -725,7 +724,7 @@ void FOV()

void Framerate()
{
if (!bUncapFPS && fFPSCap != 30.00f) {
if (!bUncapFPS && fFPSCap != 29.97f) {
// Adjust cutscene 30fps cap
uint8_t* CutsceneFramerateCapScanResult = Memory::PatternScan(baseModule, "C7 44 ?? ?? 01 00 00 00 C7 44 ?? ?? ?? ?? 00 00 89 ?? ?? ?? C7 44 ?? ?? ?? ?? 00 00");
if (CutsceneFramerateCapScanResult) {
Expand Down

0 comments on commit 06d423d

Please sign in to comment.