Updates for Discord Rich Presence
- Change the large image varying with build type based on 86Box.rc - Upload the necessary assets
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);
|
||||
|
||||
/* 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");
|
||||
|