Skip to content

Commit

Permalink
[Sideloader] Fix duplicate bundle logging not loading bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Oct 16, 2022
1 parent 9c0c2eb commit 1c22fd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Core_Sideloader/Core.Sideloader.BundleManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using UnityEngine;
Expand Down Expand Up @@ -84,13 +85,17 @@ internal static bool TryGetObjectFromName(string name, string assetBundle, Type
found = i;
obj = bundle.LoadAsset(name, type);
}

continue;
}

obj = bundle.LoadAsset(name, type);
return true;
}
}

// Needed for the logging codepath
if (found >= 0) return true;
}

return false;
Expand Down

0 comments on commit 1c22fd9

Please sign in to comment.