From 6581eb8526e9efe8ebea611cca43658bd650ca3c Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Sat, 4 Nov 2017 16:01:17 -0700 Subject: [PATCH] Hide already-downloaded programs from NTNet downloader (#32396) --- .../modular_computers/file_system/programs/ntdownloader.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/modular_computers/file_system/programs/ntdownloader.dm b/code/modules/modular_computers/file_system/programs/ntdownloader.dm index 4396e0e544..41dce90997 100644 --- a/code/modules/modular_computers/file_system/programs/ntdownloader.dm +++ b/code/modules/modular_computers/file_system/programs/ntdownloader.dm @@ -130,7 +130,7 @@ for(var/A in GLOB.ntnet_global.available_station_software) var/datum/computer_file/program/P = A // Only those programs our user can run will show in the list - if(!P.can_run(user,transfer = 1)) + if(!P.can_run(user,transfer = 1) || hard_drive.find_file_by_name(P.filename)) continue all_entries.Add(list(list( "filename" = P.filename, @@ -144,6 +144,8 @@ var/list/hacked_programs[0] for(var/S in GLOB.ntnet_global.available_antag_software) var/datum/computer_file/program/P = S + if(hard_drive.find_file_by_name(P.filename)) + continue data["hackedavailable"] = 1 hacked_programs.Add(list(list( "filename" = P.filename,