File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Flow.Launcher.Infrastructure/Storage Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
- using System . IO ;
1
+ using System ;
2
+ using System . IO ;
2
3
using System . Threading . Tasks ;
3
4
using Flow . Launcher . Infrastructure . Logger ;
4
5
using Flow . Launcher . Infrastructure . UserSettings ;
@@ -40,6 +41,16 @@ public BinaryStorage(string filename)
40
41
FilePath = Path . Combine ( DirectoryPath , $ "{ filename } { FileSuffix } ") ;
41
42
}
42
43
44
+ // Let the old Program plugin get this constructor
45
+ [ Obsolete ( "This constructor is obsolete. Use BinaryStorage(string filename) instead." ) ]
46
+ public BinaryStorage ( string filename , string directoryPath = null ! )
47
+ {
48
+ directoryPath ??= DataLocation . CacheDirectory ;
49
+ FilesFolders . ValidateDirectory ( directoryPath ) ;
50
+
51
+ FilePath = Path . Combine ( directoryPath , $ "{ filename } { FileSuffix } ") ;
52
+ }
53
+
43
54
public async ValueTask < T > TryLoadAsync ( T defaultData )
44
55
{
45
56
if ( Data != null ) return Data ;
You can’t perform that action at this time.
0 commit comments