fix: framerate setting values not translated

This commit is contained in:
MihailRis
2024-07-30 19:45:47 +03:00
parent 63d0c8b01a
commit a2f79e979e
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
local tostring_overrides = {}
tostring_overrides["display.framerate"] = function(x)
if x == -1 then
return "V-Sync"
return gui.str("V-Sync")
elseif x == 0 then
return "Unlimited"
return gui.str("Unlimited")
else
return tostring(x)
end