mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-15 03:39:56 +01:00
Fix fs.makeDirectory negating its result
This commit is contained in:
parent
b99914bac5
commit
70e6f4e241
@ -4276,7 +4276,7 @@ int LuaScriptInterface::fileSystem_makeDirectory(lua_State * l)
|
||||
|
||||
int ret = 0;
|
||||
ret = Platform::MakeDirectory(dirname);
|
||||
lua_pushboolean(l, ret == 0);
|
||||
lua_pushboolean(l, ret);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user