Skip to content

Commit

Permalink
Fix the movie files for the base game missions (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Jun 20, 2022
1 parent 1d8d0fa commit 4d10892
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## v60

### Bug fixes

- (#100) Fix the movie files for the base game missions

### Contributors

- Jip (#100)

## v59

### Features
Expand Down
9 changes: 5 additions & 4 deletions init_coop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ end
-- @param dir The absolute path to the directory
-- @param mountpoint The path to use in the game (e.g., /maps/...)
local function MountAllowedContent(dir, pattern, allowedAssets)

for _,entry in IoDir(dir .. pattern) do
if entry != '.' and entry != '..' then
local mp = StringLower(entry)
Expand Down Expand Up @@ -459,19 +460,19 @@ else
MountAllowedContent(InitFileDir .. '/../gamedata/', '*.nx2', allowedAssetsNxy)
end

-- load in co-op data from of the client
MountDirectory(InitFileDir .. "/../movies", '/movies') -- <- this needs to mount before the voice overs

-- load in any .nxt that matches the whitelist / blacklist in FAF gamedata
MountAllowedContent(InitFileDir .. '/../gamedata/', '*.nxt', allowedAssetsNxt)
MountAllowedContent(InitFileDir .. '/../gamedata/', '*_VO.nx2', nil)
MountAllowedContent(InitFileDir .. '/../gamedata/', '*_VO.nx2', nil) -- <- that would be these voice overs

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

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

-- load in co-op data from of the client
MountDirectory(InitFileDir .. "/../movies", '/movies')

-- Load in all the data of the steam installation (movies, maps, sound folders)
MountDirectory(fa_path .. "/movies", '/movies')
MountDirectory(fa_path .. "/sounds", '/sounds')
Expand Down

0 comments on commit 4d10892

Please sign in to comment.