misyltoad/HL2-GamepadUI

cdll_client_int.cpp throwing many errors and fails to compile

theOneTrueFunniBoi opened this issue · 1 comments

This block of code starting on line 1183 is causing many many errors:

#if defined(GAMEPADUI)
if (IsSteamDeck())
{
CSysModule* pGamepadUIModule = g_pFullFileSystem->LoadModule("gamepadui", "GAMEBIN", false);
if (pGamepadUIModule != nullptr)
{
GamepadUI_Log("Loaded gamepadui module.\n");

	CreateInterfaceFn gamepaduiFactory = Sys_GetFactory(pGamepadUIModule);
	if (gamepaduiFactory != nullptr)
	{
		g_pGamepadUI = (IGamepadUI*)gamepaduiFactory(GAMEPADUI_INTERFACE_VERSION, NULL);
		if (g_pGamepadUI != nullptr)
		{
			GamepadUI_Log("Initializing IGamepadUI interface...\n");

			factorylist_t factories;
			FactoryList_Retrieve(factories);
			g_pGamepadUI->Initialize(factories.appSystemFactory);
		}
		else
		{
			GamepadUI_Log("Unable to pull IGamepadUI interface.\n");
		}
	}
	else
	{
		GamepadUI_Log("Unable to get gamepadui factory.\n");
	}
}
else
{
	GamepadUI_Log("Unable to load gamepadui module\n");
}

}
#endif // GAMEPADUI
}

I don't understand the error's cause as they are mostly syntax related and the visual studio error reporter is too vague, but heres the errors:
image
Can you help me with this?

Solved! I forgot to remove ONE Curly bracket. The difference that one character can make...