Changes for Jedi Knight 2
This commit is contained in:
1 parent
f6f7cc380c
commit
8fdd1da938
5 files changed
+54
-3
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user