From dc6cdf123e25bfa0b02a80f4b840b1e1937860a2 Mon Sep 17 00:00:00 2001 From: wan-may Date: Tue, 12 Sep 2023 12:20:03 -0300 Subject: [PATCH] Fix package paths. --- src/server.lua | 3 --- src/shared.lua | 2 ++ src/vision.bat | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 src/vision.bat diff --git a/src/server.lua b/src/server.lua index a3f87c3..e25995d 100644 --- a/src/server.lua +++ b/src/server.lua @@ -1,6 +1,3 @@ -package.path = package.path .. ";lib/" -package.cpath = package.path .. ";lib/" - local shared = assert( require 'shared' ) local packet = shared.packet local socket = assert( require 'socket' ) diff --git a/src/shared.lua b/src/shared.lua index ad1728a..b767801 100644 --- a/src/shared.lua +++ b/src/shared.lua @@ -1,3 +1,5 @@ +package.cpath = ".\\?.dll;..\\build\\clib\\?.dll;"..package.cpath +package.path = ".\\?.lua;..\\build\\lualib\\?.lua;"..package.path local shared = {} shared.ip = assert( require 'shared.ipstring' ) diff --git a/src/vision.bat b/src/vision.bat deleted file mode 100644 index d7798e3..0000000 --- a/src/vision.bat +++ /dev/null @@ -1,2 +0,0 @@ -D:/dev/love/love.exe D:\dev\vision\src -pause \ No newline at end of file