mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-25 21:51:38 +00:00
Removed debug output for opening files which might spam server console
This commit is contained in:
parent
ad7b7c64e3
commit
f2458bb3a5
1 changed files with 0 additions and 8 deletions
|
@ -54,8 +54,6 @@ function files.open(fileName, fileMode, fileCreate)
|
||||||
fileDescriptor, fileLength = files.create(fileName)
|
fileDescriptor, fileLength = files.create(fileName)
|
||||||
end
|
end
|
||||||
|
|
||||||
outputDebug("util.files.open(): file "..fileName.." opened")
|
|
||||||
|
|
||||||
if fileMode == et.FS_READ then
|
if fileMode == et.FS_READ then
|
||||||
local fileString = et.trap_FS_Read(fileDescriptor, fileLength)
|
local fileString = et.trap_FS_Read(fileDescriptor, fileLength)
|
||||||
|
|
||||||
|
@ -70,7 +68,6 @@ function files.open(fileName, fileMode, fileCreate)
|
||||||
end
|
end
|
||||||
|
|
||||||
function files.loadCFG(fileName, idExpr, fileCreate)
|
function files.loadCFG(fileName, idExpr, fileCreate)
|
||||||
local functionStart = et.trap_Milliseconds()
|
|
||||||
local fileString = files.open(fileName, et.FS_READ, fileCreate)
|
local fileString = files.open(fileName, et.FS_READ, fileCreate)
|
||||||
local arrayCount = 0
|
local arrayCount = 0
|
||||||
local array = {}
|
local array = {}
|
||||||
|
@ -94,13 +91,10 @@ function files.loadCFG(fileName, idExpr, fileCreate)
|
||||||
table.insert(array[id], data)
|
table.insert(array[id], data)
|
||||||
end
|
end
|
||||||
|
|
||||||
outputDebug("util.files.loadCFG(): "..arrayCount.." entries loaded in "..et.trap_Milliseconds() - functionStart.." ms")
|
|
||||||
|
|
||||||
return arrayCount, array
|
return arrayCount, array
|
||||||
end
|
end
|
||||||
|
|
||||||
function files.save(fileName, array)
|
function files.save(fileName, array)
|
||||||
local functionStart = et.trap_Milliseconds()
|
|
||||||
local fileDescriptor = files.open(fileName, et.FS_WRITE)
|
local fileDescriptor = files.open(fileName, et.FS_WRITE)
|
||||||
local arrayCount = 0
|
local arrayCount = 0
|
||||||
|
|
||||||
|
@ -128,8 +122,6 @@ function files.save(fileName, array)
|
||||||
|
|
||||||
et.trap_FS_FCloseFile(fileDescriptor)
|
et.trap_FS_FCloseFile(fileDescriptor)
|
||||||
|
|
||||||
outputDebug("util.files.save(): "..arrayCount.." entries saved in "..et.trap_Milliseconds() - functionStart.." ms")
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue