From ebdd08d88d3a2851ecc8b4f631c684d4686722d6 Mon Sep 17 00:00:00 2001 From: Falco Peijnenburg Date: Wed, 24 Jan 2024 19:53:22 +0100 Subject: [PATCH] Merged MySQLite library --- gamemode/libraries/mysqlite/mysqlite.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gamemode/libraries/mysqlite/mysqlite.lua b/gamemode/libraries/mysqlite/mysqlite.lua index d7a3769fb..9a31086f4 100644 --- a/gamemode/libraries/mysqlite/mysqlite.lua +++ b/gamemode/libraries/mysqlite/mysqlite.lua @@ -122,11 +122,10 @@ local moduleLoaded local function loadMySQLModule() if moduleLoaded or not MySQLite_config or not MySQLite_config.EnableMySQL then return end - local moo, tmsql = file.Exists("bin/gmsv_mysqloo_*.dll", "LUA"), file.Exists("bin/gmsv_tmysql4_*.dll", "LUA") + local moo, tmsql = util.IsBinaryModuleInstalled("mysqloo"), util.IsBinaryModuleInstalled("tmysql4") if not moo and not tmsql then error("Could not find a suitable MySQL module. Please either:\n - Install tmysql. It can be obtained from https://github.com/SuperiorServers/gm_tmysql4\n - Install MySQLOO. It can be obtained from https://github.com/FredyH/MySQLOO\nDue to this error, MySQL is disabled. This means that SQLite is used instead to store data.") - end moduleLoaded = true