Hide already-downloaded programs from NTNet downloader (#32396)
This commit is contained in:
committed by
CitadelStationBot
parent
910e6b6396
commit
6581eb8526
@@ -130,7 +130,7 @@
|
|||||||
for(var/A in GLOB.ntnet_global.available_station_software)
|
for(var/A in GLOB.ntnet_global.available_station_software)
|
||||||
var/datum/computer_file/program/P = A
|
var/datum/computer_file/program/P = A
|
||||||
// Only those programs our user can run will show in the list
|
// 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
|
continue
|
||||||
all_entries.Add(list(list(
|
all_entries.Add(list(list(
|
||||||
"filename" = P.filename,
|
"filename" = P.filename,
|
||||||
@@ -144,6 +144,8 @@
|
|||||||
var/list/hacked_programs[0]
|
var/list/hacked_programs[0]
|
||||||
for(var/S in GLOB.ntnet_global.available_antag_software)
|
for(var/S in GLOB.ntnet_global.available_antag_software)
|
||||||
var/datum/computer_file/program/P = S
|
var/datum/computer_file/program/P = S
|
||||||
|
if(hard_drive.find_file_by_name(P.filename))
|
||||||
|
continue
|
||||||
data["hackedavailable"] = 1
|
data["hackedavailable"] = 1
|
||||||
hacked_programs.Add(list(list(
|
hacked_programs.Add(list(list(
|
||||||
"filename" = P.filename,
|
"filename" = P.filename,
|
||||||
|
|||||||
Reference in New Issue
Block a user