more tests

- added custom error handler so that love is closed if a crash occurs rather than hang on the graphic screen (for runner crashes mainly)

- updated missing functions left todo in todo.md and removed list from readme.md to make it easier to keep track of

- added love.audio.getPlaybackDevice(), love.audio.getPlaybackDevices(), love.audio.setPlaybackDevice()

- added love.data.ByteData:setString()

- added love.filesystem.getFullCommonPath(), love.filesystem.mountFullPath(), love.filesystem.unmountFullPath(), love.filesystem.moundCommonPath(), plus optional b/t/bt params to love.filesystem.load()

- added love.keyboard.isModifierActive()

- added love.sound.SoundData:copy() and love.sound.SoundData:slice()

- added love.graphics.Texture:isCanvas() and love.graphics.Texture:isComputeWritable()

- added love.image.ImageData:isLinear(), love.image.ImageData:setLinear(), and love.image.ImageData:encode("*.exr")

- added love.image.CompressedImageData:isLinear() and love.image.CompressedImageData:setLinear()

- added love.system.getPreferredLocales()

- added love.window.focus() and removed love.window.close() (now deprecated)
This commit is contained in:
ell
2024-02-28 17:49:51 +00:00
parent ff06718f8a
commit 990259edf9
16 changed files with 317 additions and 33 deletions
+14
View File
@@ -1,4 +1,7 @@
print("conf.lua")
function love.conf(t)
print("love.conf")
t.console = true
t.window.name = 'love.test'
t.window.width = 360
@@ -8,3 +11,14 @@ function love.conf(t)
t.window.stencil = true
t.renderers = {"opengl"}
end
-- custom crash message here to catch anything that might occur with modules
-- loading before we hit main.lua
local function error_printer(msg, layer)
print((debug.traceback("Error: " .. tostring(msg), 1+(layer or 1)):gsub("\n[^\n]+$", "")))
end
function love.errorhandler(msg)
msg = tostring(msg)
error_printer(msg, 2)
os.exit(1)
end