mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-26 18:41:20 +00:00
Added more directories to find data in UNIX like systems.
This commit is contained in:
parent
ca9b264905
commit
35f50b6d73
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user