mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Apply V2.2 patch
This commit is contained in:
@@ -7,6 +7,7 @@ local _defaultSettings = {
|
||||
|
||||
fullscreen = false,
|
||||
music = true,
|
||||
lines = true,
|
||||
|
||||
---@class input
|
||||
---@field keys table <string, string>
|
||||
@@ -22,8 +23,7 @@ SETTINGS = setmetatable(
|
||||
{},
|
||||
{
|
||||
__index = function(_, k)
|
||||
if _settings[k] == nil then _settings[k] = _defaultSettings[k] end
|
||||
return _settings[k]
|
||||
return _settings[k] == nil and _defaultSettings[k] or _settings[k]
|
||||
end,
|
||||
__newindex = function(_, k, v)
|
||||
_settings[k] = v
|
||||
|
||||
Reference in New Issue
Block a user