mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 06:11:50 +09:00
TIL lua's loadstring is now simply 'load'
Former-commit-id: 2e2ee60f28eb3cbdeb9da7877eba4d0774590f87 Former-commit-id: 81c4274951d08267adb5380d5f4fa351ace25fff
This commit is contained in:
@@ -38,7 +38,6 @@ internal class Filesystem(globals: Globals, computer: BaseTerrarumComputer) {
|
||||
globals["fs"]["open"] = OpenFile(computer)
|
||||
globals["fs"]["parent"] = GetParentDir(computer)
|
||||
globals["__haltsystemexplicit__"] = HaltComputer(computer)
|
||||
globals["fs"]["dostring"] = DoString(computer)
|
||||
// fs.run defined in ROMLIB
|
||||
}
|
||||
|
||||
@@ -336,13 +335,6 @@ internal class Filesystem(globals: Globals, computer: BaseTerrarumComputer) {
|
||||
}
|
||||
}
|
||||
|
||||
class DoString(val computer: BaseTerrarumComputer): OneArgFunction() {
|
||||
override fun call(script: LuaValue): LuaValue {
|
||||
computer.luaJ_globals.load(script.checkjstring()).call()
|
||||
return LuaValue.NONE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user