From 98084062cd6ef853175f9752d6b06167905103ab Mon Sep 17 00:00:00 2001 From: Baum Date: Wed, 16 Oct 2024 15:14:15 +0200 Subject: [PATCH] fix missing require in thread --- compat/game21/server/packet_handler.lua | 1 + extlibs/sqlite/defs.lua | 1 + server/game_thread.lua | 1 + server/web_api.lua | 1 + ui/overlay/packs/download_thread.lua | 1 + 5 files changed, 5 insertions(+) diff --git a/compat/game21/server/packet_handler.lua b/compat/game21/server/packet_handler.lua index b8b1b97..3731dae 100644 --- a/compat/game21/server/packet_handler.lua +++ b/compat/game21/server/packet_handler.lua @@ -5,6 +5,7 @@ local packet_types = require("compat.game21.server.packet_types") local version = require("server.version") local sodium = require("extlibs.luasodium") local game = require("server.game") +require("love.timer") local packet_handler = {} local server_pk, server_sk = sodium.crypto_kx_keypair() diff --git a/extlibs/sqlite/defs.lua b/extlibs/sqlite/defs.lua index f0c4777..abe0886 100644 --- a/extlibs/sqlite/defs.lua +++ b/extlibs/sqlite/defs.lua @@ -1,5 +1,6 @@ local ffi = require("ffi") local bit = require("bit") +require("love.system") local M = {} --- Load clib diff --git a/server/game_thread.lua b/server/game_thread.lua index bf32a97..65fbc8d 100644 --- a/server/game_thread.lua +++ b/server/game_thread.lua @@ -4,6 +4,7 @@ local replay = require("game_handler.replay") local game_handler = require("game_handler") local config = require("config") local threadify = require("threadify") +require("love.timer") -- avoid local redefinition do diff --git a/server/web_api.lua b/server/web_api.lua index 5f7a8ba..363a15b 100644 --- a/server/web_api.lua +++ b/server/web_api.lua @@ -8,6 +8,7 @@ local log = require("log")("server.web_api") local zip = require("extlibs.love-zip") local threadify = require("threadify") local game_handler = require("game_handler") +require("love.timer") local promise = game_handler.init() while not promise.executed do diff --git a/ui/overlay/packs/download_thread.lua b/ui/overlay/packs/download_thread.lua index 2fe1d28..81f4555 100644 --- a/ui/overlay/packs/download_thread.lua +++ b/ui/overlay/packs/download_thread.lua @@ -4,6 +4,7 @@ local https = require("https") local threadify = require("threadify") local assets = threadify.require("game_handler.assets") local url = require("socket.url") +require("love.timer") local server_http_url, server_https_url local tmp_folder = "download_cache/"