mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-31 00:49:06 +01:00
Moves various things to the new DBCore (#21544)
``` - server: "Changed the synthsprites to use the new DBCore" - server: "Changed the MalfAI to use the new DBCore" - server: "Changed the Alien Whitelists to use the new DBCore" - server: "Changed the Requests Console to use the new DBCore" - server: "Changed the Contracts Uplink to use the new DBCore" - server: "Changed the Admin Ranks to use the new DBCore" - server: "Changed the Job Bans to use the new DBCore" - server: "Changed the Tickets to use the new DBCore" - server: "Changed the Create Command Report to use the new DBCore" - server: "Changed the WebInterface interconnect to use the new DBCore" - server: "Changed the CCIA Recorder to use the new DBCore" - server: "Changed the IPCTags to use the new DBCore" - server: "Changed the Main Menu Poll-Check to use the new DBCore" - server: "Changed the Client-Procs to use the new DBCore" ``` --------- Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
@@ -5,6 +5,7 @@ SUBSYSTEM_DEF(dbcore)
|
||||
wait = 10 // Not seconds because we're running on SS_TICKER
|
||||
runlevels = RUNLEVEL_LOBBY|RUNLEVELS_DEFAULT
|
||||
init_order = INIT_ORDER_DBCORE
|
||||
init_stage = INITSTAGE_FIRST
|
||||
priority = FIRE_PRIORITY_DATABASE
|
||||
|
||||
|
||||
@@ -308,6 +309,8 @@ SUBSYSTEM_DEF(dbcore)
|
||||
|
||||
/// Check if we have established a DB Connection
|
||||
/datum/controller/subsystem/dbcore/proc/IsConnected()
|
||||
PRIVATE_PROC(TRUE)
|
||||
|
||||
if(!GLOB.config.sql_enabled)
|
||||
return FALSE
|
||||
if (!connection)
|
||||
@@ -489,7 +492,7 @@ SUBSYSTEM_DEF(dbcore)
|
||||
if(status == DB_QUERY_STARTED)
|
||||
CRASH("Attempted to start a new query while waiting on the old one")
|
||||
|
||||
if(!SSdbcore.IsConnected())
|
||||
if(!SSdbcore.Connect())
|
||||
last_error = "No connection!"
|
||||
return FALSE
|
||||
|
||||
@@ -528,7 +531,7 @@ SUBSYSTEM_DEF(dbcore)
|
||||
if(status == DB_QUERY_STARTED)
|
||||
CRASH("Attempted to start a new query while waiting on the old one")
|
||||
|
||||
if(!SSdbcore.IsConnected())
|
||||
if(!SSdbcore.Connect())
|
||||
last_error = "No connection!"
|
||||
return FALSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user