Another bug fix

master
AlmTech 5 years ago
parent 46c431fa63
commit a482c6515e
  1. 9
      gamemode/cl_init.lua
  2. 1
      gamemode/init.lua
  3. 10
      gamemode/shared.lua

@ -14,6 +14,15 @@ if CLIENT then
function Quantum.Client.Load() function Quantum.Client.Load()
local fol = GM.FolderName .. "/gamemode/core/" local fol = GM.FolderName .. "/gamemode/core/"
-- Shared files
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )
for _, file in pairs( shFiles ) do
include( fol .. file )
end
Quantum.Shared.Init()
-- CLient files -- CLient files
local clFiles = file.Find( fol .. "/client/cl_*.lua", "LUA" ) local clFiles = file.Find( fol .. "/client/cl_*.lua", "LUA" )
for _, file in pairs( clFiles ) do for _, file in pairs( clFiles ) do

@ -22,6 +22,7 @@ if SERVER then
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" ) local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )
for _, file in pairs( shFiles ) do for _, file in pairs( shFiles ) do
AddCSLuaFile( fol .. file ) AddCSLuaFile( fol .. file )
include( fol .. file )
end end
-- CLient files -- CLient files

@ -11,13 +11,3 @@ GM.Email = "elias@almtech.se"
GM.Website = "N/A" GM.Website = "N/A"
Quantum = {} Quantum = {}
Quantum.Shared = {}
Quantum.Shared.Init = function()
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )
for _, file in pairs( shFiles ) do
include( fol .. file )
end
end
Quantum.Shared.Init()
Loading…
Cancel
Save