private static void StepLoadArchives() { string[] directoriesToCheck = { "models", "data" }; foreach (string directoryToCheck in directoriesToCheck) { string[] caseVariations = { directoryToCheck, directoryToCheck.FirstCharToUpper(), directoryToCheck.ToUpperInvariant(), }; if (caseVariations.All(d => !Directory.Exists(Path.Combine(Config.GamePath, d)))) { throw new System.Exception($"Game folder seems to be invalid - failed to find '{directoryToCheck}' folder inside game folder"); } } ArchiveManager.LoadLooseArchive(Config.GamePath); foreach (string imgFilePath in ArchiveManager.GetFilePathsFromLooseArchivesWithExtension(".img")) { ArchiveManager.LoadImageArchive(imgFilePath); } Debug.Log($"num archives loaded: {ArchiveManager.GetNumArchives()}, num entries loaded: {ArchiveManager.GetTotalNumLoadedEntries()}"); }