Admins can now save custom shells (#61307)

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
Watermelon914
2021-09-16 00:11:56 -07:00
committed by GitHub
co-authored by Watermelon914
parent 6fdd289ecf
commit 6497a97a89
4 changed files with 77 additions and 1 deletions
+4
View File
@@ -109,6 +109,8 @@ GLOBAL_LIST_INIT(circuit_dupe_whitelisted_types, list(
port.connect(output_port)
SEND_SIGNAL(src, COMSIG_CIRCUIT_POST_LOAD)
#undef LOG_ERROR
/// Converts a circuit into json.
@@ -181,6 +183,8 @@ GLOBAL_LIST_INIT(circuit_dupe_whitelisted_types, list(
variables += list(new_data)
general_data["variables"] = variables
SEND_SIGNAL(src, COMSIG_CIRCUIT_PRE_SAVE_TO_JSON, general_data)
return json_encode(general_data)
/obj/item/integrated_circuit/proc/load_component(type)