path = {}
local function mount_dir(dir, mountpoint)
table.insert(path, { dir = dir, mountpoint = mountpoint } )
end
local function mount_contents(dir, mountpoint)
LOG('checking ' .. dir)
for _,entry in io.dir(dir .. '\\*') do
if entry != '.' and entry != '..' then
local mp = string.lower(entry)
mp = string.gsub(mp, '[.]scd$', '')
mp = string.gsub(mp, '[.]zip$', '')
mount_dir(dir .. '\\' .. entry, mountpoint .. '/' .. mp)
end
end
end
mount_contents(SHGetFolderPath('PERSONAL') .. 'My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\mods', '/mods')
mount_contents(SHGetFolderPath('PERSONAL') .. 'My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\maps', '/maps')
mount_dir(InitFileDir .. '\\..\\gamedata\\*.faf', '/') ~ Remove
mount_dir(InitFileDir .. '\\..\\gamedata\\*.scd', '/') ~ Remove
mount_dir(InitFileDir .. \\..\\fafgamedata\\*.scd, '/') ~ Add
mount_dir(InitFileDir .. '\\..\\fafgamedata\\*.faf', '/') ~ Add
mount_dir(InitFileDir .. '\\..', '/')
hook = {
'/schook'
}
protocols = {
'http',
'https',
'mailto',
'ventrilo',
'teamspeak',
'daap',
'im',
}
Statistics: Posted by Reddev32 — 30 Nov 2011, 13:29
Statistics: Posted by Karottenrambo — 29 Nov 2011, 22:27
Statistics: Posted by uberge3k — 29 Nov 2011, 15:02
Statistics: Posted by microwavelazer — 28 Nov 2011, 23:07
Statistics: Posted by thygrrr — 28 Nov 2011, 15:41
Statistics: Posted by Ze_PilOt — 28 Nov 2011, 11:35
Statistics: Posted by arisg3 — 18 Oct 2011, 14:17
Statistics: Posted by Ze_PilOt — 18 Oct 2011, 11:10
Statistics: Posted by arisg3 — 18 Oct 2011, 11:03
Statistics: Posted by Gowerly — 17 Oct 2011, 15:29
Statistics: Posted by arisg3 — 17 Oct 2011, 15:10
Statistics: Posted by Ze_PilOt — 17 Oct 2011, 14:55
Statistics: Posted by Ze_PilOt — 17 Oct 2011, 14:45