mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-08 23:10:44 +02:00
Fix fs.makeDirectory negating its result
This commit is contained in:
@@ -4276,7 +4276,7 @@ int LuaScriptInterface::fileSystem_makeDirectory(lua_State * l)
|
|||||||
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
ret = Platform::MakeDirectory(dirname);
|
ret = Platform::MakeDirectory(dirname);
|
||||||
lua_pushboolean(l, ret == 0);
|
lua_pushboolean(l, ret);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user