Skip to content

Commit

Permalink
Add preliminary support for Deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Feb 16, 2025
1 parent a0ef306 commit d87e154
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/provider/source2/provider_source2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ int Source2Provider::DetermineSourceEngine()
return SOURCE_ENGINE_DOTA;
#elif SOURCE_ENGINE == SE_CS2
return SOURCE_ENGINE_CS2;
#elif SOURCE_ENGINE == SE_DEADLOCK
return SOURCE_ENGINE_DEADLOCK;
#else
#error "SOURCE_ENGINE not defined to a known value"
#endif
Expand All @@ -224,6 +226,8 @@ const char* Source2Provider::GetEngineDescription() const
return "Dota 2 (2013)";
#elif SOURCE_ENGINE == SE_CS2
return "Counter-Strike 2 (2023)";
#elif SOURCE_ENGINE == SE_DEADLOCK
return "Deadlock (2024)";
#else
#error "SOURCE_ENGINE not defined to a known value"
#endif
Expand Down
6 changes: 5 additions & 1 deletion loader/gamedll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,11 @@ class ISource2Server

virtual InitReturnVal_t Init()
{
if (!stricmp("csgo", game_name))
if (!stricmp("citadel", game_name))
{
mm_backend = MMBackend_Deadlock;
}
else if (!stricmp("csgo", game_name))
{
mm_backend = MMBackend_CS2;
}
Expand Down
1 change: 1 addition & 0 deletions loader/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ static const char *backend_names[] =
"2.pvkii",
"2.mcv",
"2.cs2",
"2.deadlock",
};

#if defined _WIN32
Expand Down
1 change: 1 addition & 0 deletions loader/loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ enum MetamodBackend
MMBackend_PVKII,
MMBackend_MCV,
MMBackend_CS2,
MMBackend_Deadlock,
MMBackend_UNKNOWN
};

Expand Down

0 comments on commit d87e154

Please sign in to comment.