From 8452314ba1c26e287d40b93a8aa9f33c34de8a5d Mon Sep 17 00:00:00 2001 From: huoji Date: Mon, 9 Oct 2023 16:56:33 +0800 Subject: [PATCH] fix github workflow error --- csgo2/csgo2.vcxproj | 1 - csgo2/csgo2.vcxproj.filters | 3 --- csgo2/head.h | 1 - csgo2/script_engine.cpp | 2 ++ 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/csgo2/csgo2.vcxproj b/csgo2/csgo2.vcxproj index f2815f0..30dc3e2 100644 --- a/csgo2/csgo2.vcxproj +++ b/csgo2/csgo2.vcxproj @@ -172,7 +172,6 @@ - diff --git a/csgo2/csgo2.vcxproj.filters b/csgo2/csgo2.vcxproj.filters index 24437cf..4d885bb 100644 --- a/csgo2/csgo2.vcxproj.filters +++ b/csgo2/csgo2.vcxproj.filters @@ -363,9 +363,6 @@ 头文件\sdk\public - - 源文件\script_engine\lua_cjson - 源文件\script_engine\lua_cjson diff --git a/csgo2/head.h b/csgo2/head.h index 5e418d9..dfc8fcb 100644 --- a/csgo2/head.h +++ b/csgo2/head.h @@ -62,5 +62,4 @@ static void DebugPrintA(const char* format, ...) { #include "script_callbacks.h" #include "timer.h" #include "weapon.h" -#include "lua-cjson/lua_cjson.h" #include "Server.h" \ No newline at end of file diff --git a/csgo2/script_engine.cpp b/csgo2/script_engine.cpp index 9540561..ce8c66b 100644 --- a/csgo2/script_engine.cpp +++ b/csgo2/script_engine.cpp @@ -1,4 +1,6 @@ #include "script_engine.h" +extern "C" int luaopen_cjson(lua_State * L); + namespace ScriptEngine { std::string luaPath; std::map pluginEnvs;