Added more directories to find data in UNIX like systems.

This commit is contained in:
David Capello 2007-11-19 16:10:00 +00:00
parent ca9b264905
commit 35f50b6d73
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,9 @@
2007-11-19 David A. Capello <dacap@users.sourceforge.net>
* src/commands/cmd_new_frame.c,
src/commands/cmd_frame_properties.c,
src/commands/cmd_remove_frame.c: Added frame operations.
2007-11-16 David A. Capello <dacap@users.sourceforge.net>
* src/raster/cel.c: Renamed "frame" to "cel" to avoid

View File

@ -142,19 +142,15 @@ DIRS *filename_in_datadir(const char *filename)
dirs_add_path(dirs, buf);
#endif
#elif defined ALLEGRO_WINDOWS || defined ALLEGRO_DOS
#endif
/* $BINDIR/data/filename */
sprintf(buf, "data/%s", filename);
dirs_cat_dirs(dirs, filename_in_bindir(buf));
#else
/* filename */
dirs_add_path(dirs, filename);
#endif
return dirs;
}
@ -177,18 +173,14 @@ DIRS *filename_in_homedir(const char *filename)
dirs_add_path(dirs, filename);
}
#elif defined ALLEGRO_WINDOWS || defined ALLEGRO_DOS
#endif
/* $PREFIX/data/filename */
dirs_cat_dirs(dirs, filename_in_datadir(filename));
#else
/* filename */
dirs_add_path(dirs, filename);
#endif
return dirs;
}