mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 14:03:26 +02:00
lua binder improvments
This commit is contained in:
@@ -68,3 +68,11 @@ function resolvepath(filePath, depth)
|
||||
return filePath
|
||||
end
|
||||
end
|
||||
|
||||
function toboolean(str)
|
||||
str = str:trim():lower()
|
||||
if str == '1' or str == 'true' then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
Reference in New Issue
Block a user