Skip to content

Commit

Permalink
Add LVEP and libav as feature
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Jun 30, 2020
1 parent 0ab007c commit e5496da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 11 additions & 1 deletion game/systeminfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
-- luacheck: read_globals DEPLS_VERSION DEPLS_VERSION_NUMBER DEPLS_VERSION_CODENAME

local love = require("love")
local ls2x = require("libs.ls2x")

local androidCodenames = setmetatable({
-- LOVE only supports Android 4.0 and later
Expand All @@ -23,7 +24,8 @@ local androidCodenames = setmetatable({
[25] = "Nougat",
[26] = "Oreo",
[27] = "Oreo",
[28] = "Pie"
[28] = "Pie",
[29] = "10.0",
}, {__index = function() return "Unknown" end})

local osVersionString
Expand Down Expand Up @@ -140,6 +142,14 @@ local function buildTextString()
end
end

if ls2x.libav then
if package.preload.lvep then
feature[#feature + 1] = "LVEP"
else
feature[#feature + 1] = "libav audio decoding"
end
end

sb[#sb + 1] = "Opts: "..table.concat(feature, " ")
end

Expand Down
5 changes: 5 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ function love.load(argv, gameargv)
log.warn("main", "LOVE 0.10.x support for Live Simulator: 2 has been deprecated!")
end

if love._os == "Windows" then
local ffi = require("ffi")
log.debug("main", "Active code page: "..ffi.C.GetACP())
end

-- Enable key repeat
love.keyboard.setKeyRepeat(true)
-- Most codes in livesim2 uses math.random instead of love.math.random
Expand Down

0 comments on commit e5496da

Please sign in to comment.