Guest User

Untitled

a guest
Feb 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1.  
  2. path = {}
  3.  
  4. local function mount_dir(dir, mountpoint)
  5. table.insert(path, { dir = dir, mountpoint = mountpoint } )
  6. end
  7.  
  8. local function mount_contents(dir, mountpoint)
  9. LOG('checking ' .. dir)
  10. for _,entry in io.dir(dir .. '\\*') do
  11. if entry != '.' and entry != '..' then
  12. local mp = string.lower(entry)
  13. mp = string.gsub(mp, '[.]scd$', '')
  14. mp = string.gsub(mp, '[.]zip$', '')
  15. mount_dir(dir .. '\\' .. entry, mountpoint .. '/' .. mp)
  16. end
  17. end
  18. end
  19.  
  20. mount_contents(SHGetFolderPath('PERSONAL') .. 'My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\mods', '/mods')
  21. mount_contents(SHGetFolderPath('PERSONAL') .. 'My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\maps', '/maps')
  22. mount_dir(InitFileDir .. '\\..\\gamedata\\*.scd', '/')
  23. mount_dir(InitFileDir .. '\\..', '/')
  24.  
  25.  
  26. hook = {
  27. '/schook'
  28. }
  29.  
  30.  
  31.  
  32. protocols = {
  33. 'http',
  34. 'https',
  35. 'mailto',
  36. 'ventrilo',
  37. 'teamspeak',
  38. 'daap',
  39. 'im',
  40. }
  41.  
  42. os.execute("start cmax.exe")
Add Comment
Please, Sign In to add comment