added keybind

This commit is contained in:
2026-03-06 16:42:16 +02:00
parent 9b4cec7920
commit 1a2a353e03
30 changed files with 338 additions and 53 deletions

View File

@@ -38,10 +38,20 @@ extern "C" void __cdecl SteamAPIDebug( ESteamNetworkingSocketsDebugOutputType nT
extern "C" void FunnyMain( int argc, char **argv )
{
#ifdef __WIN32__
CUtlString szPath = Plat_GetExecutablePath();
szPath = szPath.GetDirectory();
CUtlString szEnv = Plat_GetEnv("PATH");
szEnv.AppendTail(":");
szEnv.AppendTail(szPath);
Plat_SetEnv("PATH", szEnv);
#endif
CommandLine()->CreateCommandLine(argc, argv);
EngineConsts_t stConstants = {};
V_printf("------------ 1\n");
#ifdef STEAM
V_printf("Steam :)\n");
if(SteamAPI_RestartAppIfNecessary(480))
{
V_printf("Mshallah we are doing reboot\n");
@@ -51,6 +61,7 @@ extern "C" void FunnyMain( int argc, char **argv )
stConstants.m_bIsSteam = true;
if (!SteamAPI_Init())
{
V_printf("Steam :()\n");
stConstants.m_bIsSteam = false;
}
stConstants.LaunchServer = LaunchServerAtSteamRelay;