Modified folders to load data on Mac OS X platform (thanks to Trent Gamblin).

This commit is contained in:
David Capello 2009-10-09 02:06:09 +00:00
parent 5455136f35
commit 60172fa2ee
2 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-10-08 David Capello <davidcapello@gmail.com>
* src/core/dirs.cpp (filename_in_datadir): Modified folders to
load data on Mac OS X platform (Trent Gamblin).
* Completelly refactored all the commands related stuff. This is
the beginning to implement macro recording.

View File

@ -117,7 +117,7 @@ DIRS *filename_in_datadir(const char *filename)
DIRS *dirs = dirs_new();
char buf[1024];
#if defined ALLEGRO_UNIX || defined ALLEGRO_MACOSX
#if defined ALLEGRO_UNIX
/* $HOME/.ase/filename */
sprintf(buf, ".ase/%s", filename);
@ -139,6 +139,16 @@ DIRS *filename_in_datadir(const char *filename)
sprintf(buf, "data/%s", filename);
dirs_cat_dirs(dirs, filename_in_bindir(buf));
#elif defined ALLEGRO_MACOSX
/* $HOME/.ase/filename */
sprintf(buf, ".ase/%s", filename);
dirs_cat_dirs(dirs, filename_in_homedir(buf));
/* $BINDIR/data/filename */
sprintf(buf, "aseprite.app/Contents/Resources/data/%s", filename);
dirs_cat_dirs(dirs, filename_in_bindir(buf));
#else
/* filename */