mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-22 08:29:18 +01:00
initial values of plugin category fallbacks for testing
This commit is contained in:
parent
6eb0953e38
commit
694aa113d6
1 changed files with 2 additions and 13 deletions
|
|
@ -60,12 +60,9 @@ namespace Dalamud.Interface.Internal
|
||||||
/// key: PluginManifest.InternalName (lowercase, no spaces),
|
/// key: PluginManifest.InternalName (lowercase, no spaces),
|
||||||
/// value: list of category tags, <see cref="categoryList"/>.
|
/// value: list of category tags, <see cref="categoryList"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Dictionary<string, string[]> mapPluginCategoryTagFallbacks = new();
|
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()
|
|
||||||
{
|
{
|
||||||
|
// temporary for testing, should be removed when manifests are updated
|
||||||
["accuratecountdown"] = new string[] { "UI" },
|
["accuratecountdown"] = new string[] { "UI" },
|
||||||
["adventurerinneed"] = new string[] { "UI" },
|
["adventurerinneed"] = new string[] { "UI" },
|
||||||
["aethersense"] = new string[] { "Other" },
|
["aethersense"] = new string[] { "Other" },
|
||||||
|
|
@ -150,7 +147,6 @@ namespace Dalamud.Interface.Internal
|
||||||
["xivchat"] = new string[] { "social" },
|
["xivchat"] = new string[] { "social" },
|
||||||
["xivcombo"] = new string[] { "jobs" },
|
["xivcombo"] = new string[] { "jobs" },
|
||||||
};
|
};
|
||||||
#endif // DEBUG
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Type of category group.
|
/// Type of category group.
|
||||||
|
|
@ -383,13 +379,6 @@ namespace Dalamud.Interface.Internal
|
||||||
return fallbackTags;
|
return fallbackTags;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
if (this.mapPluginCategoryTagFallbacksHACK.TryGetValue(nameKey, out var dummyTags))
|
|
||||||
{
|
|
||||||
return dummyTags;
|
|
||||||
}
|
|
||||||
#endif // DEBUG
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue