Skip to content

Commit 4d10892

Browse files
authored
Fix the movie files for the base game missions (#100)
1 parent 1d8d0fa commit 4d10892

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## v60
4+
5+
### Bug fixes
6+
7+
- (#100) Fix the movie files for the base game missions
8+
9+
### Contributors
10+
11+
- Jip (#100)
12+
313
## v59
414

515
### Features

init_coop.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ end
139139
-- @param dir The absolute path to the directory
140140
-- @param mountpoint The path to use in the game (e.g., /maps/...)
141141
local function MountAllowedContent(dir, pattern, allowedAssets)
142+
142143
for _,entry in IoDir(dir .. pattern) do
143144
if entry != '.' and entry != '..' then
144145
local mp = StringLower(entry)
@@ -459,19 +460,19 @@ else
459460
MountAllowedContent(InitFileDir .. '/../gamedata/', '*.nx2', allowedAssetsNxy)
460461
end
461462

463+
-- load in co-op data from of the client
464+
MountDirectory(InitFileDir .. "/../movies", '/movies') -- <- this needs to mount before the voice overs
465+
462466
-- load in any .nxt that matches the whitelist / blacklist in FAF gamedata
463467
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
465469

466470
-- load in any .scd that matches the whitelist / blacklist in FA gamedata
467471
MountAllowedContent(fa_path .. '/gamedata/', '*.scd', allowedAssetsScd)
468472

469473
-- get direct access to preferences file, letting us have much more control over its content. This also includes cache and similar
470474
MountDirectory(SHGetFolderPath('LOCAL_APPDATA') .. 'Gas Powered Games/Supreme Commander Forged Alliance', '/preferences')
471475

472-
-- load in co-op data from of the client
473-
MountDirectory(InitFileDir .. "/../movies", '/movies')
474-
475476
-- Load in all the data of the steam installation (movies, maps, sound folders)
476477
MountDirectory(fa_path .. "/movies", '/movies')
477478
MountDirectory(fa_path .. "/sounds", '/sounds')

0 commit comments

Comments
 (0)