flamendless / Slab

An immediate mode GUI for the Love2D framework.
MIT License
294 stars 25 forks source link

Save dialog does not work on Linux #50

Closed LaineZ closed 4 years ago

LaineZ commented 4 years ago

If i tried save file in any directory i got this error:

Error: lib/slab/Internal/Core/FileSystem.lua:277: /usr/lib/x86_64-linux-gnu/libluajit-5.1.so.2: undefined symbol: stat64
stack traceback:
    [string "boot.lua"]:777: in function <[string "boot.lua"]:773>
    [C]: in function '__index'
    lib/slab/Internal/Core/FileSystem.lua:277: in function 'IsDirectory'
    lib/slab/Internal/UI/Dialog.lua:564: in function 'FileDialog'
    main.lua:216: in function 'update'
    [string "boot.lua"]:612: in function <[string "boot.lua"]:594>
    [C]: in function 'xpcall'

Slab master branch save dialog code:

    local result = slab.FileDialog({Type = "savefile"})

    if result.Button == "OK" then
      windows.saveDialog = false
      savepath = result.Files[1]
    end

    if result.Button == "Cancel" then
      windows.saveDialog = false
    end
LaineZ commented 4 years ago

duplicate of #37