Add support for resource banks; Switch CLR resources to load from RESX files

This commit is contained in:
Yoshi Askharoun
2025-08-06 23:31:49 -05:00
parent f3461ac81b
commit 7cf79e87f9
4 changed files with 45 additions and 22 deletions
+9 -1
View File
@@ -34,12 +34,20 @@ namespace Microsoft.Iris.OS
resource = null;
DllResources.ParseResource(hierarchicalPart, out string host, out string identifier);
string specifier = null;
var specifierIndex = identifier.IndexOf('/');
if (specifierIndex >= 0)
{
specifier = identifier.Substring(0, specifierIndex);
identifier = identifier.Substring(specifierIndex + 1);
}
if (host != null)
{
Assembly assembly = GetAssembly(host);
if (assembly != null)
resource = new ClrDllResource(uri, assembly, identifier);
resource = new ClrDllResource(uri, assembly, identifier, specifier);
}
return resource is not null;