Improved backwards compatibility of the code

This commit is contained in:
Wofsauge committed 2024-10-15 20:48:12 +02:00
1 parent dc3d7c944a
commit c33fd329a7
2 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -908,7 +908,7 @@ end
function EID:filterIconMarkup(text, renderBulletPointIcon)
local spriteTable = {}
for word in string.gmatch(text, "{{.-}}") do
local textposition = string.find(text, word)
local textposition = string.find(text, word) or 1
local callback = EID._NextIconModifier
EID._NextIconModifier = nil
+8 -8
View File
@@ -47,20 +47,20 @@ end
function EID:BoCSGetSearchValue()
local s = searchValue
for _, callbackData in pairs(Isaac.GetCallbacks("EIDCallbacks.SEARCH_NAME_CONVERSION")) do
if callbackData.Param == EID:getLanguage() then
local newString = callbackData.Function(callbackData.Mod, callbackData.Param, s)
if newString and type(newString) == "string" then
s = newString
end
local newString = callbackData.Function(callbackData.Mod, s)
if type(newString) == "string" then
s = newString
end
end
return s
end
EID:AddCallback("EIDCallbacks.SEARCH_NAME_CONVERSION", function (_, lang, string)
EID:AddCallback("EIDCallbacks.SEARCH_NAME_CONVERSION", function(_, searchString)
-- TODO : make english search inside ko_kr language setting (priotity low though)
return EID.engKeystrokeToKor(string)
end, "ko_kr")
if EID:getLanguage() == "ko_kr" then
return EID.engKeystrokeToKor(searchString)
end
end)
function EID:BoCSGetLocked()
return locked