Skip to content

Commit 1771bcb

Browse files
author
Cory Leach
committed
Syntax error fixes
1 parent 88c5005 commit 1771bcb

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Runtime/SaveLoadManager.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,32 +77,34 @@ public void Save(object obj, string filename, string folder = null)
7777
/// Gets the list of save files that have been created
7878
/// </summary>
7979
/// <param name="folder">sub folder</param>
80+
/// <param name="extension"></param>
8081
/// <param name="streamingAssets">Will use Application.streamingAssetsPath as base path if true otherwise Application.persistentDataPath</param>
8182
/// <returns>list of file names (excludes the path)</returns>
82-
public string[] GetFiles(string folder = null, bool streamingAssets = false)
83+
public string[] GetFiles(string folder = null, string extension = null, bool streamingAssets = false)
8384
{
8485
if (string.IsNullOrEmpty(folder))
8586
{
8687
folder = defaultFolder;
8788
}
88-
return SaveLoadUtility.GetSavedFiles(folder,baseFolder, streamingAssets);
89+
return SaveLoadUtility.GetSavedFiles(folder,baseFolder, extension, streamingAssets);
8990
}
9091

9192
/// <summary>
9293
/// Gets the list of save files that have been created
9394
/// </summary>
9495
/// <param name="list">list to be populated with file names</param>
9596
/// <param name="folder">sub folder</param>
97+
/// <param name="extension"></param>
9698
/// <param name="streamingAssets">Will use Application.streamingAssetsPath as base path if true otherwise Application.persistentDataPath</param>
9799
/// <returns>list of file names (excludes the path)</returns>
98-
public void GetFiles(List<string> list, string folder = null, bool streamingAssets = false)
100+
public void GetFiles(List<string> list, string folder = null, string extension = null, bool streamingAssets = false)
99101
{
100102
if (string.IsNullOrEmpty(folder))
101103
{
102104
folder = defaultFolder;
103105
}
104-
105-
SaveLoadUtility.GetSavedFiles(list, folder,baseFolder, streamingAssets);
106+
107+
SaveLoadUtility.GetSavedFiles(list, folder,baseFolder, extension, streamingAssets);
106108
}
107109

108110
/// <summary>

Runtime/SaveLoadUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static string[] GetSavedFiles(string folderName = null, string baseFolder
167167
public static void GetSavedFiles(List<string> list, string folderName = null, string baseFolderPath = null, string extension = null, bool streamingAssets = false)
168168
{
169169
list.Clear();
170-
list.AddRange(EnumerateSavedFiles(folderName, baseFolderPath, extension streamingAssets));
170+
list.AddRange(EnumerateSavedFiles(folderName, baseFolderPath, extension, streamingAssets));
171171
}
172172

173173
/// <summary>

0 commit comments

Comments
 (0)