mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-09-14 11:06:16 +05:00
aefaef
This commit is contained in:
parent
fdee35a07f
commit
1e2fc094da
@ -19,7 +19,6 @@ local libraries = {
|
||||
["component"] = "component",
|
||||
["unicode"] = "unicode",
|
||||
["fs"] = "filesystem",
|
||||
["libPNGImage"] = "libPNGImage",
|
||||
["colorlib"] = "colorlib",
|
||||
}
|
||||
|
||||
@ -269,6 +268,8 @@ end
|
||||
----------------------------------- Все, что касается реального PNG-формата ------------------------------------------------------------
|
||||
|
||||
function image.loadPng(path)
|
||||
if not _G.libPNGImage then _G.libPNGImage = require("libPNGImage") end
|
||||
|
||||
local success, pngImageOrErrorMessage = pcall(libPNGImage.newFromFile, path)
|
||||
|
||||
if not success then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user