Updates for Discord Rich Presence

- Change the large image varying with build type based on 86Box.rc
- Upload the necessary assets
This commit is contained in:
Laci bá
2021-11-08 19:10:37 +01:00
parent 9538b75afa
commit 691e3029a8
8 changed files with 14 additions and 2 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
strcpy(activity.assets.large_image, "86box");
/* 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");