View Single Post
Old 22nd March 2004, 09:42 PM   #1
monster
Member
Advanced member
 
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 39
Default Problems with ac_register_file_exporter

Previously, in my plugin, I was using;
Code:
ac_add_command("my_exporter",my_exporter);    
ac_add_export_menu_item("My Format...","ac3d my_exporter");
To register my export function with AC3D, as I use ac_register_file_importer to register my import function I thought I'd switch to use ac_register_file_exporter as it seemed to be more consistent (and possibly more up to date?).
However, now the exporter gets added to the export menu, but when I click on it nothing happens except that I get the following message in the console;
Code:
incorrect number of args for exporter_select_file (should be 1, got 2) - usage:
    <string exporter-name>
I've changed my export function to have the signature;
Code:
Boolean my_exporter(char *filename, ACObject *object)
Is there anything else I need to do?
monster is offline   Reply With Quote