Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
HW12Dev committed Feb 25, 2023
1 parent 80ac596 commit a1f5e73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DInputProxy/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
if (fdwReason == DLL_PROCESS_ATTACH)
{
if (std::filesystem::exists("./Retail/AchievementHandler.dll")) {
SteamAPI_Init();
g_AchievementHandler =LoadLibrary("AchievementHandler");
if (SteamAPI_Init()) {
g_AchievementHandler = LoadLibrary("AchievementHandler");
}
}
if (!GetSystemDirectoryW(s_PathBuffer, sizeof(s_PathBuffer) / sizeof(wchar_t)))
return false;
Expand Down

0 comments on commit a1f5e73

Please sign in to comment.