mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Fixed a problem to load the root element in a Unix like file-system
This commit is contained in:
parent
19070bbfc1
commit
0ffbf5164c
@ -14,8 +14,13 @@ endif
|
|||||||
######################################################################
|
######################################################################
|
||||||
# Flags for GCC in GNU/Linux system
|
# Flags for GCC in GNU/Linux system
|
||||||
|
|
||||||
CFLAGS =
|
#ifdef DEBUGMODE
|
||||||
|
CFLAGS = `allegro-config --cflags debug`
|
||||||
|
LFLAGS = `allegro-config --libs debug`
|
||||||
|
#else
|
||||||
|
CFLAGS = `allegro-config --cflags`
|
||||||
LFLAGS = `allegro-config --libs`
|
LFLAGS = `allegro-config --libs`
|
||||||
|
#endif
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# GCC stuff
|
# GCC stuff
|
||||||
|
@ -982,6 +982,11 @@ static FileItem *get_fileitem_by_path(const char *path, bool create_if_not)
|
|||||||
FileItem *fileitem;
|
FileItem *fileitem;
|
||||||
int attrib;
|
int attrib;
|
||||||
|
|
||||||
|
#ifdef ALLEGRO_UNIX
|
||||||
|
if (*path == 0)
|
||||||
|
return rootitem;
|
||||||
|
#endif
|
||||||
|
|
||||||
key = get_key_for_filename(path);
|
key = get_key_for_filename(path);
|
||||||
fileitem = hash_lookup(hash_fileitems, key);
|
fileitem = hash_lookup(hash_fileitems, key);
|
||||||
jfree(key);
|
jfree(key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user