mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
HaikuOS port (#97)
* ExternalFileLevelStorageSource: add workaround for d_type on Haiku * raknet: FileList: do not include io.h on Haiku * raknet: SocketLayer: add sockio.h for Haiku * cmake: link -lnetwork on Haiku * readme: add Haiku build dependencies * cmake: use link_libraries instead of add_link_options * ExternalFileLevelStorageSource: use scary stdstring instead of char
This commit is contained in:
@@ -58,7 +58,14 @@ void ExternalFileLevelStorageSource::getLevelList(std::vector<LevelSummary>& vls
|
||||
|
||||
LOG_I("Entry: %s", de->d_name);
|
||||
|
||||
#if defined( __HAIKU__ )
|
||||
std::string temp = m_worldsPath + '/' + de->d_name;
|
||||
|
||||
struct stat buf;
|
||||
if ( ( lstat( temp.c_str(), &buf ) == 0 ) && S_ISDIR( buf.st_mode ) )
|
||||
#else
|
||||
if (de->d_type == DT_DIR)
|
||||
#endif
|
||||
{
|
||||
addLevelSummaryIfExists(vls, de->d_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user