Changes for Jedi Knight 2

This commit is contained in:
vladislav.khorev committed 2013-04-11 20:49:41 +00:00
1 parent f6f7cc380c
commit 8fdd1da938
5 files changed
+54 -3

No files matched your search

+23
View File
@@ -90,6 +90,29 @@ std::string GetFilePathUserData(const std::string& filename)
return realFileName;
}
#ifdef TARGET_WIN32
void GetFileList(const std::string& searchkey, std::vector<std::string> &list)
{
WIN32_FIND_DATA fd;
HANDLE h = FindFirstFile(searchkey.c_str(), &fd);
if(h == INVALID_HANDLE_VALUE)
{
return;
}
while(1)
{
list.push_back(fd.cFileName);
if(FindNextFile(h, &fd) == FALSE)
break;
}
}
#endif
#ifdef TARGET_IOS
//Special for IOS -> Foundation.h conflicts with sq_plus.h
std::string GetPathToResources()