private String GetPath(EmulationContext context, IDirectoryManager directoryManager) { var path = directoryManager.GetPath(context, ReplayPathKey); if (String.IsNullOrEmpty(path)) { path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Wren\\Replays"); directoryManager.AddPath(context, ReplayPathKey, path); System.IO.Directory.CreateDirectory(path); } return path; }