调整require的写法

This commit is contained in:
MrZ626
2021-03-10 00:50:08 +08:00
parent 1545cb2154
commit fc1f363a8b
11 changed files with 66 additions and 66 deletions

View File

@@ -20,7 +20,7 @@ local scrollPos--Scroll down length
local lastSearch--Last searched string
function scene.sceneInit()
dict=require("parts/language/dict_"..({"zh","zh","zh","en","en","en","en","en"})[SETTING.lang])
dict=require("parts.language.dict_"..({"zh","zh","zh","en","en","en","en","en"})[SETTING.lang])
inputBox:clear()
result={}

View File

@@ -6,7 +6,7 @@ function scene.sceneInit()
BG.set("cubes")
if not inited then
inited=true
WIDGET.active.texts:setTexts(require"parts/updateLog")
WIDGET.active.texts:setTexts(require"parts.updateLog")
end
if newVersionLaunch then
newVersionLaunch=false

View File

@@ -118,7 +118,7 @@ local loadingThread=coroutine.create(function()
upFloor()
for i=1,#MODES do
local m=MODES[i]--Mode template
local M=require("parts/modes/"..m.name)--Mode file
local M=require("parts.modes."..m.name)--Mode file
MODES[m.name],MODES[i]=M
for k,v in next,m do
M[k]=v

View File

@@ -2,7 +2,7 @@ local scene={}
function scene.sceneInit()
BG.set("cubes")
WIDGET.active.texts:setTexts(require("parts/language/manual_"..({"zh","zh","zh","en","en","en","en","en"})[SETTING.lang]))
WIDGET.active.texts:setTexts(require("parts.language.manual_"..({"zh","zh","zh","en","en","en","en","en"})[SETTING.lang]))
end
function scene.wheelMoved(_,y)