private readonly string nl = "\r\n";    // DEF files are from the Windows world, and have CR-LFs in them.

        private void CreateDefFileLoader(string absPath, string contents)
        {
            var sc = new ServiceContainer();

            this.platform = new Win32Platform(sc, new X86ArchitectureFlat32(sc, "x86-protected-32", new Dictionary <string, object>()));
            dfl           = new ModuleDefinitionLoader(sc, absPath, Encoding.ASCII.GetBytes(contents));
        }
示例#2
0
        private readonly string nl = "\r\n";    // DEF files are from the Windows world, and have CR-LFs in them.

        private void CreateDefFileLoader(string absPath, string contents)
        {
            this.platform = new Win32Platform(null, new X86ArchitectureFlat32());
            dfl           = new ModuleDefinitionLoader(null, absPath, Encoding.ASCII.GetBytes(contents));
        }
        private readonly string nl = "\r\n";    // DEF files are from the Windows world, and have CR-LFs in them.

        private void CreateDefFileLoader(string filename, string contents)
        {
            dfl = new ModuleDefinitionLoader(new StringReader(contents), filename, new X86ArchitectureFlat32());
        }