TIL lua's loadstring is now simply 'load'

Former-commit-id: 2e2ee60f28eb3cbdeb9da7877eba4d0774590f87
Former-commit-id: 81c4274951d08267adb5380d5f4fa351ace25fff
This commit is contained in:
Song Minjae
2016-09-18 20:31:59 +09:00
parent e2b0ebbb87
commit 90ecda108d
4 changed files with 4 additions and 11 deletions

View File

@@ -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
}
}
//////////////////////////////