Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetRootDirectory()

static string System.IO.IsolatedStorage.Helper.GetRootDirectory ( IsolatedStorageScope scope)
inlinestaticpackage

Definition at line 18 of file Helper.cs.

19 {
20 if (IsRoaming(scope))
21 {
22 if (string.IsNullOrEmpty(s_roamingUserRootDirectory))
23 {
25 }
27 }
28 if (IsMachine(scope))
29 {
30 if (string.IsNullOrEmpty(s_machineRootDirectory))
31 {
33 }
35 }
36 if (string.IsNullOrEmpty(s_userRootDirectory))
37 {
39 }
41 }
static string s_machineRootDirectory
Definition Helper.cs:12
static bool IsRoaming(IsolatedStorageScope scope)
Definition Helper.cs:58
static bool IsMachine(IsolatedStorageScope scope)
Definition Helper.cs:43
static string GetRandomDirectory(string rootDirectory, IsolatedStorageScope scope)
Definition Helper.cs:105
static string s_roamingUserRootDirectory
Definition Helper.cs:14
static string s_userRootDirectory
Definition Helper.cs:16
static string GetDataDirectory(IsolatedStorageScope scope)
Definition Helper.cs:68

References System.IO.IsolatedStorage.Helper.GetDataDirectory(), System.IO.IsolatedStorage.Helper.GetRandomDirectory(), System.IO.IsolatedStorage.Helper.IsMachine(), System.IO.IsolatedStorage.Helper.IsRoaming(), System.IO.IsolatedStorage.Helper.s_machineRootDirectory, System.IO.IsolatedStorage.Helper.s_roamingUserRootDirectory, and System.IO.IsolatedStorage.Helper.s_userRootDirectory.

Referenced by System.IO.IsolatedStorage.IsolatedStorageFile.IsolatedStorageFile(), and System.IO.IsolatedStorage.IsolatedStorageFile.Remove().