refactor: 移除自动require功能及相关测试文件

移除auto_require模块及其启动脚本和测试文件
该功能通过修改全局环境实现自动加载库,可能导致不可预期行为
This commit is contained in:
2025-09-01 19:31:08 +08:00
parent 98a2116c19
commit 4441be36cd
3 changed files with 0 additions and 95 deletions

View File

@@ -1,21 +0,0 @@
-- Test auto_require functionality
-- This program doesn't explicitly require 'textutils'
-- Try to use textutils without requiring it first
textutils.coloredPrint(colors.green, "Auto-require test successful!", colors.white)
textutils.printTable({test = "This should work without require"})
-- Try another library
term.setTextColor(colors.yellow)
print("Using term library without require:")
term.at(1, 3).write("Cursor moved using term library")
-- Test a library that might not be pre-loaded
game = fs.open("/test.txt", "w")
if game then
game.write("Testing fs library")
game.close()
print("File written successfully")
else
print("Failed to open file")
end