… | |
… | |
187 | if (has_been_done) |
187 | if (has_been_done) |
188 | return; |
188 | return; |
189 | else |
189 | else |
190 | has_been_done = 1; |
190 | has_been_done = 1; |
191 | |
191 | |
192 | sprintf (filename, "%s/formulae", settings.datadir); |
192 | object_thawer thawer (settings.datadir, "formulae"); |
193 | LOG (llevDebug, "Reading alchemical formulae from %s...\n", filename); |
|
|
194 | |
|
|
195 | object_thawer thawer (filename); |
|
|
196 | |
193 | |
197 | if (!thawer) |
194 | if (!thawer) |
198 | { |
195 | { |
199 | LOG (llevError, "Can't open %s.\n", filename); |
196 | LOG (llevError, "Can't open %s.\n", thawer.name); |
200 | return; |
197 | return; |
201 | } |
198 | } |
202 | |
199 | |
203 | while (thawer.kw) |
200 | while (thawer.kw) |
204 | { |
201 | { |
… | |
… | |
285 | } |
282 | } |
286 | |
283 | |
287 | next_object: ; |
284 | next_object: ; |
288 | } |
285 | } |
289 | |
286 | |
290 | LOG (llevDebug, "done.\n"); |
|
|
291 | /* Lastly, lets check for problems in formula we got */ |
287 | /* Lastly, lets check for problems in formula we got */ |
292 | check_formulae (); |
288 | check_formulae (); |
293 | } |
289 | } |
294 | |
290 | |
295 | /* Find a treasure with a matching name. The 'depth' parameter is |
291 | /* Find a treasure with a matching name. The 'depth' parameter is |