From: dooglus Date: Mon, 4 Feb 2008 23:35:02 +0000 (+0000) Subject: Show which output target is used if it has been chosen automatically, not specified... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b3306a52f847c71ca900fa403ceebe953745147c;p=synfig.git Show which output target is used if it has been chosen automatically, not specified by the user. git-svn-id: http://svn.voria.com/code@1581 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index e595f42..c5b7dbc 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -960,7 +960,10 @@ int main(int argc, char *argv[]) string ext = filename_extension(job_list.front().outfilename); if (ext.length()) ext = ext.substr(1); if(Target::ext_book().count(ext)) + { target_name=Target::ext_book()[ext]; + info("target name not specified - using %s", target_name.c_str()); + } else { string lower_ext(ext); @@ -969,7 +972,10 @@ int main(int argc, char *argv[]) lower_ext[i] = tolower(ext[i]); if(Target::ext_book().count(lower_ext)) + { target_name=Target::ext_book()[lower_ext]; + info("target name not specified - using %s", target_name.c_str()); + } else target_name=ext; }