Added Five Nights at Freddy's: Secret of the Mimic. Minor WuchangFF addon reviews.

This commit is contained in:
2025-08-06 09:46:07 +02:00
parent 9af402f55e
commit 4bb59bf578
4 changed files with 422 additions and 6 deletions

View File

@@ -48,6 +48,7 @@ const char* DONATION_URL = "https://buymeacoffee.com/k4sh44";
// Load and unload game core dll functions /!\ necessary
static void LoadFixDLL()
{
MessageBoxA(nullptr, "LoadFixDll", "Logger Error", MB_ICONERROR | MB_OK);
std::thread([]() {
std::this_thread::sleep_for(std::chrono::milliseconds(8000)); // Game process is not ready at launch and memory is not yet initialized
if (GetModuleHandleA("WuchangFFCore.dll") == nullptr) {
@@ -233,14 +234,14 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD ul_reason_for_call, LPVOID)
LoadSettings();
reshade::register_overlay("Wuchang Fallen Feathers", &on_overlay_draw);
//reshade::register_event<reshade::addon_event::init_effect_runtime>(
// [](reshade::api::effect_runtime* runtime) {
// LoadFixDLL();
// });
reshade::register_event<reshade::addon_event::init_command_queue>(
[](reshade::api::command_queue *queue) {
reshade::register_event<reshade::addon_event::init_effect_runtime>(
[](reshade::api::effect_runtime* runtime) {
LoadFixDLL();
});
//reshade::register_event<reshade::addon_event::init_command_queue>(
// [](reshade::api::command_queue *queue) {
// LoadFixDLL();
// });
break;
case DLL_PROCESS_DETACH:
reshade::unregister_addon(hinstDLL);