temporarily ditch discord RPC

we need a new API key lol
This commit is contained in:
minenice55 2024-01-05 21:46:05 -05:00
parent 85bc98e150
commit ca325a2b1d

View file

@ -428,21 +428,23 @@ namespace HeavenStudio
public static void UpdateDiscordStatus(string details, bool editor = false, bool updateTime = false)
{
if (discordDuringTesting || !Application.isEditor)
{
if (PersistentDataManager.gameSettings.discordRPCEnable)
{
try
{
DiscordRPC.DiscordRPC.UpdateActivity(editor ? "In Editor " : "Playing ", details, updateTime);
Debug.Log("Discord status updated");
}
catch (System.Exception e)
{
Debug.Log("Discord status update failed: " + e.Message);
}
}
}
Debug.Log("Discord Rich Presence temporarily disabled");
return;
// if (discordDuringTesting || !Application.isEditor)
// {
// if (PersistentDataManager.gameSettings.discordRPCEnable)
// {
// try
// {
// DiscordRPC.DiscordRPC.UpdateActivity(editor ? "In Editor " : "Playing ", details, updateTime);
// Debug.Log("Discord status updated");
// }
// catch (System.Exception e)
// {
// Debug.Log("Discord status update failed: " + e.Message);
// }
// }
// }
}
private static void OnQuitting()