Advertisement
Redxone

Cozy File - Theme Loader (Temp)

Jul 10th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local ar = { ... }
  2.  
  3. if(#ar == 1)then
  4.  
  5.   shell.run(ar[1])
  6.   if(not thm)then error("Please create a global table named thm in your file") end
  7.    
  8.   f = fs.open(ar[1]..".thm","w")
  9.   f.write(textutils.serialize(thm))
  10.   f.close()
  11.  
  12.  
  13. else
  14.   error("Usage: init_theme <file>")  
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement