Skip to content

Commit

Permalink
Support for loading map thumbnail info
Browse files Browse the repository at this point in the history
  • Loading branch information
DeathWeasel1337 committed Sep 1, 2021
1 parent 0066c9c commit 36c1f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core_Sideloader/Core.Sideloader.Hooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private static void IsFileHook2(ref bool __result, AssetBundleData __instance)
[HarmonyPostfix, HarmonyPatch(typeof(CommonLib), nameof(CommonLib.GetAssetBundleNameListFromPath))]
private static void GetAssetBundleNameListFromPath(string path, List<string> __result)
{
if (path == "h/list/" || path == "map/list/mapinfo/")
if (path == "h/list/" || path == "map/list/mapinfo/" || path == "map/list/mapthumbnailinfo/")
{
foreach (var assetBundleName in BundleManager.Bundles.Keys.Where(x => x.StartsWith(path)))
if (!__result.Contains(assetBundleName))
Expand Down

0 comments on commit 36c1f41

Please sign in to comment.