mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 09:04:02 +00:00
Modified folders to load data on Mac OS X platform (thanks to Trent Gamblin).
This commit is contained in:
parent
5455136f35
commit
60172fa2ee
@ -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.
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user