mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Add support for resource banks; Switch CLR resources to load from RESX files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user