Skip to content

Commit e6e5a72

Browse files
committed
Added FNAF Security Breach support
* Five Nights at Freddy's: Security Breach - DLSS patch
1 parent 17f7722 commit e6e5a72

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

GameSupport.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ TEMPLATE FOR NEW ENTRIES
6060
| Far Far West | ✔️ || |
6161
| Fatekeeper | ✔️ || |
6262
| FINAL FANTASY VII REBIRTH | ✔️ || |
63+
| Five Nights at Freddy's: Security Breach | ✔️ | N/A | |
6364
| Flintlock: The Siege of Dawn | ✔️ || |
6465
| Forgive Me Father 2 | ✔️ || |
6566
| Fort Solis | ✔️ || |

OptiPatcher/dllmain.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,20 @@ static void CheckForPatch()
13261326
}
13271327
}
13281328

1329+
// Five Nights at Freddy's: Security Breach
1330+
else if (CHECK_UE(fnaf9))
1331+
{
1332+
std::string_view pattern("48 89 45 F8 48 85 C9 74 05 E8 ? ? ? ? E8 ? ? ? ? 84 C0 75");
1333+
auto patchAddress = (void*) scanner::GetAddress(exeModule, pattern, 19);
1334+
1335+
if (patchAddress != nullptr)
1336+
{
1337+
std::vector<BYTE> patch = { 0x0C, 0x01 };
1338+
patcher::PatchAddress(patchAddress, &patch);
1339+
_patchResult = true;
1340+
}
1341+
}
1342+
13291343
// DOOM Eternal
13301344
// just nops a line for main game exe
13311345
else if (exeName == "doometernalx64vk.exe")

0 commit comments

Comments
 (0)