TGUI fixes, part 3 (#16560)

* a

* TGUI fixes part 3

* ugh

* bwuh

* ambiguous my ass

* AOAOAOAO

* pt 4

* extra foolproof

* a

* ok good thing i caught that

* enable that for AI

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>
This commit is contained in:
Matt Atlas
2023-06-27 23:33:21 +02:00
committed by GitHub
parent 06f8ced03b
commit e237808ea9
25 changed files with 259 additions and 178 deletions

View File

@@ -78,13 +78,14 @@
for(var/datum/computer_file/program/P in hard_drive.stored_files)
if(P.program_hidden())
continue
data["programs"] += list(list(
"filename" = P.filename,
"desc" = P.filedesc,
"autorun" = istype(autorun) && (autorun.stored_data == P.filename),
"running" = (P in idle_threads)
))
if(P.program_type & PROGRAM_SERVICE)
if(!istype(P, /datum/computer_file/program/scanner))
data["programs"] += list(list(
"filename" = P.filename,
"desc" = P.filedesc,
"autorun" = istype(autorun) && (autorun.stored_data == P.filename),
"running" = (P in idle_threads)
))
else
data["services"] += list(list(
"filename" = P.filename,
"desc" = P.filedesc,