if(!files==nil||#files<=0)thenQuantum.Error("Failed to load menus! Menu files not found. Contact someone important!\nFiles: "..tostring(files).." ("..tostring(#files)..")")end
fori,fileinpairs(files)do-- pretty ineffective but this will only be run ONCE to load all of the menus
localid=getMenuIDbyFileName(file)-- get the menu id by removing ".lua" and "menu_" from it
Quantum.Client.Menu.Menus[id]=include(GAMEMODE.FolderName.."/gamemode/engine/derma/menus/"..file)-- put it into the table
Quantum.Client.Menu.Menus[id]=include(GM.FolderName.."/gamemode/engine/derma/menus/"..file)-- put it into the table
Quantum.Debug("Loaded menu: '"..tostring(id).."'")-- debug it