MCPcopy Create free account
hub / github.com/crosire/reshade / DllMain

Function DllMain

examples/09-depth/generic_depth_addon.cpp:1488–1504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1486extern "C" __declspec(dllexport) const char *DESCRIPTION = "Automatic depth buffer detection that works in the majority of games.";
1487
1488BOOL APIENTRY DllMain(HMODULE hModule, DWORD fdwReason, LPVOID)
1489{
1490 switch (fdwReason)
1491 {
1492 case DLL_PROCESS_ATTACH:
1493 if (!reshade::register_addon(hModule))
1494 return FALSE;
1495 register_addon_depth();
1496 break;
1497 case DLL_PROCESS_DETACH:
1498 unregister_addon_depth();
1499 reshade::unregister_addon(hModule);
1500 break;
1501 }
1502
1503 return TRUE;
1504}
1505
1506#endif

Callers

nothing calls this directly

Calls 4

register_addonFunction · 0.85
register_addon_depthFunction · 0.85
unregister_addon_depthFunction · 0.85
unregister_addonFunction · 0.85

Tested by

no test coverage detected