public static string[] GetDirectories(string directoryName) { List <string> dirList = new List <string>(); int numberOfFolders = ExternalWebGL_FS.GetNumberOfFoldersUnderFolder(directoryName); for (int i = 0; i < numberOfFolders; i++) { string folderName = Marshal.PtrToStringAnsi(ExternalWebGL_FS.FolderUnderFolderForNumber(directoryName, i)); dirList.Add(folderName); } return(dirList.ToArray()); }
//0: resource not yet queued/prepared; //1: resource Failed Preparation! not ready to use //2: resource already queued for preparing //3: resource already prepared public static int GetPreparationStateOfResource(string resourceName) { return(ExternalWebGL_FS.GetStateOfResource(resourceName)); }
public static void RemovePreparedResource(string resourceName) { ExternalWebGL_FS.RemovePreparedResource(resourceName); }
public static void PrepareProjectFolderResource(string resourceName) { ExternalWebGL_FS.PrepareResource(resourceName); }
public static bool ResourceReadyCheck(string resourceName) { return(ExternalWebGL_FS.GetStateOfResource(resourceName) == 3); }