From 76d43683be8b7ada00e02f18dc354179fe395211 Mon Sep 17 00:00:00 2001 From: Buggem's Fedora PC <66670928+Buggem@users.noreply.github.com> Date: Fri, 13 Dec 2024 08:09:41 +1100 Subject: [PATCH] Remove unneeded headerfiles, .vscode folder, and move comment --- .vscode/settings.json | 1 - desktop_version/src/DiscordNetwork.c | 10 +++------- 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 9e26dfee..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/desktop_version/src/DiscordNetwork.c b/desktop_version/src/DiscordNetwork.c index ccc153f5..9f087490 100644 --- a/desktop_version/src/DiscordNetwork.c +++ b/desktop_version/src/DiscordNetwork.c @@ -4,13 +4,11 @@ #include #include -#include #include #ifdef _WIN32 #include #else #include -#include #endif #include "Vlogging.h" @@ -106,10 +104,8 @@ int32_t DISCORD_init(void) } - strncpy(activity.state, "On the Main Menu", 128); - //strncpy(activity.details, "I'm Sorry", 128); - strncpy(activity.assets.large_image, "vvvvvv", 128); - strncpy(activity.assets.large_text, "Dimension VVVVVV", 128); + SDL_strlcpy(activity.assets.large_image, "vvvvvv", sizeof(activity.assets.large_image)); + SDL_strlcpy(activity.assets.large_text, "Outside Dimension VVVVVV", sizeof(activity.assets.large_text)); app.activityMan = app.core->get_activity_manager(app.core); app.activityMan->update_activity(app.activityMan, &activity, NULL, NULL); @@ -154,7 +150,7 @@ void DISCORD_update(const char *level, const char *name) } void DISCORD_unlockAchievement(const char *name) { - // No "achivements" in Discord + // No "achievements" in Discord }