refactor: 将默认路径从/rc更改为/leonos

统一修改代码中的默认路径,从/rc变更为/leonos,以反映系统名称变更
This commit is contained in:
2025-09-01 10:15:12 +08:00
parent d23c85f08a
commit 44a696758d
12 changed files with 17 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
_G._HOST = _G._HOST .. " (LeonOS 0.1.4)"
local fs = rawget(_G, "fs")
_G._RC_ROM_DIR = _RC_ROM_DIR or (...) and fs.exists("/rc") and "/rc" or "/rom"
_G._RC_ROM_DIR = _RC_ROM_DIR or (...) and fs.exists("/leonos") and "/leonos" or "/rom"
if fs.exists("/.start_rc.lua") and not (...) then
_G._RC_USED_START = true