10 #include "csrLog.h" // Y
11 #include "csrOpt.h" // Y
12 #include "csrTypes.h" // Y
13 #include "csrMath.h" // Y
14 #include "csrMem.h" // Y
15 #include "csrIO.h" // Y
16 #include "csrComb.h" // Y
17 #include "csrPlatform.h" // Y
22 #include "vfilesys.h" // Y
24 #include "vmdl.h" // Y
33 #include "csrDraw.h" // Y
35 static const u32 csr_build
= 3;
36 static const u32 csr_api_version
= 1;
38 typedef struct csr_api csr_api
;
39 typedef struct csr_opt_str csr_opt_str
;
43 // Floating arguments from main's argv
63 char output_path
[ 512 ]; // Full path to output eg. /home/harry/output
64 char vmf_name
[ 128 ]; // Just the base name eg. my_map
65 char vmf_folder
[ 512 ]; // Just the folder to the map eg. /home/harry/
78 void csr_filter_update_from_strings( csr_filter
*filter
, csr_opt_str
*opt
);
81 void csr_filter_update_from_strings( csr_filter
*filter
, csr_opt_str
*opt
)
83 if( opt
->type
== k_iftype_visgroup
)
85 filter
->visgroup
= opt
->str
;
86 filter
->classname
= NULL
;
90 filter
->classname
= opt
->str
;
91 filter
->visgroup
= NULL
;
96 #ifndef CSR_EXECUTABLE
97 static int csr_init( csr_api
*api
)
99 if( api
->api_version
> csr_api_version
)
101 log_warn( "API Version out of date. Host: %u, Plugin: %u\n", api
->api_version
, csr_api_version
);