Skip to content

Commit

Permalink
Merged MySQLite library
Browse files Browse the repository at this point in the history
  • Loading branch information
FPtje committed Jan 24, 2024
1 parent 1b77898 commit ebdd08d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gamemode/libraries/mysqlite/mysqlite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ebdd08d

Please sign in to comment.