Skip to content

Commit

Permalink
Enable hard deletes in CI (#5093)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Jan 25, 2025
1 parent 5f58c95 commit 3850c15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/controllers/subsystem/garbage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ SUBSYSTEM_DEF(garbage)
#endif

// monkestation start: disabling hard deletes
#ifndef UNIT_TESTS
/// Toggle for enabling/disabling hard deletes. Objects that don't explicitly request hard deletion with this disabled will leak.
var/enable_hard_deletes = FALSE
#endif
var/list/failed_hard_deletes = list()
// monkestation end


/datum/controller/subsystem/garbage/PreInit()
InitQueues()

Expand Down Expand Up @@ -290,9 +291,11 @@ SUBSYSTEM_DEF(garbage)
// monkestation start: disable hard deletes
if(!D)
return
#ifndef UNIT_TESTS
if(!enable_hard_deletes && !override)
failed_hard_deletes |= D
return
#endif
// monkestation end
++delslasttick
++totaldels
Expand Down

0 comments on commit 3850c15

Please sign in to comment.