initial values of plugin category fallbacks for testing

This commit is contained in:
MgAl2O4 2021-09-29 17:47:28 -04:00
parent 6eb0953e38
commit 694aa113d6

View file

@ -60,12 +60,9 @@ namespace Dalamud.Interface.Internal
/// key: PluginManifest.InternalName (lowercase, no spaces),
/// value: list of category tags, <see cref="categoryList"/>.
/// </summary>
private Dictionary<string, string[]> mapPluginCategoryTagFallbacks = new();
#if DEBUG
// temp - hardcode some tag values for testing, idk what most of them does so it's probably not very accurate :D
private Dictionary<string, string[]> mapPluginCategoryTagFallbacksHACK = new()
private Dictionary<string, string[]> mapPluginCategoryTagFallbacks = new()
{
// temporary for testing, should be removed when manifests are updated
["accuratecountdown"] = new string[] { "UI" },
["adventurerinneed"] = new string[] { "UI" },
["aethersense"] = new string[] { "Other" },
@ -150,7 +147,6 @@ namespace Dalamud.Interface.Internal
["xivchat"] = new string[] { "social" },
["xivcombo"] = new string[] { "jobs" },
};
#endif // DEBUG
/// <summary>
/// Type of category group.
@ -383,13 +379,6 @@ namespace Dalamud.Interface.Internal
return fallbackTags;
}
#if DEBUG
if (this.mapPluginCategoryTagFallbacksHACK.TryGetValue(nameKey, out var dummyTags))
{
return dummyTags;
}
#endif // DEBUG
return null;
}