]> git.draconx.ca Git - upkg.git/blobdiff - src/module.c
upkg: Update verbosity behaviour for --info.
[upkg.git] / src / module.c
index 2eeffc07e30857944e5efe81d08ebbe6b947d10f..1872a8debdd799b37bb0d62a8e3dd0c95923ba13 100644 (file)
@@ -2,9 +2,9 @@
  *  upkg: tool for manipulating Unreal Tournament packages.
  *  Copyright (C) 2009 Nick Bowler
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <stdio.h>
@@ -85,7 +84,7 @@ GType u_object_module_get_class(const char *package, const char *class)
        if (!mod) {
                void **p;
 
-               mod = u_pkg_new(package);
+               mod = u_pkg_new_by_name(package);
                if (!mod) {
                        return 0;
                }