mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] NT Frontier can read files from data disks (#28355)
* NT Frontier can read files from data disks (#84189) ## About The Pull Request Made the NT Frontier app look for valid experiment files not only on the local file system, but also on the data disk. ## Why It's Good For The Game Less clicks. ## Changelog 🆑 qol: NT Frontier app now allows to select experiments from inserted data disks /🆑 * NT Frontier can read files from data disks --------- Co-authored-by: Andrew <mt.forspam@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
return TRUE
|
||||
|
||||
/datum/computer_file/program/scipaper_program/proc/recheck_file_presence()
|
||||
if(selected_file in computer.stored_files)
|
||||
if(selected_file in computer.get_files(include_disk_files = TRUE))
|
||||
return FALSE
|
||||
UnregisterSignal(selected_file, COMSIG_COMPUTER_FILE_DELETE)
|
||||
selected_file = null
|
||||
@@ -92,7 +92,7 @@
|
||||
data["allowedTiers"] = list()
|
||||
data["allowedPartners"] = list()
|
||||
// Both the file and experiment list are assoc lists. ID as value, display name as keys.
|
||||
for(var/datum/computer_file/data/ordnance/ordnance_file in computer.stored_files)
|
||||
for(var/datum/computer_file/data/ordnance/ordnance_file in computer.get_files(include_disk_files = TRUE))
|
||||
data["fileList"] += list(ordnance_file.filename = ordnance_file.uid)
|
||||
if(selected_file)
|
||||
for (var/possible_experiment in selected_file.possible_experiments)
|
||||
@@ -189,7 +189,7 @@
|
||||
if(selected_file)
|
||||
UnregisterSignal(selected_file, COMSIG_COMPUTER_FILE_DELETE)
|
||||
paper_to_be.set_experiment() // Clears the paper info.
|
||||
for(var/datum/computer_file/data/ordnance/ordnance_data in computer.stored_files)
|
||||
for(var/datum/computer_file/data/ordnance/ordnance_data in computer.get_files(include_disk_files = TRUE))
|
||||
if(ordnance_data.uid == params["selected_uid"])
|
||||
selected_file = ordnance_data
|
||||
RegisterSignal(selected_file, COMSIG_COMPUTER_FILE_DELETE, PROC_REF(recheck_file_presence))
|
||||
|
||||
Reference in New Issue
Block a user