Skip to content

Commit

Permalink
Remove linkedlist toggle in userfacing settings (#1288)
Browse files Browse the repository at this point in the history
* Remove linkedlist toggle from settings

* Add nil to be an on toggle as well
  • Loading branch information
ccuser44 authored Nov 20, 2023
1 parent 727aba5 commit ccd819e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Loader/Config/Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ settings.SystemTitle = "System Message" -- Title to display in :sm and :bc

settings.MaxLogs = 5000 -- Maximum logs to save before deleting the oldest
settings.SaveCommandLogs = true -- If command logs are saved to the datastores
settings.UseLinkedListsInLogs = true -- If true then log system uses a linked-list system to store logs instead of tables - severely improves server performance & allows for large logs with little to no impact except slightly increased memory usage
settings.Notification = true -- Whether or not to show the "You're an admin" and "Updated" notifications
settings.SongHint = true -- Display a hint with the current song name and ID when a song is played via :music
settings.TopBarShift = false -- By default hints and notifications will appear from the top edge of the window. Set this to true if you don't want hints/notifications to appear in that region.
Expand Down Expand Up @@ -462,7 +461,6 @@ descs.SystemTitle = [[ Title to display in :sm ]]
descs.CreatorPowers = [[ Gives me creator-level admin; This is strictly used for debugging; I can't debug without access to the script and specific owner commands ]]
descs.MaxLogs = [[ Maximum logs to save before deleting the oldest; Too high can lag the game ]]
descs.SaveCommandLogs = [[ If command logs are saved to the datastores ]]
descs.UseLinkedListsInLogs = [[ If true then log system uses a linked-list system to store logs instead of tables - severely improves server performance & allows for large logs with little to no impact except slightly increased memory usage ]]
descs.Notification = [[ Whether or not to show the "You're an admin" and "Updated" notifications ]]
descs.CodeExecution = [[ Enables the use of code execution in Adonis; Scripting related and a few other commands require this ]]
descs.SongHint = [[ Display a hint with the current song name and ID when a song is played via :music ]]
Expand Down Expand Up @@ -603,7 +601,6 @@ order = {
" ";
"MaxLogs";
"SaveCommandLogs";
"UseLinkedListsInLogs";
"Notification";
"SongHint";
"TopBarShift";
Expand Down
6 changes: 3 additions & 3 deletions MainModule/Server/Core/Logs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ return function(Vargs, GetEnv)
Logs.Init = nil;
Logs:AddLog("Script", "Logging Module Initialized");
end;
local UseDLL = server.Settings.UseLinkedListsInLogs == true

local UseDLL = server.Settings.UseLinkedListsInLogs == true or server.Settings.UseLinkedListsInLogs == nil

server.Logs = {
Init = Init;
Chats = if UseDLL then DLL.new() else {};
Expand Down

0 comments on commit ccd819e

Please sign in to comment.