I would like to call a function that takes data and then populates an array I name in one of the function parameters. Example of what I'm looking for:
function readSaveFile(saveFileName, arrayName)
if love.filesystem.exists(saveFileName) then
arrayName = Tserial.unpack(love.filesystem.read(saveFileName))
end
end
The issue is that instead of creating an array with the string under arrayName, it replaces the parameter with an array explicitly called "arrayName". Is there any way I could populate the array name specified instead?