gmod-lcpu/lua/autorun/lcpu_load.lua

25 lines
628 B
Lua
Raw Permalink Normal View History

2023-07-19 03:18:34 -04:00
AddCSLuaFile()
-- prime the native lua module & add clientside files to send
-- if running on the server
2023-07-24 06:50:18 -04:00
if SERVER then
require("lcpu_native")
if LCPUNative.ModuleVersion ~= 1 then
2023-07-24 06:50:18 -04:00
print("Your LCPU native module is somehow lagging behind the Lua code. Please rebuild it.")
LCPUNative = nil
return
end
LCPU = {};
LCPU.Devices = {};
-- Uncomment this to enable debug logging (useful for troubleshooting bugs)
--LCPUNative.EnableDebug()
2023-08-05 06:46:56 -04:00
include("lcpu/cvars.lua")
2023-07-24 06:50:18 -04:00
AddCSLuaFile("entities/gmod_lcpu_cpu.lua")
-- Serverside devices (that don't depend on wiremod being loaded)
include("lcpu/devices/uart.lua")
2023-07-24 06:50:18 -04:00
end