Skip to content

Commit 15f6e17

Browse files
authored
Merge pull request #382 from Detanup01/SteamInternal_CreateInterface_FIX
Fix SteamInternal_CreateInterface throw
2 parents f5ac384 + 3905647 commit 15f6e17

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dll/dll.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,14 @@ static void *create_client_interface(const char *ver)
324324
} else if (strcmp(ver, STEAMCLIENT_INTERFACE_VERSION) == 0) {
325325
return static_cast<ISteamClient *>(client_ptr);
326326
}
327+
328+
// report the missing interface if it is a client
329+
client_ptr->report_missing_impl(ver, EMU_FUNC_NAME);
327330
}
328331

329-
client_ptr->report_missing_impl_and_exit(ver, EMU_FUNC_NAME);
332+
PRINT_DEBUG("%s interface is not SteamClient, returning nullptr!", ver);
333+
// Original steam returns 0 here.
334+
return nullptr;
330335
}
331336

332337
STEAMAPI_API void * S_CALLTYPE SteamInternal_CreateInterface( const char *ver )

0 commit comments

Comments
 (0)