Skip to content

Commit f70c03d

Browse files
committed
don't keep restarting w/ SteamAppID set if it failed the first time
1 parent 1708add commit f70c03d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

DebugLoop.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ static void HandleIndexDataMessage(const PipeMessage& message)
145145
// ----------------------------------------------------------------------------
146146
static bool HandleSteamAppIDMessage(const PipeMessage& message)
147147
{
148+
if (GetEnvironmentVariableA("SteamAppID", g_path, sizeof(g_path)) > 0)
149+
{
150+
PID_DEBUG("Already tried to restart with SteamAppID once, aborting...\n", message.pid);
151+
PID_DEBUG("Make sure Steam is actually running.\n", message.pid);
152+
return false;
153+
}
154+
148155
snprintf(g_path, sizeof(g_path), "%u", message.msgUInt);
149156

150157
if (SetEnvironmentVariableA("SteamAppID", g_path))

0 commit comments

Comments
 (0)