Skip to content

Commit

Permalink
add safe io functions to spel2.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Nov 9, 2023
1 parent f3da9a4 commit cf8e975
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/game_data/spel2.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions docs/generate_emmylua.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ def main():
---@field encode fun(tbl: table): string @Encode a table into a json string
---@type Json
json = nil
io.open_data = io.open
io.open_mod = io.open
os.remove_data = os.remove
os.remove_mod = os.remove
""")

print("\n-- Functions\n")
Expand Down

0 comments on commit cf8e975

Please sign in to comment.