mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix Windows build, clean up included headers
Also fix a startup error caused by s_security.cpp
This commit is contained in:
parent
e13d2bafc6
commit
39869aaa25
3 changed files with 2 additions and 7 deletions
|
@ -264,7 +264,7 @@ bool ScriptApiSecurity::safeLoadFile(lua_State *L, const char *path)
|
|||
fp = stdin;
|
||||
chunk_name = const_cast<char *>("=stdin");
|
||||
} else {
|
||||
fp = fopen(path, "r");
|
||||
fp = fopen(path, "rb");
|
||||
if (!fp) {
|
||||
lua_pushfstring(L, "%s: %s", path, strerror(errno));
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue