From c9968a0954f8855780c73a2c2d90f07035f4d89b Mon Sep 17 00:00:00 2001 From: modeco80 Date: Thu, 27 Jul 2023 17:04:56 -0400 Subject: [PATCH] yet more cleanup --- lua/entities/gmod_lcpu_cpu.lua | 2 +- native/projects/lcpu/src/LcpuGlobals.cpp | 2 +- native/projects/lcpu/src/LuaHelpers.hpp | 2 -- native/projects/lcpu/src/main.cpp | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lua/entities/gmod_lcpu_cpu.lua b/lua/entities/gmod_lcpu_cpu.lua index 7407697..b08ebf3 100644 --- a/lua/entities/gmod_lcpu_cpu.lua +++ b/lua/entities/gmod_lcpu_cpu.lua @@ -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..) diff --git a/native/projects/lcpu/src/LcpuGlobals.cpp b/native/projects/lcpu/src/LcpuGlobals.cpp index 21d6bb2..922dbe7 100644 --- a/native/projects/lcpu/src/LcpuGlobals.cpp +++ b/native/projects/lcpu/src/LcpuGlobals.cpp @@ -1,6 +1,6 @@ #include "LcpuGlobals.hpp" -#include "GarrysMod/Lua/Interface.h" +#include #include "LuaCpu.hpp" #include "LuaDevice.hpp" diff --git a/native/projects/lcpu/src/LuaHelpers.hpp b/native/projects/lcpu/src/LuaHelpers.hpp index 83295b6..b7c88bb 100644 --- a/native/projects/lcpu/src/LuaHelpers.hpp +++ b/native/projects/lcpu/src/LuaHelpers.hpp @@ -7,8 +7,6 @@ #include -#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! diff --git a/native/projects/lcpu/src/main.cpp b/native/projects/lcpu/src/main.cpp index 23a0dda..89c0320 100644 --- a/native/projects/lcpu/src/main.cpp +++ b/native/projects/lcpu/src/main.cpp @@ -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; }