Skip to content

Commit

Permalink
Merge pull request #270 from jetelain/ignore-empty-dependencies
Browse files Browse the repository at this point in the history
Empty textures or models should not fail at UnpackModels
  • Loading branch information
jetelain authored Dec 27, 2024
2 parents abd8008 + d0330be commit 4904cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GameRealisticMap.Arma3/Edit/SimpleWrpModGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private void UnpackModels(IProgressScope progress, List<string> usedModels)
{
foreach (var model in usedModels)
{
if (!projectDrive.EnsureLocalFileCopy(model))
if (!projectDrive.EnsureLocalFileCopy(model) && !string.IsNullOrWhiteSpace(model))
{
throw new ApplicationException($"File '{model}' is missing. Have you added all required mods in application configuration?");
}
Expand Down
2 changes: 1 addition & 1 deletion GameRealisticMap.Arma3/GameEngine/DependencyUnpacker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void UnpackFiles(IProgressScope progress, IReadOnlyCollection<string> fi
using var report = progress.CreateInteger("UnpackFiles", files.Count);
foreach (var model in files)
{
if (!projectDrive.EnsureLocalFileCopy(model))
if (!projectDrive.EnsureLocalFileCopy(model) && !string.IsNullOrWhiteSpace(model))
{
throw new ApplicationException($"File '{model}' is missing. Have you added all required mods in application configuration?");
}
Expand Down

0 comments on commit 4904cce

Please sign in to comment.