mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-17 19:07:26 +01:00
Replaces return_file_text -> file2text (#21849)
Very ancient, decrepit proc that is somehow still used. Got rid of it in favor of byond's proc, which has been around long enough there isn't a version I can cite for it. No user facing changes.
This commit is contained in:
@@ -128,7 +128,7 @@ SUBSYSTEM_DEF(chemistry)
|
||||
return
|
||||
|
||||
try
|
||||
chemconfig = json_decode(return_file_text("config/secretchem.json"))
|
||||
chemconfig = json_decode(file2text("config/secretchem.json"))
|
||||
catch(var/exception/e)
|
||||
log_subsystem_chemistry("Warning: Could not load config, as secretchem.json is missing - [e]")
|
||||
return
|
||||
|
||||
@@ -68,7 +68,7 @@ SUBSYSTEM_DEF(discord)
|
||||
PRIVATE_PROC(TRUE)
|
||||
if(!SSdbcore.Connect())
|
||||
log_subsystem_discord("initialize_webhooks - Unable to connect to db - Loading from File")
|
||||
var/file = return_file_text("config/webhooks.json")
|
||||
var/file = file2text("config/webhooks.json")
|
||||
if (file)
|
||||
var/jsonData = json_decode(file)
|
||||
if(!jsonData)
|
||||
|
||||
Reference in New Issue
Block a user