Set discord image to map image

This commit is contained in:
Federico Cecchetto 2021-08-31 04:48:36 +02:00
parent 8270fb31ab
commit 7352b7fc23

View File

@ -35,6 +35,7 @@ namespace discord
const auto map = game::Dvar_FindVar("mapname")->current.string; const auto map = game::Dvar_FindVar("mapname")->current.string;
const auto mapname = game::UI_SafeTranslateString(utils::string::va("PRESENCE_SP_%s", map)); const auto mapname = game::UI_SafeTranslateString(utils::string::va("PRESENCE_SP_%s", map));
discord_presence.largeImageKey = map;
discord_presence.details = mapname; discord_presence.details = mapname;
discord_presence.state = state.data(); discord_presence.state = state.data();