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

◆ GetDataDirectory()

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

Definition at line 68 of file Helper.cs.

69 {
70 Environment.SpecialFolder folder = (IsMachine(scope) ? Environment.SpecialFolder.CommonApplicationData : (IsRoaming(scope) ? Environment.SpecialFolder.ApplicationData : Environment.SpecialFolder.LocalApplicationData));
71 string folderPath = Environment.GetFolderPath(folder, Environment.SpecialFolderOption.Create);
72 return Path.Combine(folderPath, "IsolatedStorage");
73 }
static bool IsRoaming(IsolatedStorageScope scope)
Definition Helper.cs:58
static bool IsMachine(IsolatedStorageScope scope)
Definition Helper.cs:43

References System.IO.Path.Combine(), System.Environment.GetFolderPath(), System.IO.IsolatedStorage.Helper.IsMachine(), and System.IO.IsolatedStorage.Helper.IsRoaming().

Referenced by System.IO.IsolatedStorage.Helper.GetRootDirectory().