* main.c (main): If just a single assembly was specified, use the
runtime version it requires.
svn path=/trunk/mono/; revision=34117
+2004-09-21 Martin Baulig <martin@ximian.com>
+
+ * main.c (main): If just a single assembly was specified, use the
+ runtime version it requires.
+
2004-09-16 Sebastien Pouliot <sebastien@ximian.com>
* dump.c: Added new security actions added in 2.0: LinkDemandChoice,
if (input_files == NULL)
usage ();
-
- mono_init (argv [0]);
- for (l = input_files; l; l = l->next)
- disassemble_file (l->data);
+ /*
+ * If we just have one file, use the corlib version it requires.
+ */
+ if (!input_files->next) {
+ char *filename = l->data;
+
+ mono_init_from_assembly (argv [0], filename);
+ disassemble_file (filename);
+ } else {
+ mono_init (argv [0]);
+
+ for (l = input_files; l; l = l->next)
+ disassemble_file (l->data);
+ }
return 0;
}