mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
@@ -171,7 +171,7 @@ int w_File_write(lua_State *L)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
love::Data *data = luax_totype<love::Data>(L, 2);
|
love::Data *data = luax_totype<love::Data>(L, 2);
|
||||||
result = file->write(data, luaL_optinteger(L, 3, data->getSize()));
|
result = file->write(data->getData(), luaL_optinteger(L, 3, data->getSize()));
|
||||||
}
|
}
|
||||||
catch (love::Exception &e)
|
catch (love::Exception &e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user