Merge pull request #1789 from laciba96/master

Updates for Discord Rich Presence
This commit is contained in:
Miran Grča
2021-11-10 10:52:25 +01:00
committed by GitHub
8 changed files with 13 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
src/win/assets/86box-rb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
src/win/assets/86box.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -96,12 +96,24 @@ discord_update_activity(int paused)
activity.timestamps.start = time(NULL);
/* Icon choosing for Discord based on 86Box.rc */
#ifdef RELEASE_BUILD
strcpy(activity.assets.large_image, "86box-rb");
/* Icon by OBattler and laciba96 (green for release builds)*/
strcpy(activity.assets.large_image, "86box-green");
#elif BETA_BUILD
/* Icon by OBattler and laciba96 (yellow for beta builds done by Jenkins)*/
strcpy(activity.assets.large_image, "86box-yellow");
#elif ALPHA_BUILD
/* Icon by OBattler and laciba96 (red for alpha builds done by Jenkins)*/
strcpy(activity.assets.large_image, "86box-red");
#else
/* Icon by OBattler and laciba96 (gray for builds of branches and from the git master)*/
strcpy(activity.assets.large_image, "86box");
#endif
/* End of icon choosing */
if (paused)
{
strcpy(activity.assets.small_image, "status-paused");