@@ -62,23 +62,25 @@ Game *Game::CreateNew() {
6262 return modDir;
6363 };
6464
65- auto modDir = GetModDir (TARGET_MOD2 );
65+ auto engineDir = GetModDir (TARGET_MOD2 );
6666
6767 // This check is at the top because aptag's server dll is in a
6868 // portal2 bin folder so it gets detected as portal 2 otherwise
69- if (Utils::ICompare (modDir , ApertureTag::GameDir ())) {
69+ if (Utils::ICompare (engineDir , ApertureTag::GameDir ())) {
7070 return new ApertureTag ();
7171 }
7272
7373 // May as well do the same thing here too then
74- if (Utils::ICompare (modDir , ThinkingWithTimeMachine::GameDir ())) {
74+ if (Utils::ICompare (engineDir , ThinkingWithTimeMachine::GameDir ())) {
7575 return new ThinkingWithTimeMachine ();
7676 }
7777
78- modDir = GetModDir (TARGET_MOD );
78+ auto modDir = GetModDir (TARGET_MOD );
7979
80- if (Utils::ICompare (modDir, Portal2::ModDir ())) {
81-
80+ if (Utils::ICompare (modDir, Portal2::ModDir ()) ||
81+ Utils::ICompare (modDir, " cleaninggame" ) ||
82+ Utils::ICompare (modDir, " divinity" )) {
83+ // Technically The Cleaning Game is on 8928 but all sigs match 9568
8284 void *engineClient = Interface::GetPtr (MODULE (" engine" ), " VEngineClient015" );
8385 if (engineClient) {
8486 return new Portal2 ();
@@ -107,6 +109,8 @@ Game *Game::CreateNew() {
107109 return new StanleyParable ();
108110 }
109111
112+ console->Warning (" Unknown game (server \" %s\" engine \" %s\" )\n " , modDir.c_str (), engineDir.c_str ());
113+
110114 return nullptr ;
111115}
112116std::string Game::VersionToString (int version) {
0 commit comments