@@ -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>
0 commit comments