From 179925c633736c7c52c5a24d516b5a9cb08155df Mon Sep 17 00:00:00 2001 From: SuhEugene <32931701+SuhEugene@users.noreply.github.com> Date: Sat, 18 Nov 2023 00:33:06 +0300 Subject: [PATCH] Asdas --- code/datums/helper_datums/getrev.dm | 2 +- code/game/world.dm | 3 +++ mods/rust_g/README.md | 12 +++++++++--- mods/rust_g/_rust_g.dme | 2 -- mods/rust_g/code/helpers.dm | 6 ------ 5 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 mods/rust_g/code/helpers.dm diff --git a/code/datums/helper_datums/getrev.dm b/code/datums/helper_datums/getrev.dm index 07b87feefecd3..104462f52e65e 100644 --- a/code/datums/helper_datums/getrev.dm +++ b/code/datums/helper_datums/getrev.dm @@ -27,7 +27,7 @@ var/global/datum/getrev/revdata = new() break */ // [/SIERRA-REMOVE] - // [SIERRA-ADD] + // [SIERRA-ADD] - RUST_G revision = rustg_git_revparse("HEAD") date = rustg_git_commit_date("HEAD") // [/SIERRA-ADD] diff --git a/code/game/world.dm b/code/game/world.dm index a388df35ba41d..07324605db821 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -524,6 +524,9 @@ GLOBAL_VAR_INIT(world_topic_last, world.timeofday) for(var/client/C in GLOB.clients) send_link(C, "byond://[config.server]") + // [SIERRA-ADD] - RUST_G - Past this point, no logging procs can be used, at risk of data loss. + rustg_log_close_all() + //[/SIERRA-ADD] if(config.wait_for_sigusr1_reboot && reason != 3) text2file("foo", "reboot_called") to_world(SPAN_DANGER("World reboot waiting for external scripts. Please be patient.")) diff --git a/mods/rust_g/README.md b/mods/rust_g/README.md index 4c7cbd19a9db5..c782f9b3f29b2 100644 --- a/mods/rust_g/README.md +++ b/mods/rust_g/README.md @@ -28,7 +28,14 @@ ID мода: RUST_G ### Изменения *кор кода* -- `code/modules/mob/living.dm`: `proc/overriden_proc`, `var/overriden_var` +- `code/_helpers/logging.dm`: `/proc/game_log()` +- `code/controllers/master.dm`: `/datum/controller/master/New()` +- `code/controllers/subsystems/garbage.dm`: `/datum/controller/subsystem/garbage/Shutdown()` +- `code/datums/helper_datums/getrev.dm`: `/datum/getrev/New()` +- `code/game/world.dm`: + - `/world/New()` + - `/world/Topic()` + - `/world/Reboot()`