Skip to content

Commit

Permalink
pulling modulename from config instead of hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Dec 23, 2023
1 parent 34138a2 commit 9e27322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Module.__index = Module
local function getConfigFileName()
local server = mq.TLO.EverQuest.Server()
server = server:gsub(" ", "")
return mq.configDir .. '/rgmercs/PCConfigs/' .. 'basic_' .. server .. "_" .. RGMercConfig.CurLoadedChar .. '.lua'
return mq.configDir ..
'/rgmercs/PCConfigs/' .. Module.name .. "_" .. server .. "_" .. RGMercConfig.CurLoadedChar .. '.lua'
end

function Module:SaveSettings(doBroadcast)
Expand Down

0 comments on commit 9e27322

Please sign in to comment.