… | |
… | |
205 | /* |
205 | /* |
206 | * Opens LIBDIR/treasure and reads all treasure-declarations from it. |
206 | * Opens LIBDIR/treasure and reads all treasure-declarations from it. |
207 | * Each treasure is parsed with the help of load_treasure(). |
207 | * Each treasure is parsed with the help of load_treasure(). |
208 | */ |
208 | */ |
209 | bool |
209 | bool |
210 | load_treasures () |
210 | load_treasure_file (const char *filename) |
211 | { |
211 | { |
212 | treasure *t; |
212 | treasure *t; |
213 | int comp, line = 0; |
213 | int comp, line = 0; |
214 | |
|
|
215 | char filename[MAX_BUF]; |
|
|
216 | sprintf (filename, "%s/%s", settings.datadir, settings.treasures); |
|
|
217 | |
214 | |
218 | object_thawer f (filename); |
215 | object_thawer f (filename); |
219 | |
216 | |
220 | if (!f) |
217 | if (!f) |
221 | { |
218 | { |