X-Git-Url: http://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/90b53df329f9a114770dccab6b7e41f9094dfac9..82c24245034226967611c9d2c4f6f04b4f9db6cc:/src/upkg.c diff --git a/src/upkg.c b/src/upkg.c index f2ad3bc..c40d6d1 100644 --- a/src/upkg.c +++ b/src/upkg.c @@ -87,10 +87,7 @@ int main(int argc, char **argv) printf("Exports: %lu\n", pkg->export_count); printf("Imports: %lu\n", pkg->import_count); - UPkgModule *m = upkg_module_new("engine"); - g_type_module_use(G_TYPE_MODULE(m)); - - GObject *music = g_object_new(g_type_from_name("EngineMusic"), NULL); + GObject *music = g_object_new(module_get_class("Engine", "Music"), NULL); if (!music) return EXIT_FAILURE; struct upkg_file *f = upkg_export_open(pkg, 0);