Crazylemons's ntnet downloader suggestion.

This commit is contained in:
davipatury
2017-03-04 21:29:24 -03:00
parent 8496523a6c
commit 6473d0c79f
3 changed files with 4 additions and 2 deletions
@@ -138,6 +138,7 @@
// Use this proc to kill the program. Designed to be implemented by each program if it requires on-quit logic, such as the NTNRC client.
/datum/computer_file/program/proc/kill_program(forced = FALSE)
program_state = PROGRAM_STATE_KILLED
computer.update_icon()
if(network_destination)
generate_network_log("Connection to [network_destination] closed.")
return 1
@@ -144,7 +144,8 @@
"filedesc" = P.filedesc,
"fileinfo" = P.extended_desc,
"compatibility" = check_compatibility(P),
"size" = P.size
"size" = P.size,
"status" = !hard_drive || !hard_drive.can_store_file(P) ? "disabled" : null
)))
data["hackedavailable"] = 0
if(computer.emagged) // If we are running on emagged computer we have access to some "bonus" software