Ejemplo n.º 1
0
        ImageReader AddImageReader(string name, byte[] data)
        {
            var imageReader = new ImageReader(deobfuscatorContext, module, data);

            if (!imageReader.Initialize())
            {
                Logger.w("Could not read encrypted methods");
                return(null);
            }
            if (imageReaders.ContainsKey(name))
            {
                throw new ApplicationException($"ImageReader for name '{name}' already exists");
            }
            imageReaders[name] = imageReader;
            return(imageReader);
        }
Ejemplo n.º 2
0
		ImageReader AddImageReader(string name, byte[] data) {
			var imageReader = new ImageReader(deobfuscatorContext, module, data);
			if (!imageReader.Initialize()) {
				Logger.w("Could not read encrypted methods");
				return null;
			}
			if (imageReaders.ContainsKey(name))
				throw new ApplicationException(string.Format("ImageReader for name '{0}' already exists", name));
			imageReaders[name] = imageReader;
			return imageReader;
		}