Skip to content

Instantly share code, notes, and snippets.

@toptensoftware
Created October 11, 2016 01:01
Show Gist options
  • Select an option

  • Save toptensoftware/94425dc3f12ee9be593d81821b1c6936 to your computer and use it in GitHub Desktop.

Select an option

Save toptensoftware/94425dc3f12ee9be593d81821b1c6936 to your computer and use it in GitHub Desktop.
Resolving Referenced Modules
// Recursively call self (ModuleManager) to load each referenced module
foreach (var m in nativeModule.GetReferencedModules())
{
LoadModule(m);
}
// elsewhere...
// Module16 implements GetReferencedModules by reading the list from the NE file reader
class Module16 : ModuleBase
{
public IEnumerable<string> GetReferencedModules()
{
return _neFile.ModuleReferenceTable;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment