I think we can add `return nil` or something like that here : https://github.com/wowdev/noggit3/blob/74309b7cd33e19ae2b9e69160612d98eae3b8dcc/src/noggit/scripting/script_filesystem.cpp#L35 And in script we can now use read_file like that : ```lua local myFile = read_file(path) if ( myFile ) then ... end ```
I think we can add
return nilor something like that here :noggit3/src/noggit/scripting/script_filesystem.cpp
Line 35 in 74309b7
And in script we can now use read_file like that :