CGameContext::OnInit()
void ListDirectory(int Type, const char *pPath, FS_LISTDIR_CALLBACK pfnCallback, void *pUser)
is the function you need to usetypedef int (*FS_LISTDIR_CALLBACK)(const char *name, int is_dir, int dir_type, void *user);
is the signature your callback function needs to havestatic int ListdirCallback(const char *pName, int IsDir, int StorageType, void *pUser)
{
CGameContext *pSelf = (CGameContext *)pUser;
}
Storage()->ListDirectory(IStorage::TYPE_ALL, g_Config.m_SvPath, ListdirCallback, this);
import os
os.system("python otherfile.py")
\@role