yet more cleanup
This commit is contained in:
parent
1d0830160b
commit
c9968a0954
|
@ -10,7 +10,7 @@ function ENT:Initialize()
|
|||
self:SetSolid(SOLID_VPHYSICS)
|
||||
-- 64 kb of ram for now.
|
||||
self.cpu = LCPUNative.CreateCPU(128 * 1024)
|
||||
print(self.cpu)
|
||||
|
||||
-- todo: cpu callbacks? once they become a thing
|
||||
-- test device framework
|
||||
-- (for once something works out how I wanted it to..)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "LcpuGlobals.hpp"
|
||||
|
||||
#include "GarrysMod/Lua/Interface.h"
|
||||
#include <GarrysMod/Lua/Interface.h>
|
||||
#include "LuaCpu.hpp"
|
||||
#include "LuaDevice.hpp"
|
||||
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
#include <lucore/Logger.hpp>
|
||||
|
||||
#include "GarrysMod/Lua/LuaBase.h"
|
||||
|
||||
// These are like the official GMOD header LUA_FUNCTION but allow forward declaration
|
||||
// and implementation inside of classes, making writing class bindings that much less
|
||||
// of a PITA. Nifty!
|
||||
|
|
|
@ -7,10 +7,8 @@
|
|||
#include "LcpuGlobals.hpp"
|
||||
|
||||
GMOD_MODULE_OPEN() {
|
||||
// Initialize our lua_shared binding. It is important we ca
|
||||
lucore::Logger::The().AttachSink(lcpu::SourceSink::The());
|
||||
lucore::LogInfo("LCPU Native Module! (ModuleVersion {})", LCPU_MODULE_VERSION);
|
||||
|
||||
lcpu::GlobalsBind(LUA);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue