Skip to content

Commit e5496da

Browse files
committed
Add LVEP and libav as feature
1 parent 0ab007c commit e5496da

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

game/systeminfo.lua

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
-- luacheck: read_globals DEPLS_VERSION DEPLS_VERSION_NUMBER DEPLS_VERSION_CODENAME
66

77
local love = require("love")
8+
local ls2x = require("libs.ls2x")
89

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

2931
local osVersionString
@@ -140,6 +142,14 @@ local function buildTextString()
140142
end
141143
end
142144

145+
if ls2x.libav then
146+
if package.preload.lvep then
147+
feature[#feature + 1] = "LVEP"
148+
else
149+
feature[#feature + 1] = "libav audio decoding"
150+
end
151+
end
152+
143153
sb[#sb + 1] = "Opts: "..table.concat(feature, " ")
144154
end
145155

main.lua

+5
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ function love.load(argv, gameargv)
402402
log.warn("main", "LOVE 0.10.x support for Live Simulator: 2 has been deprecated!")
403403
end
404404

405+
if love._os == "Windows" then
406+
local ffi = require("ffi")
407+
log.debug("main", "Active code page: "..ffi.C.GetACP())
408+
end
409+
405410
-- Enable key repeat
406411
love.keyboard.setKeyRepeat(true)
407412
-- Most codes in livesim2 uses math.random instead of love.math.random

0 commit comments

Comments
 (0)