steamworks test
should get "Steam AppID = 253530" in console at start (if you start FortressForever game like you should idiot)
This commit is contained in:
parent
1a8a985965
commit
76a2ad37c3
|
@ -1,8 +1,8 @@
|
||||||
"GameInfo"
|
"GameInfo"
|
||||||
{
|
{
|
||||||
game "FF test"
|
game "FortressForever"
|
||||||
title "FF test"
|
title "Fortress Forever"
|
||||||
title2 "FF test"
|
title2 ""
|
||||||
type multiplayer_only
|
type multiplayer_only
|
||||||
nomodels 0
|
nomodels 0
|
||||||
nohimodel 1
|
nohimodel 1
|
||||||
|
@ -16,7 +16,9 @@
|
||||||
|
|
||||||
FileSystem
|
FileSystem
|
||||||
{
|
{
|
||||||
SteamAppId 243750
|
// this is Source SDK Base 2013 MP
|
||||||
|
//SteamAppId 243750
|
||||||
|
SteamAppId 253530
|
||||||
|
|
||||||
//
|
//
|
||||||
// The code that loads this file automatically does a few things here:
|
// The code that loads this file automatically does a few things here:
|
||||||
|
|
|
@ -849,6 +849,7 @@ extern IGameSystem *ViewportClientSystem();
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
ISourceVirtualReality *g_pSourceVR = NULL;
|
ISourceVirtualReality *g_pSourceVR = NULL;
|
||||||
|
|
||||||
|
#include "steam/steam_api.h"
|
||||||
// Purpose: Called when the DLL is first loaded.
|
// Purpose: Called when the DLL is first loaded.
|
||||||
// Input : engineFactory -
|
// Input : engineFactory -
|
||||||
// Output : int
|
// Output : int
|
||||||
|
@ -871,7 +872,27 @@ int CHLClient::Init( CreateInterfaceFn appSystemFactory, CreateInterfaceFn physi
|
||||||
ConnectTier3Libraries( &appSystemFactory, 1 );
|
ConnectTier3Libraries( &appSystemFactory, 1 );
|
||||||
|
|
||||||
#ifndef NO_STEAM
|
#ifndef NO_STEAM
|
||||||
|
//assert ( false );
|
||||||
ClientSteamContext().Activate();
|
ClientSteamContext().Activate();
|
||||||
|
uint32 appId = steamapicontext->SteamUtils()->GetAppID();
|
||||||
|
char msg[128];
|
||||||
|
Q_snprintf(msg, 128,"Steam AppID = %i\n", appId);
|
||||||
|
DevMsg(msg);
|
||||||
|
/*
|
||||||
|
// careful: you might want to use a long long if you're a internet celeb like squeek
|
||||||
|
int numFriends = steamapicontext->SteamFriends()->GetFriendCount(k_EFriendFlagImmediate);
|
||||||
|
for (int i = 0; i < numFriends; i++)
|
||||||
|
{
|
||||||
|
CSteamID steamFrendzor = steamapicontext->SteamFriends()->GetFriendByIndex(i, k_EFriendFlagImmediate);
|
||||||
|
AccountID_t acctId = steamFrendzor.GetAccountID();
|
||||||
|
//const char *steamName = steamapicontext->SteamFriends()->GetFriendPersonaName(steamFrendzor);
|
||||||
|
if (acctId == 5800795)
|
||||||
|
{
|
||||||
|
//5800795 is my old steam acct running on my laptop to test this shit
|
||||||
|
steamapicontext->SteamFriends()->InviteUserToGame(steamFrendzor, "connect 1.2.3.4;password barf");
|
||||||
|
}
|
||||||
|
|
||||||
|
}*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// We aren't happy unless we get all of our interfaces.
|
// We aren't happy unless we get all of our interfaces.
|
||||||
|
|
Loading…
Reference in New Issue