internal ModuleFactory(MemorySharp memorySharp)
{
// Save the parameter
MemorySharp = memorySharp;
// Create a list containing all injected modules
InternalInjectedModules = new List<InjectedModule>();
// Save a reference of the main module (the main module is required for a lot of operations, cached for speed reasons)
MainModule = FetchModule(MemorySharp.Native.MainModule);
}