From e3448e2e363bcc4b891e8168e936e2ade45aa25a Mon Sep 17 00:00:00 2001 From: Basilisk3 <126026384+Basilisk3@users.noreply.github.com> Date: Sat, 20 Apr 2024 18:06:04 +0200 Subject: [PATCH] Apply Jip's feedback --- changelog/3809.md | 2 +- init_faf.lua | 2 -- lua/system/import.lua | 5 ++--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/changelog/3809.md b/changelog/3809.md index 00f1838c6c..b7e28b0231 100644 --- a/changelog/3809.md +++ b/changelog/3809.md @@ -91,7 +91,7 @@ - (#6086) Ensure that the Cooper's hitbox aligns with its model -- (#6090) Reduce the amount of logging performed by the game when not playing `fafdevelop`. This should have a positive impact on performance. +- (#6090) Reduce the amount of logging performed by the game. This should have a positive impact on performance. ## Contributors diff --git a/init_faf.lua b/init_faf.lua index 691cdc5ab4..104d12cb02 100644 --- a/init_faf.lua +++ b/init_faf.lua @@ -8,8 +8,6 @@ -- imports fa_path to determine where it is installed dofile(InitFileDir .. '/../fa_path.lua') -local GameType = rawget(_G, "GameType") - LOG("Client version: " .. tostring(ClientVersion)) LOG("Game version: " .. tostring(GameVersion)) LOG("Game type: " .. tostring(GameType)) diff --git a/lua/system/import.lua b/lua/system/import.lua index c980ced159..9cb024d1ad 100644 --- a/lua/system/import.lua +++ b/lua/system/import.lua @@ -119,9 +119,8 @@ function import(name, isLazy) return existing end - -- As this creates a lot of entries in your log very quickly, we only enable it on fafdevelop - local GameType = rawget(_G, "GameType") - if GameType == "fafdevelop" then + -- As this creates a lot of entries in your log very quickly, we disable it by default + if informDevOfLoad then SPEW(string.format("%sLoading module: %s", string.rep("-> ", indent) or "", name)) indent = indent + 1 end