修复安全漏洞(确信
This commit is contained in:
1
main.lua
1
main.lua
@@ -24,6 +24,7 @@ VERSION=require"version"
|
||||
TIME=love.timer.getTime
|
||||
YIELD=coroutine.yield
|
||||
SYSTEM=love.system.getOS()
|
||||
FNSF=SYSTEM:find'\79\83'--What does FNSF stand for? IDK so don't ask me lol
|
||||
MOBILE=SYSTEM=='Android'or SYSTEM=='iOS'
|
||||
SAVEDIR=fs.getSaveDirectory()
|
||||
|
||||
|
||||
@@ -194,10 +194,9 @@ return{
|
||||
"Make sure to get the game only from official sources,",
|
||||
"as we can't make sure you're safe if you got it elsewhere.",
|
||||
"The author is not responsible for any modifications.",
|
||||
"",
|
||||
"While the game is free, donations are appreciated.",
|
||||
"If you are unable to use both WeChat Pay and AliPay,",
|
||||
"you can go to our Patreon page (Link in Zictionary) to support us!",
|
||||
FNSF and nil or"While the game is free, donations are appreciated.",
|
||||
FNSF and nil or"If you are unable to use both WeChat Pay and AliPay,",
|
||||
FNSF and nil or"you can go to our Patreon page (Link in Zictionary) to support us!",
|
||||
},
|
||||
staff={
|
||||
"Author: MrZ Email: 1046101471@qq.com",
|
||||
|
||||
@@ -160,9 +160,9 @@ return{
|
||||
"Descarga disponible únicamente vía el grupo de testeo y discord.gg/f9pUvkh",
|
||||
"Descargas desde otros sitios pueden contener malware/viruses, y en smartphones sólo requiere permisos de internet y vibración.",
|
||||
"El autor no se responabiliza por daños ocasionados debido a modificaciones del juego.",
|
||||
"Por favor descarga las últimas versiones desde los sitios oficiales. El juego es gratuito",
|
||||
"Si no puede usar WeChat Pay y AliPay,",
|
||||
"puede ir a nuestra página de Patreon para apoyarnos.",
|
||||
FNSF and nil or"Por favor descarga las últimas versiones desde los sitios oficiales. El juego es gratuito",
|
||||
FNSF and nil or"Si no puede usar WeChat Pay y AliPay,",
|
||||
FNSF and nil or"puede ir a nuestra página de Patreon para apoyarnos.",
|
||||
},
|
||||
staff={
|
||||
"Autor:MrZ Email: 1046101471@qq.com",
|
||||
|
||||
@@ -160,9 +160,9 @@ return{
|
||||
"Ce jeu est gratuit et est uniquement disponible via discord.gg/f9pUvkh",
|
||||
"Ne téléchargez pas ce jeu depuis une autre source au risque d'avoir des virus,",
|
||||
"et vous n'avez besoin que des permissions de vibration et de communication réseau pour les versions mobiles !",
|
||||
"Le créateur n'est pas responsable pour n'importe quel type de perte de données suite à une modification du jeu.",
|
||||
"Si vous ne parvenez pas à utiliser à la fois WeChat Pay et AliPay,",
|
||||
"vous pouvez vous rendre sur notre page Patreon pour nous soutenir !",
|
||||
FNSF and nil or"Le créateur n'est pas responsable pour n'importe quel type de perte de données suite à une modification du jeu.",
|
||||
FNSF and nil or"Si vous ne parvenez pas à utiliser à la fois WeChat Pay et AliPay,",
|
||||
FNSF and nil or"vous pouvez vous rendre sur notre page Patreon pour nous soutenir !",
|
||||
},
|
||||
staff={
|
||||
"Author: MrZ E-mail: 1046101471@qq.com",
|
||||
|
||||
@@ -182,9 +182,9 @@ return{
|
||||
"certifique-se de pegar o jogo de fontes oficiais;",
|
||||
"binários obtidos em outros lugares pode conter malware.",
|
||||
"O autor não é responsável por qualquer binários modificados",
|
||||
"O jogo é gratis, mas doações são apreciadas.",
|
||||
"Se você não conseguir usar o WeChat Pay e o AliPay,",
|
||||
"pode acessar a página do Patreon para nos ajudar!",
|
||||
FNSF and nil or"O jogo é gratis, mas doações são apreciadas.",
|
||||
FNSF and nil or"Se você não conseguir usar o WeChat Pay e o AliPay,",
|
||||
FNSF and nil or"pode acessar a página do Patreon para nos ajudar!",
|
||||
},
|
||||
staff={
|
||||
"Author: MrZ E-mail: 1046101471@qq.com",
|
||||
|
||||
@@ -121,8 +121,8 @@ return{
|
||||
"MrZ XXX A→B",
|
||||
"",
|
||||
"□$X, ↑$↑ XD!",
|
||||
"WeChat, AliPay XXX,",
|
||||
"Patreon : )",
|
||||
"C0, 支 XXX,",
|
||||
"|^O : )",
|
||||
},
|
||||
WidgetText={
|
||||
main={
|
||||
|
||||
@@ -194,10 +194,9 @@ return{
|
||||
"仅通过官网 home.techmino.org 免费下载/更新",
|
||||
"其他渠道获得游戏皆有被修改/加广告/植入病毒的风险,程序只申请了振动&联网权限!",
|
||||
"若由于被修改的本游戏产生的各种损失作者不负责(怎么负责啊我又没法管)",
|
||||
"",
|
||||
"请从正规途径获得最新版,游戏现为免费,不过有打赏当然感谢啦~",
|
||||
"记得备注id备注id备注id,不然可能会没法记录到赞助列表!",
|
||||
"你也可以去我们的Patreon页面(链接见小Z词典)来支持我们!",
|
||||
FNSF and nil or"请从正规途径获得最新版,游戏现为免费,不过有打赏当然感谢啦~",
|
||||
FNSF and nil or"记得备注id备注id备注id,不然可能会没法记录到赞助列表!",
|
||||
FNSF and nil or"你也可以去我们的Patreon页面(链接见小Z词典)来支持我们!",
|
||||
},
|
||||
staff={
|
||||
"作者:MrZ 邮箱:1046101471@qq.com",
|
||||
|
||||
@@ -194,8 +194,8 @@ return{
|
||||
"僅透過內測QQ群/discord伺服器進行免費下載/更新",
|
||||
"從其他渠道獲得遊戲皆有被修改/加入廣告/植入病毒的風險,程序只申請了振動&網路權限!",
|
||||
"若由於被修改的本遊戲產生的各種損失作者概不負責(我怎麼負責啊跟我有什麼關係)",
|
||||
"請從正規途徑獲得最新版,遊戲現為免費,不過有讚賞當然感謝啦~ 記得備註用戶名,方便記錄!",
|
||||
"如果你不使用微信或支付寶,你可以前往我們的Patreon頁面來贊助我們!"
|
||||
FNSF and nil or"請從正規途徑獲得最新版,遊戲現為免費,不過有讚賞當然感謝啦~ 記得備註用戶名,方便記錄!",
|
||||
FNSF and nil or"如果你不使用微信或支付寶,你可以前往我們的Patreon頁面來贊助我們!"
|
||||
},
|
||||
staff={
|
||||
"作者:MrZ 電郵:1046101471@qq.com",
|
||||
|
||||
@@ -29,16 +29,21 @@ local typeColor={
|
||||
english=COLOR.B,
|
||||
name=COLOR.lV,
|
||||
}
|
||||
local function _filter(word)
|
||||
local word_org=word
|
||||
if FNSF then word=word:gsub("[Pp]atreon",CHAR.zChan.spark)end
|
||||
word=word:gsub("[Tt]etris",CHAR.zChan.thinking)
|
||||
return word,word_org
|
||||
end
|
||||
local function _scanDict(D)
|
||||
if not D[1][1]then return end
|
||||
local c=CHAR.zChan.thinking
|
||||
local cut=TABLE.cut
|
||||
for i=1,#D do
|
||||
local O=D[i]
|
||||
O.title,O.title_Org=O[1]:gsub("[Tt]etris",c),O[1]
|
||||
O.title,O.title_Org=_filter(O[1])
|
||||
O.keywords=O[2]
|
||||
O.type=O[3]
|
||||
O.content,O.content_Org=O[4]:gsub("[Tt]etris",c),O[4]
|
||||
O.content,O.content_Org=_filter(O[4])
|
||||
O.url=O[5]
|
||||
cut(O)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user