4192e555ff13a5f9343d11a210099e9d59c42459
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 eg. /home/harry/my_map.vmf
64 char vmf_name
[ 128 ]; // Just the base name eg. my_map
74 void csr_filter_update_from_strings( csr_filter
*filter
, csr_opt_str
*opt
);
77 void csr_filter_update_from_strings( csr_filter
*filter
, csr_opt_str
*opt
)
79 if( opt
->type
== k_iftype_visgroup
)
81 filter
->visgroup
= opt
->str
;
82 filter
->classname
= NULL
;
86 filter
->classname
= opt
->str
;
87 filter
->visgroup
= NULL
;
92 #ifndef CSR_EXECUTABLE
93 static int csr_init( csr_api
*api
)
95 if( api
->api_version
> csr_api_version
)
97 log_warn( "API Version out of date. Host: %u, Plugin: %u\n", api
->api_version
, csr_api_version
);