-
-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into soulcatcher-fix
- Loading branch information
Showing
385 changed files
with
99,691 additions
and
96,974 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
//* This file is explicitly licensed under the MIT license. *// | ||
//* Copyright (c) 2023 Citadel Station developers. *// | ||
//* Copyright (c) 2024 Citadel Station Developers *// | ||
|
||
//* This is here in [code/__DEFINES/controllers/_repositories.dm] for compile order reasons. *// | ||
/datum/controller/subsystem/repository/proc/__create_repositories() | ||
|
||
//* This is here in [code/__DEFINES/controllers/_repositories.dm] for compile order reasons. *// | ||
/datum/controller/subsystem/repository/proc/__init_repositories() | ||
|
||
// todo: redo recover logic; maybe /datum/controller as a whole should be brushed up | ||
#define REPOSITORY_DEF(what) \ | ||
GLOBAL_REAL(RC##what, /datum/controller/repository/##what); \ | ||
GLOBAL_REAL(RS##what, /datum/controller/repository/##what); \ | ||
/datum/controller/repository/##what/New(){ \ | ||
if(global.RC##what != src && istype(global.RC##what)){ \ | ||
Recover(global.RC##what); \ | ||
qdel(global.RC##what); \ | ||
if(global.RS##what != src && istype(global.RS##what)){ \ | ||
Recover(global.RS##what); \ | ||
qdel(global.RS##what); \ | ||
} \ | ||
global.RC##what = src; \ | ||
global.RS##what = src; \ | ||
} \ | ||
/datum/controller/subsystem/repository/var/datum/controller/repository/##what/RS##what; \ | ||
/datum/controller/subsystem/repository/__create_repositories() { \ | ||
..(); \ | ||
RS##what = new; \ | ||
RS##what.Create(); \ | ||
} \ | ||
/datum/controller/subsystem/repository/var/datum/controller/repository/##what/RC##what; \ | ||
/datum/controller/subsystem/repository/__init_repositories() { \ | ||
..(); \ | ||
RC##what = new; \ | ||
RC##what.Initialize(); \ | ||
RS##what.Initialize(); \ | ||
} \ | ||
/datum/controller/repository/##what |
Oops, something went wrong.