Created
March 23, 2025 02:09
-
-
Save motebaya/555db75296059cbd1f44a57743b93874 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://github.com/yasugami/yasugami.github.io | |
-- 23/03/2025 - @github.com/motebaya | |
if arg[1] then | |
local code = assert(io.open(arg[1])):read("*a") | |
local f = io.open('.tmp.lua', "w") | |
if f then | |
local modcode = code:gsub('_ENV%[%"\\108\\111\\97\\100%"%]', "print"):gsub('%(%)', '') | |
f:write(modcode) | |
f:close() | |
end | |
os.execute("lua .tmp.lua") | |
os.remove('.tmp.lua') | |
else | |
print("Usage: lua yasucator.lua <filename>") | |
os.exit() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
108
->l
111
->o
97
->a
100
->d
https://stackoverflow.com/questions/48629129/what-does-load-do-in-lua