Advertisement
HPWebcamAble

[CC] RE Shortcut Program

Sep 29th, 2014
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. --[[
  2. Coded by HPWebcamAble
  3. http://pastebin.com/u/HPWebcamAble
  4.  
  5. USE THE INSTALLER ON MY PASTEBIN!
  6. This won't do anything by itself
  7.  
  8. Installer Link:
  9. http://pastebin.com/eMCqJEBs
  10.  
  11. This is just a shortcut for my Redstone Engine program
  12. Its not that exciting :P
  13. ]]
  14.  
  15. args = {...}
  16.  
  17. if #args < 1 or #args > 3 then
  18.   print("Usages:")
  19.   print("re run <config name>")
  20.   print("re edit")
  21.   print("re edit <config name>")
  22.   return
  23. end
  24.  
  25. if args[1] == "run" then
  26.   if not args[2] then
  27.     print("Usage:")
  28.     print("re run <config name>")
  29.   else
  30.     shell.run("/RED/RE "..args[2])
  31.   end
  32. elseif args[1] == "edit" then
  33.   if args[2] then
  34.     shell.run("/RED/ConfigEditor "..args[2])
  35.   else
  36.     shell.run("/RED/ConfigEditor")
  37.   end
  38. else
  39.   print("Usages:")
  40.   print("re run <config name>")
  41.   print("re edit")
  42.   print("re edit <config name>")
  43.   return
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement