Merge pull request #1789 from laciba96/master
Updates for Discord Rich Presence
BIN
src/win/assets/86Box-green.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
src/win/assets/86box-rb.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
src/win/assets/86box-red.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
src/win/assets/86box-yellow.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
src/win/assets/86box.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
src/win/assets/status-paused.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
src/win/assets/status-running.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
@@ -96,12 +96,24 @@ discord_update_activity(int paused)
|
|||||||
|
|
||||||
activity.timestamps.start = time(NULL);
|
activity.timestamps.start = time(NULL);
|
||||||
|
|
||||||
|
/* Icon choosing for Discord based on 86Box.rc */
|
||||||
|
|
||||||
#ifdef RELEASE_BUILD
|
#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
|
#else
|
||||||
|
/* Icon by OBattler and laciba96 (gray for builds of branches and from the git master)*/
|
||||||
strcpy(activity.assets.large_image, "86box");
|
strcpy(activity.assets.large_image, "86box");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* End of icon choosing */
|
||||||
|
|
||||||
if (paused)
|
if (paused)
|
||||||
{
|
{
|
||||||
strcpy(activity.assets.small_image, "status-paused");
|
strcpy(activity.assets.small_image, "status-paused");
|
||||||
|