# HG changeset patch # User Jason Maltzen # Date 2016-01-15 17:21:36 # Node ID 234ae2144a257d7b09f1d978042448874ac46d33 # Parent 2e8a10efff4353b8b3d93844db04db6cccf8fd68 Add a utility function to fetch the app data path (reducing code duplication) diff --git a/FileUtils.cs b/FileUtils.cs --- a/FileUtils.cs +++ b/FileUtils.cs @@ -8,6 +8,15 @@ namespace DesertPaintLab { } + public static string AppDataPath + { + get { + return System.IO.Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), + "DesertPaintLab"); + } + } + public static string FindApplicationResourceDirectory(string dirname) { string dirPath = System.IO.Path.Combine(