|
139 | 139 | -- @param dir The absolute path to the directory |
140 | 140 | -- @param mountpoint The path to use in the game (e.g., /maps/...) |
141 | 141 | local function MountAllowedContent(dir, pattern, allowedAssets) |
| 142 | + |
142 | 143 | for _,entry in IoDir(dir .. pattern) do |
143 | 144 | if entry != '.' and entry != '..' then |
144 | 145 | local mp = StringLower(entry) |
@@ -459,19 +460,19 @@ else |
459 | 460 | MountAllowedContent(InitFileDir .. '/../gamedata/', '*.nx2', allowedAssetsNxy) |
460 | 461 | end |
461 | 462 |
|
| 463 | +-- load in co-op data from of the client |
| 464 | +MountDirectory(InitFileDir .. "/../movies", '/movies') -- <- this needs to mount before the voice overs |
| 465 | + |
462 | 466 | -- load in any .nxt that matches the whitelist / blacklist in FAF gamedata |
463 | 467 | MountAllowedContent(InitFileDir .. '/../gamedata/', '*.nxt', allowedAssetsNxt) |
464 | | -MountAllowedContent(InitFileDir .. '/../gamedata/', '*_VO.nx2', nil) |
| 468 | +MountAllowedContent(InitFileDir .. '/../gamedata/', '*_VO.nx2', nil) -- <- that would be these voice overs |
465 | 469 |
|
466 | 470 | -- load in any .scd that matches the whitelist / blacklist in FA gamedata |
467 | 471 | MountAllowedContent(fa_path .. '/gamedata/', '*.scd', allowedAssetsScd) |
468 | 472 |
|
469 | 473 | -- get direct access to preferences file, letting us have much more control over its content. This also includes cache and similar |
470 | 474 | MountDirectory(SHGetFolderPath('LOCAL_APPDATA') .. 'Gas Powered Games/Supreme Commander Forged Alliance', '/preferences') |
471 | 475 |
|
472 | | --- load in co-op data from of the client |
473 | | -MountDirectory(InitFileDir .. "/../movies", '/movies') |
474 | | - |
475 | 476 | -- Load in all the data of the steam installation (movies, maps, sound folders) |
476 | 477 | MountDirectory(fa_path .. "/movies", '/movies') |
477 | 478 | MountDirectory(fa_path .. "/sounds", '/sounds') |
|
0 commit comments