X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=nbvtf%2Fvtf_cmd.c;h=37bf0aaae86ce4ff2c2663075dbdf91372a37147;hb=ea8476b5ce234e3098116bf08c17b0def5115bfd;hp=1fc553616ae34ed1d99dbca681b405544881b3c0;hpb=2937c186209f5ff766cacc9f17a118744ede7b7a;p=convexer.git diff --git a/nbvtf/vtf_cmd.c b/nbvtf/vtf_cmd.c index 1fc5536..37bf0aa 100644 --- a/nbvtf/vtf_cmd.c +++ b/nbvtf/vtf_cmd.c @@ -5,6 +5,7 @@ #define STB_IMAGE_IMPLEMENTATION #define NBVTF_SHOW_STDERR +#define NBVTF_AS_SO #include "nbvtf.h" // Find file path extension, returns NULL if no ext (0x00) @@ -126,7 +127,8 @@ int main( int argc, char *argv[] ) printf( "tovtf: Creating vtf with format '%s'\n", vtf_format_strings[ format ] ); auto_output( path_source, dest ); - nbvtf_convert( path_source, 0, 0, 1, format, 0x00, dest ); + nbvtf_init(); + nbvtf_convert( path_source, 0, 0, 1, format, 16, 0x00, dest ); return 0; }