Skip to content

Commit

Permalink
ensure main pak is selected for integration
Browse files Browse the repository at this point in the history
  • Loading branch information
atenfyr committed Apr 15, 2022
1 parent b0ddd38 commit e23de9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModIntegrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public void IntegrateMods(string paksPath, string installPath) // @"C:\Users\<CL

string[] realPakPaths = Directory.GetFiles(installPath, "*.pak", SearchOption.TopDirectoryOnly);
if (realPakPaths.Length == 0) throw new FileNotFoundException("Failed to locate any game installation pak files");
string realPakPath = Directory.GetFiles(installPath, "Astro-*.pak", SearchOption.TopDirectoryOnly)[0];

InitializeSearch(paksPath);

Expand Down Expand Up @@ -204,7 +205,6 @@ public void IntegrateMods(string paksPath, string installPath) // @"C:\Users\<CL
IntegratorUtils.SplitExportFiles(dtb.Bake2(IntegratorUtils.Concatenate(CreatedPakData["Astro/Content/Integrator/IntegratorStatics.uasset"], CreatedPakData["Astro/Content/Integrator/IntegratorStatics.uexp"])), "Astro/Content/Integrator/IntegratorStatics.uasset", CreatedPakData);
}

string realPakPath = realPakPaths[0];
using (FileStream f = new FileStream(realPakPath, FileMode.Open, FileAccess.Read))
{
PakExtractor ourExtractor = null;
Expand Down

0 comments on commit e23de9f

Please sign in to comment.