Skip to content

Commit

Permalink
Fixed bug that was making StudioFonts extract incorrectly.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximumADHD committed Apr 20, 2022
1 parent d8de196 commit eed5f2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ProjectSrc/Bootstrapper/StudioBootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -607,22 +607,23 @@ private void extractPackage(Package package)

if (localRootDir != null)
{
bool hasEntryPath = fileManifest.ContainsKey(entryPath);
// Append local directory to our path.
var manifestKey = localRootDir + entryPath;
bool hasEntryPath = fileManifest.ContainsKey(manifestKey);

// If we can't find this file in the signature lookup table,
// try appending the local directory to it. This resolves some
// edge cases relating to the fixFilePath function above.

if (!hasEntryPath)
{
entryPath = localRootDir + entryPath;
hasEntryPath = fileManifest.ContainsKey(entryPath);
// If we can't find this file in the signature lookup table,
// try falling back to the entryPath.

manifestKey = entryPath;
hasEntryPath = fileManifest.ContainsKey(manifestKey);
}

// If we can find this file path in the file manifest, then we will
// use its pre-computed signature to check if the file has changed.

newFileSig = hasEntryPath ? fileManifest[entryPath] : null;
newFileSig = hasEntryPath ? fileManifest[manifestKey] : null;
}
else
{
Expand Down
Binary file modified RobloxStudioModManager.exe
Binary file not shown.

0 comments on commit eed5f2d

Please sign in to comment.