Fixed file existence check for rules.toml

This commit is contained in:
Timo Smit 2019-01-18 13:15:59 +01:00
parent b2b3fae5ce
commit 11c0903b95

View file

@ -43,7 +43,7 @@ function rules.load()
if string.find(fileName, ".toml") == string.len(fileName) - 4 then if string.find(fileName, ".toml") == string.len(fileName) - 4 then
local fileDescriptor, fileLength = et.trap_FS_FOpenFile(fileName, et.FS_READ) local fileDescriptor, fileLength = et.trap_FS_FOpenFile(fileName, et.FS_READ)
if fileLength ~= -1 then if fileLength == -1 then
return 0 return 0
end end