Description: Completely disable Discord integration
Forwarded: not-needed
--- a/code/source_groups.cmake
+++ b/code/source_groups.cmake
@@ -718,13 +718,8 @@
 	libs/antlr/ErrorListener.cpp
 	libs/antlr/ErrorListener.h
 	)
 
-add_file_folder("Libs\\\\Discord"
-	libs/discord/discord.cpp
-	libs/discord/discord.h
-)
-
 if (FSO_BUILD_WITH_FFMPEG)
 	add_file_folder("Libs\\\\FFmpeg"
 		libs/ffmpeg/FFmpeg.cpp
 		libs/ffmpeg/FFmpeg.h
--- a/freespace2/freespace.cpp
+++ b/freespace2/freespace.cpp
@@ -2043,11 +2043,8 @@
 	if ( !Is_standalone ) {
 #ifdef WITH_FFMPEG
 		libs::ffmpeg::initialize();
 #endif
-		if (Discord_presence) {
-			libs::discord::init();
-		}
 	}
 
 	nprintf(("General", "Ships.tbl is : %s\n", Game_ships_tbl_valid ? "VALID" : "INVALID!!!!"));
 	nprintf(("General", "Weapons.tbl is : %s\n", Game_weapons_tbl_valid ? "VALID" : "INVALID!!!!"));
--- a/code/mod_table/mod_table.cpp
+++ b/code/mod_table/mod_table.cpp
@@ -157,19 +157,8 @@
                      .default_val(Discord_presence)
                      .level(options::ExpertLevel::Advanced)
                      .importance(55)
                      .change_listener([](bool val, bool) {
-                          if(Discord_presence){
-                               if (!val) {
-                                    Discord_presence = false;
-                                    libs::discord::shutdown();
-                               }
-                          } else {
-                               if (val) {
-                                    Discord_presence = true;
-                                    libs::discord::init();
-                               }
-                          }
                           return true;
                      })
                      .finish();
 
--- a/code/scripting/api/libs/base.cpp
+++ b/code/scripting/api/libs/base.cpp
@@ -751,15 +751,17 @@
 	if (!ade_get_args(L, "s|b", &text, &gp)) {
 		return ADE_RETURN_NIL;
 	}
 
+/**
 	if (gp) {
 		if ((Game_mode & GM_IN_MISSION) != 0){
 			libs::discord::set_presence_gameplay();
 		}
 	} else {
 		libs::discord::set_presence_string(text);
 	}
+*/
 
 	return ADE_RETURN_NIL;
 }
 
