added keybind
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user