mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-29 22:24:34 +00:00
Some cleanup
Just a bit. i dont want to clean all the ifdef for consoles right now
This commit is contained in:
@@ -510,11 +510,8 @@ void LocalPlayer::aiStep()
|
||||
// Check if the player is idle and the rich presence needs updated
|
||||
if( !m_bIsIdle && InputManager.GetIdleSeconds( m_iPad ) > PLAYER_IDLE_TIME )
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_IDLE);
|
||||
#else
|
||||
ProfileManager.SetCurrentGameActivity(m_iPad,CONTEXT_PRESENCE_IDLE,false);
|
||||
#endif
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_IDLE);
|
||||
|
||||
m_bIsIdle = true;
|
||||
}
|
||||
else if ( m_bIsIdle && InputManager.GetIdleSeconds( m_iPad ) < PLAYER_IDLE_TIME )
|
||||
@@ -524,40 +521,16 @@ void LocalPlayer::aiStep()
|
||||
{
|
||||
// only do it for this player here - each player will run this code
|
||||
if(g_NetworkManager.IsLocalGame())
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_MULTIPLAYEROFFLINE);
|
||||
#else
|
||||
ProfileManager.SetCurrentGameActivity(m_iPad,CONTEXT_PRESENCE_MULTIPLAYEROFFLINE,false);
|
||||
#endif
|
||||
}
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_MULTIPLAYEROFFLINE);
|
||||
else
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_MULTIPLAYER);
|
||||
#else
|
||||
ProfileManager.SetCurrentGameActivity(m_iPad,CONTEXT_PRESENCE_MULTIPLAYER,false);
|
||||
#endif
|
||||
}
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_MULTIPLAYER);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(g_NetworkManager.IsLocalGame())
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_MULTIPLAYER_1POFFLINE);
|
||||
#else
|
||||
ProfileManager.SetCurrentGameActivity(m_iPad,CONTEXT_PRESENCE_MULTIPLAYER_1POFFLINE,false);
|
||||
#endif
|
||||
}
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_MULTIPLAYER_1POFFLINE);
|
||||
else
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_MULTIPLAYER_1P);
|
||||
#else
|
||||
ProfileManager.SetCurrentGameActivity(m_iPad,CONTEXT_PRESENCE_MULTIPLAYER_1P,false);
|
||||
#endif
|
||||
}
|
||||
g_DiscordPresence.SetCurrentGameActivity(CONTEXT_PRESENCE_MULTIPLAYER_1P);
|
||||
}
|
||||
updateRichPresence();
|
||||
m_bIsIdle = false;
|
||||
|
||||
Reference in New Issue
Block a user