| 1486 | extern "C" __declspec(dllexport) const char *DESCRIPTION = "Automatic depth buffer detection that works in the majority of games."; |
| 1487 | |
| 1488 | BOOL 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 |
nothing calls this directly
no test coverage detected