mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +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
|
||||
|
||||
CFLAGS =
|
||||
#ifdef DEBUGMODE
|
||||
CFLAGS = `allegro-config --cflags debug`
|
||||
LFLAGS = `allegro-config --libs debug`
|
||||
#else
|
||||
CFLAGS = `allegro-config --cflags`
|
||||
LFLAGS = `allegro-config --libs`
|
||||
#endif
|
||||
|
||||
######################################################################
|
||||
# GCC stuff
|
||||
|
@ -982,6 +982,11 @@ static FileItem *get_fileitem_by_path(const char *path, bool create_if_not)
|
||||
FileItem *fileitem;
|
||||
int attrib;
|
||||
|
||||
#ifdef ALLEGRO_UNIX
|
||||
if (*path == 0)
|
||||
return rootitem;
|
||||
#endif
|
||||
|
||||
key = get_key_for_filename(path);
|
||||
fileitem = hash_lookup(hash_fileitems, key);
|
||||
jfree(key);
|
||||
|
Loading…
x
Reference in New Issue
Block a user