30 : logo(0), distribute(false), enabled(false), catalog(0)
34 : logo(0), distribute(false), enabled(false), catalog(0)
36 if (fname && *fname) {
42 : name(n), logo(0), version(v), url(u), distribute(false), enabled(false), catalog(0)
70 if (len > 0 && buf != 0) {
79 logo =
new(__FILE__,__LINE__)
Bitmap;
115 Print(
"ERROR: could not parse '%s'\n", filename.
data());
120 if (!file_type || file_type->
value() !=
"MOD_INFO") {
121 Print(
"ERROR: invalid mod_info file '%s'\n", filename.
data());
130 delete term; term = 0;
138 if (defname ==
"name")
141 else if (defname ==
"desc" || defname ==
"description")
144 else if (defname ==
"author")
147 else if (defname ==
"url")
150 else if (defname ==
"copyright")
153 else if (defname ==
"logo")
156 else if (defname ==
"version") {
162 sprintf_s(buf,
"%d", v);
173 else if (defname ==
"distribute")
176 else if (defname ==
"campaign") {
178 Print(
"WARNING: campaign structure missing in mod_info.def for '%s'\n", name.
data());
190 if (defname ==
"name") {
194 else if (defname ==
"path") {
198 else if (defname ==
"dynamic") {
211 else if (defname ==
"catalog") {
213 Print(
"WARNING: catalog structure missing in mod_info.def for '%s'\n", name.
data());
225 if (defname ==
"file") {
229 else if (defname ==
"path") {
232 char last_char = c->path[c->path.
length()-1];
234 if (last_char !=
'/' && last_char !=
'\\')
261 if (loader && !enabled) {
270 for (
int i = 0; i < campaigns.
size(); i++) {