mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
[MIRROR] Ensures early assets init when expected during unit tests, [MDB IGNORE] (#17259)
* Ensures early assets init when expected during unit tests, (#70753) Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com> * Ensures early assets init when expected during unit tests, Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
@@ -17,3 +17,12 @@ SUBSYSTEM_DEF(asset_loading)
|
||||
if(MC_TICK_CHECK)
|
||||
return
|
||||
generate_queue.len--
|
||||
|
||||
/datum/controller/subsystem/asset_loading/proc/queue_asset(datum/asset/queue)
|
||||
#ifdef DO_NOT_DEFER_ASSETS
|
||||
stack_trace("We queued an instance of [queue.type] for lateloading despite not allowing it")
|
||||
#endif
|
||||
generate_queue += queue
|
||||
|
||||
/datum/controller/subsystem/asset_loading/proc/dequeue_asset(datum/asset/queue)
|
||||
generate_queue -= queue
|
||||
|
||||
Reference in New Issue
Block a user